Right now I have a patch that recognizes microphone input on a scale of 1-20, and routes to 20 different open messages with audio files, running into an sfplay~object. However, since the audio input is so dynamic, any designated audio file (1-20) only plays when the audio levels read precisely the same number.
Preferably I’d like to read the audio levels only for an instant, getting just 1 number, and let that designated audio file play all the way through, then go back and reread the audio levels, playing another file.
the signal from the scale should go into a gate that first allows the value to pass and then closes it. Then out of the second outlet from sfplay~ bangs after playing the audio file, that can reopen the gate.
my patch below just has the logic described above
– Pasted Max Patch, click to expand. –
Copy all of the following text. Then, in Max, select New From Clipboard.