gainSignal Modifiers:Amplitude Modifiersgaingain
Adjusts the amplitude audio signal according to a root-mean-square value.
Description
Adjusts the amplitude audio signal according to a root-mean-square value.
Syntaxares gain asig, krms [, ihp] [, iskip]Initializationihp (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.
Performanceasig -- input audio signal
gain provides an amplitude modification of asig so that the output ares has rms power equal to krms. rms and gain used together (and given matching ihp values) will provide the same effect as balance.
Examples
Here is an example of the gain opcode. It uses the file gain.csd.
Example of the gain opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See alsoAmplitude Modifiers and Dynamic processingSee Alsobalance,
rms