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..
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.
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…")