peak
Maintains the output equal to the highest absolute value received.
Syntax
Performance
kres -- Output equal to the highest absolute value received so far. This is effectively an input to the opcode as well, since it reads kres in order to decide whether to write something higher into it.
ksig -- k-rate input signal.
asig -- a-rate input signal.
Examples
Here is an example of the peak opcode. It uses the file peak.csd, and drumsMlp.wav.
Its output should include lines like this:
i 1 time 0.00000: 0.00118
i 1 time 0.50068: 0.71418
i 1 time 1.00136: 0.80155
i 1 time 1.50204: 0.89209
i 1 time 2.00272: 0.89209
i 1 time 2.50340: 0.89209
See also
Sensing and Control: Envelope followers
Credits
Author: Robin Whittle
Australia
May 1997
Example written by Kevin Conder.