Reverb()

Class representing a Reverb effect.

A Reverb effect represents a complex echo resulting from the absorption of sound by various surfaces in an environment, as well as from multiple echoes reflecting from hard surfaces many times and with differing amplitudes. This effect is useful for creating a sense of spaciousness and can help to unify multiple elements within a musical piece.

new Reverb()

Constructs a new Reverb effect object.

Extends

Classes

Reverb

Members

audioContext :AudioContext

Overrides:

Methods

currentParameterValues() → {Object}

Returns the value of all effect parameters at the current time.

Returns:
Object -

Effect-specific parameter values with keys as returned by getAvailableEffectParameters()

Overrides:

getInputNode() → {AudioNode}

Returns a reference to the AudioNode to which all source AudioNodes should be connected in order to activate this Effect.

Returns:
AudioNode -

Reference to the first AudioNode in the effect sequencing pipeline

Overrides:
See:

getOutputNode() → {AudioNode}

Returns a reference to the AudioNode from which all effect-modified output audio is produced.

Returns:
AudioNode -

Reference to the final AudioNode in the effect sequencing pipeline

Overrides:
See:

async load()

Loads the necessary data to implement the corresponding Effect, which can then be applied to an individual Track or to the aggregate output of all tracks.

Overrides:

async update(decay, roomSize, intensity, opt updateTime, opt timeConstant) → {Promise.<boolean>}

Updates the Reverb effect according to the specified parameters at the specified time.

Note that the updateTime parameter can be omitted to immediately cause the requested changes to take effect.

Parameters:
Name Type Attributes Description
decay number

Number of seconds before reflections start to decay

roomSize number

Number of seconds before the first reflection occurs

intensity number

Ratio of reverbed-to-original sound as a percentage between [0.0, 1.0]

updateTime number <optional>

Global API time at which to update the effect

timeConstant number <optional>

Time constant defining an exponential approach to the target

Returns:
Promise.<boolean> -

Whether the effect update was successfully applied

Overrides:

static getParameters() → {Array.<EffectParameter>}

Returns a list of all available parameters for manipulation in the effectOptions parameter of the update() function for this Effect.

Returns:
Array.<EffectParameter> -

List of effect-specific parameters for use in the effect's update() function

See: