Timed Threshold for Contact Mic Trigger
Hi everyone,
I have what I think is a very basic question, I just can't figure it out. I'd greatly appreciate any help.
What I have is a patch that triggers an audio file when the input level is above the threshold, and stops the audio file when it falls below the threshold.
I'd like to add a time element to this...so it would trigger the audio file only when the input level is above the threshold for X seconds, and only stops playing when the input is below the threshold for X seconds.
I've looked at del, sah~, and others...I just can't figure it out. I feel like it must be a simple answer, but I'm just not sure where to look. Could anyone point me in the right direction? I'm new to Max and just trying to figure everything out.
Here's the patch....it's a mix of stuff I came up with and some other things I found in old threads:
Maybe with onebang and delays...
Source Audio, that seems to have done the trick perfectly! Thank you so much. I don't quite understand the logic behind the patch you posted, but I'm studying it along with the reference for those objects.
I'll post up my patch later once I work on it more, incase anyone else might want it.