rms Instrument Control:Sensing and Control rms rms Determines the root-mean-square amplitude of an audio signal. Description Determines the root-mean-square amplitude of an audio signal. It low-pass filters the actual value, to average in the manner of a VU meter. Syntax kres rms asig [, ihp] [, iskip] Initialization ihp (optional, default=10) -- half-power point (in Hz) of a special internal low-pass filter. The default value is 10. iskip (optional, default=0) -- initial disposition of internal data space (see reson). The default value is 0. Performance asig -- input audio signal kres -- low-pass filtered rms value of the input signal rms output values kres will trace the root-mean-square value of the audio input asig. This unit is not a signal modifier, but functions rather as a signal power-gauge. It uses an internal low-pass filter to make the response smoother. ihp can be used to control this smoothing. The higher the value, the "snappier" the measurement. This opcode can also be used as an evelope follower. The kres output from this opcode is given in amplitude and depends on 0dbfs. If you want the output in decibels, you can use dbamp Examples Here is an example of the rms opcode. It uses the file rms.csd. Example of the rms opcode. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. Here is another example of the rms opcode. It uses the file rms-FLTK.csd. Advanced example of the rms opcode. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. See also Sensing and Control: Envelope followers