Control the trigger signal for a playlist

Fox_p2's icon

Hello

I’m trying to create a patch in Max that is able to play pre-recorded sounds from a playlist, being triggered by an input level (microphone) that is controlled through a threshold value.

My problem is to understand how to stop the information from the signal (mic input) to constantly activate the player, preventing the sound (in this case music) to play to end and only then being able to be triggered again my the input signal.

I believe its a question of priorities. The first priority is the trigger from the mic input, then when the sound/music is being played, this becomes the priority to any bang from the mic input, until it stops and reads again the trigger from the mic input.

Was I clear? Could someone take some time to help me. :)
(I attach the patch I created already)

Many many thanks.
Best,
Luís

Staircase-Patch-2.maxpat
Max Patch
Fox_p2's icon

Can anyone help me? :)

I still couldn't solve the problem.

Best

Wetterberg's icon

Yeah, it's kind of odd how you're going from signal to float to signal to float in your patch.

Max Patch
Copy patch and select New From Clipboard in Max.

check out these great snippets made by Rodrigo. They're very useful:

mp's icon

making it simpler:

Max Patch
Copy patch and select New From Clipboard in Max.