Animation_nodes: Sound Nodes and AudaSpace

Created on 26 Mar 2019  路  38Comments  路  Source: JacquesLucke/animation_nodes

This is not an "Issue" as such, more a request for information. Are you familiar with this:

https://github.com/neXyon/audionodes

and

https://archive.blender.org/wiki/index.php/User:NeXyon/GSoC2010/Audaspace/

I have been asked to look at this and see if it is possible to use either the Aud python library, or some of these nodes, or the code in them, in Animation Nodes, with the purpose of making a "simple" system to compose and playback music.

The basic design would be something along the lines of animated objects, or a "Piano Roll" type structure that causes sound clips to be played, probably small .ogg files perhaps. The system needs to be able to play multiple sounds simultaneously and this can be achieved with "AudioNodes" as linked above. There are generators in here that will make notes and also some filters, so for example it can generate a note of 440Hz and play that for say 1 second.

The first issue for me, I have got the Aud library to work in a simple script node, is that the execution stops and restarts at every frame change. This means that an audio clip is not played in its entirety, so the real question is:

Is it possible to start an event of playing a sound at one execution of AN and have it persist until it's time setting is fulfilled? In other words, start playing a sound at say frame 50 and have that sound continue to play until frame 100?

stale

All 38 comments

Yes, I am familiar with AUD. I actually did something very similar a while ago, you can see my test here: https://twitter.com/OmarSquircleArt/status/849336903044390913

This was done using the SoundDevice library though, because AUD didn't support certain things at the time. The problem you are facing may be related to your sound configuration. I had to spend sometime to configure my ALSA or Pulse Audio sound environment to support software and hardware mixing. See this: https://github.com/spatialaudio/python-sounddevice/issues/81#issuecomment-312508285

Was this page helpful?
0 / 5 - 0 ratings