This was made by subtracting two sawtooth waves and then tresholding it so that if it was positive it became 0.1 and if it was negative it became 0. I've used a converter that downsampled the sound to 16kHz for importing, that's why there are little bumps on the square waves. I've changed the trigger to use the moving average of the signal as that way it's more useful in this case