Forums > MaxMSP

layers of sounds

October 13, 2012 | 4:09 pm

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..


October 13, 2012 | 6:54 pm

it should work, at this point anyone needs your patch to help you

October 15, 2012 | 10:40 am

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.

October 15, 2012 | 10:51 am

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.

October 17, 2012 | 3:00 pm

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

Viewing 5 posts - 1 through 5 (of 5 total)

Forums > MaxMSP