Today I am posting one of my favorite effects. Pattern gates impose an envelope over a sound at a determined speed and…pattern. This effect is most interesting over an otherwise continuous signal (like an ebowed guitar or voice). This patch posed an challenging issue. If the depth was changed while audio was playing, clicks would sound. This was caused by the audio jumping from the previous terminal value to the new initial value. My solution to this problem was to delay change in the initial value, but allow changes in all other values of the envelope to pass through. The initial value would then change (after 5ms) to match the terminal gain value. This seemed to be the best method as it sacrificed the least in flexibility on the users end. I would love to discuss alternative solutions to this issue!
Aaron
https://www.dropbox.com/s/ilbvzdofs3pwoxa/PatternGate.maxpat