layers of sounds
Hi,
I have an arduino+sensor connected to Max. Using an if statement, every time the sensor is above a certain value, a wav file is being played.
Whenever there's a new value coming from the sensor, the existing sounds are interrupted, sliced, and start their playing from the beginning.
Is there a way to make the sounds finish playing their full length and using the new values coming in to ADD to them? thus creating layers of sounds? I'm using now the poly~, still not working..
cheers,
it should work, at this point anyone needs your patch to help you
depending in the amount of sounds you want to play simultaneously, you can use multiple buffer~/groove~ objects (or sfplay~ for longer files). They all contain their own sound file and get triggered when that sensor is over a certain threshold. This way no sample gets interrupted.
And if you find the if statement a little cumbersome, try [> N] into [togedge], where N is your desired threshold. Most of my interactive patches use this method. Very solid.
I'm guessing that one of two things have happened with poly~: either thispoly~ is not present or not connected correctly, or your input to the poly~ patch is not using the midinote/note message. (which tells poly~: "Hey, you need to take care of voice handling for this...")