mimicing the distortion of a diac in MSP


    Nov 26 2009 | 5:24 am
    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...
    Thanks for your help!