Limiter
class Component ↳ extends ToneAudioNode<LimiterOptions>
Limiter will limit the loudness of an incoming signal. Under the hood its composed of a Compressor with a fast attack and release and max compression ratio.
const limiter = new Tone.Limiter(-20).toDestination(); const oscillator = new Tone.Oscillator().connect(limiter); oscillator.start();
Constructor
Section titled “Constructor”new Limiter(threshold?: number)Parameters
-
threshold
numberoptionalThe threshold above which the gain reduction is applied.
new Limiter(options?: Partial<LimiterOptions>)Parameters
- options
Partial<LimiterOptions>optional
Properties
Section titled “Properties”read-only
input: InputNodeThe input node or nodes. If the object is a source, it does not have any input and this.input is undefined.
output
Section titled “output”read-only
output: OutputNodeThe output nodes. If the object is a sink, it does not have any output and this.output is undefined.
reduction
Section titled “reduction”read-only
reduction: numberA read-only decibel value for metering purposes, representing the current amount of gain reduction that the compressor is applying to the signal.
Methods
Section titled “Methods”getDefaults()
Section titled “getDefaults()”static
getDefaults(): LimiterOptionsReturns all of the default options belonging to the class.
Returns LimiterOptions
Inherited members
Section titled “Inherited members”- From
ToneWithContext: context, blockTime, sampleTime, get(), immediate(), now(), set(), toFrequency(), toSeconds(), toTicks() - From
Tone: debug, version, disposed, toString() - From
ToneAudioNode: channelCount, channelCountMode, channelInterpretation, numberOfInputs, numberOfOutputs, chain(), connect(), disconnect(), fan(), toDestination(), toMaster()