Closed kybr closed 5 years ago
i have something working: https://github.com/yujnkm/MAT201B-yujnkm/blob/master/FinalProject/sketch-eyes-sound-background.cpp
i use userData()
to get to the shared resource and onTriggerOn()
together with a parameter to load specific sound files.
Thanks. Based on your example, I have written this new dynamic scene example to show userData() and always on voices https://github.com/AlloSphere-Research-Group/allolib/blob/aa83098634da6c164e4cd80251c8edde87d2310d/examples/ui/dynamic_scene2.cpp
i'm looking at dynamic_scene.cpp and distributed_scene.cpp because i need to spatialize some sounds and AudioScene is broken and deprecated. these classes seem to be awesomely synthesiser-oriented, but my application does not quite fit that use-case.
[1] i need a way to communicate between voice and app. i see that the way to do this is with parameters. i could do something like this, but i don't like it:
[2] this means that in the main apps onDraw, i would like to iterate through each active voice, querying its pose:
is there something like
scene.activeVoices()
??