follow2
Another controllable envelope extractor using the algorithm attributed to Jean-Marc Jot.
Syntax
Performance
asig -- the input signal whose envelope is followed
katt -- the attack time in seconds (60 dB)
krel -- the release time in seconds (60 dB)
The envelope starts at zero and follows the absolute value of asig. katt controls its rise and krel controls its fall. Each time specifies how long it takes to reduce the difference from a constant target to 0.1% (60 dB). For example, with an input of 1 and katt = 0.1, the output reaches 0.999 after 0.1 seconds.
Zero or negative values for either time use 0.1 seconds.
Examples
Here is an example of the follow2 opcode. It uses the file follow2.csd, and drumsMlp.wav.
See also
Sensing and Control: Envelope followers
Credits
Author: John ffitch
The algorithm for the follow2 is attributed to Jean-Marc Jot.
University of Bath, Codemist Ltd.
Bath, UK
February 2000
New in Csound version 4.03
Added notes by Rasmus Ekman on September 2002.