Skip to content
Tone.js

Reverb

class Effect ↳ extends Effect<ReverbOptions>

Simple convolution created with decaying noise. Generates an Impulse Response Buffer with Tone.Offline then feeds the IR into ConvolverNode. The impulse response generation is async, so you have to wait until ready resolves before it will make a sound.

Inspiration from ReverbGen. Copyright (c) 2014 Alan deLespinasse Apache 2.0 License.

new Reverb(decay?: number)

Parameters

  • decay number optional

    The amount of time it will reverberate for.

new Reverb(options?: Partial<ReverbOptions>)

Parameters

↳ inherited from Effect

input: Gain

The effect input node

read-only

name: string

The name of the class

Default: "Reverb"

↳ inherited from Effect

output: CrossFade

The effect output

ready: Promise<void>

Resolves when the reverb buffer is generated. Whenever either decay or preDelay are set, you have to wait until ready resolves before the IR is generated with the latest values.

↳ inherited from Effect

wet: Signal<"normalRange">

The wet control is how much of the effected will pass through to the output. 1 = 100% effected signal, 0 = 100% dry signal.

decay: Time

The duration of the reverb.

preDelay: Time

The amount of time before the reverb is fully ramped in.

dispose(): this

Dispose and disconnect

Returns this

generate(): Promise<Reverb>

Generate the Impulse Response. Returns a promise while the IR is being generated.

Returns Promise<Reverb> Promise which returns this object.

static

getDefaults(): ReverbOptions

Returns all of the default options belonging to the class.

Returns ReverbOptions