new EffectBase(audioContext)
Called by a concrete effect instance to initialize the inherited EffectBase data structure.
Parameters:
| Name | Type | Description |
|---|---|---|
audioContext |
AudioContext | Reference to the global browser AudioContext |
- See:
Classes
Members
-
audioContext :AudioContext
-
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()
-
getInputNode() → {AudioNode}
-
Returns a reference to the AudioNode to which all source AudioNodes should be connected in order to activate this Effect.
- See:
-
getOutputNode() → {AudioNode}
-
Returns a reference to the AudioNode from which all effect-modified output audio is produced.
- 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.
-
async update(effectOptions, opt updateTime, opt timeConstant) → {Promise.<boolean>}
-
Updates the parameters of the effect 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 effectOptionsObject Effect-specific options as returned by getAvailableEffectParameters()
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