museumsvictoria / spatial_audio_server

An audio backend for the multi-layered soundscape of Beyond Perception: Seeing the Unseen, a permanent exhibition at Scienceworks in Melbourne, Australia.
81 stars 14 forks source link

Amplify noise walk to reach min and max simultaneous sounds #102

Closed mitchmindtree closed 6 years ago

mitchmindtree commented 6 years ago

The soundscape currently uses a "noise walk" to create a "target" number of sounds for each installation by oscillating between their specified minimum and maximum simultaneous sounds over time at a very low frequency. One issue with the noise walk is that it rarely reaches the -1.0 or 1.0 exactly. This commit amplifies the noisewalk slightly to reach closer to these bounds, but clamps the values to ensure it does not exceed them.

Closes #94.