How to add audio in Starters/optical_flow_particles_compute/optical_flow_particles_compute.toe
I have modified the program to work with an intel realsense and using the depth mode.
I also modified the optical_flow_particles_compute node in a way that i can use custom images in the particles.
How can i add audio to the particle generation? I am only creating 10-100 images per frame and want to play audio when they are created and when they destroy, how can i do that ?
@DBraun could you assist ?
I would suggest using a replicator where the main base is something with an Audio Play CHOP. You could have 100 replicants. Then use TOP processing to figure out how many particles are being spawned on the current frame. Then you need logic to determine which of the Audio Play CHOPs to trigger. Perhaps a simple index integer stored in a constant CHOP that loops between 0 and 99.