gain
Prev | Orchestra Opcodes and Operators | Next

## gain

gain — 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.

## Syntax

    ares gain asig, krms [, 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

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

    asrc buzz    10000,440, sr/440, 1 ; band-limited pulse train
    a1   reson   asrc, 1000,100       ; sent through
    a2   reson   a1,3000,500          ; 2 filters
    afin balance a2, asrc             ; then balanced with source

## See Also

balance, rms

Prev | Up | Next
ftsr | Home | gainslider