Multi microphone input and sigal transfer

Alfred Chen's icon

Hi everyone here,
I'm a newbie learning to use MaxMSP to do some audio effect and mixing.
But I've been facing a problem for quite time.
I want to receive 4 microphone signals and if each one were over a threshold, Max would send a trigger to p5js through OSC protocol.
Here's the problem, I'm not sure how to receive 4 mic at a time and how to send a trigger when its value overs a threshold.
Hope someone could help me. Many thanks.

Source Audio's icon

measure 4 inputs and check if they pass threshold.



Alfred Chen's icon

Thank you, SOURCE AUDIO.
This really helps me. You're really a kind person.

Jan M's icon

Hello Alfred Chen,

I attached an example that demonstrates how to make/use a simple envelope follower. The idea of an envelope follower is it smooth out the amplitude envelope from the original signal so you can detect better when passing a threshold and have some adjustments for your triggers.

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