new Echo()
Constructs a new Echo effect object.
Extends
Classes
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.
- Overrides:
- See:
-
getOutputNode() → {AudioNode}
-
Returns a reference to the AudioNode from which all effect-modified output audio is produced.
- 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(echoTime, intensity, opt updateTime, opt timeConstant) → {Promise.<boolean>}
-
Updates the Echo effect according to the specified parameters at the specified time.
Note that the
updateTimeparameter can be omitted to immediately cause the requested changes to take effect.Parameters:
Name Type Attributes Description echoTimenumber Number of seconds between the original audio and its first echo between [0, 1]
intensitynumber Percentage of the original audio that will be present in each consecutive echo between [0, 0.95]
updateTimenumber <optional>
Global API time at which to update the effect
timeConstantnumber <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
effectOptionsparameter of the update() function for this Effect.Returns:
Array.<EffectParameter> -List of effect-specific parameters for use in the effect's update() function
- See: