AmpComp:
Filter:
Classes | UGens > Analysis > Amplitude

AmpComp : PureUGen : UGen : AbstractFunction : Object

Basic psychoacoustic amplitude compensation.
Source: Line.sc
Subclasses: AmpCompA

Description

Implements the (optimized) formula:

Higher frequencies are normally perceived as louder, which AmpComp compensates.

Class Methods

AmpComp.ar(freq, root, exp: 0.3333)

AmpComp.kr(freq, root, exp: 0.3333)

AmpComp.ir(freq, root, exp: 0.3333)

Arguments:

freq

Input frequency value. For freq == root, the output is 1.0.

root

Root freq relative to which the curve is calculated (usually lowest freq).

exp

Exponent: how steep the curve decreases for increasing freq.

Discussion:

Note that for frequencies very much smaller than root the amplitudes can become very high. In this case limit the freq with freq.max(minval), or use AmpCompA.

Inherited class methods

Instance Methods

Inherited instance methods

Examples