peak Instrument Control:Sensing and Control peak peak Maintains the output equal to the highest absolute value received. Description These opcodes maintain the output k-rate variable as the peak absolute level so far received. Syntax kres peak asig kres peak ksig 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 beats.wav. Example of the peak opcode. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. Its output should include lines like this: i 1 time 0.00002: 4835.00000 i 1 time 1.00002: 29312.00000 i 1 time 2.00002: 32767.00000 Credits Author: Robin Whittle Australia May 1997 Example written by &namekevin;.