mimicing the distortion of a diac in MSP

wheelersounds's icon

Hey y'all,

I'm trying to make my waveform cut off the signal until it reaches a certain power threshold, then keep the gate open until the signal reaches 0.

(excusing the ASCII) it would look something like this:

__
|
____| ____

I would like the threshold to be adjustable.

I'm not very good at maths. Here's what I have so far...

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

Thanks for your help!

wheelersounds's icon
volker böhm's icon

have a look at [thresh~]