Skip to content
Tone.js

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();
new Limiter(threshold?: number)

Parameters

  • threshold number optional

    The threshold above which the gain reduction is applied.

new Limiter(options?: Partial<LimiterOptions>)

Parameters

read-only

input: InputNode

The input node or nodes. If the object is a source, it does not have any input and this.input is undefined.

read-only

name: string

The name of the class

Default: "Limiter"

read-only

output: OutputNode

The output nodes. If the object is a sink, it does not have any output and this.output is undefined.

read-only

threshold: Param<"decibels">

read-only

reduction: number

A read-only decibel value for metering purposes, representing the current amount of gain reduction that the compressor is applying to the signal.

dispose(): this

Dispose and disconnect

Returns this

static

getDefaults(): LimiterOptions

Returns all of the default options belonging to the class.

Returns LimiterOptions