new Phaser()
Constructs a new Phaser 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(rate, shape, frequency, feedback, intensity, opt updateTime, opt timeConstant) → {Promise.<boolean>}
-
Updates the Phaser 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 ratenumber Frequency at which an oscillator modulates the phaser signal in Hertz between [0, 10]
shapestring Waveform shape used to modulate the phaser signal from ['sine', 'square', 'sawtooth', 'triangle']
frequencynumber Starting frequency of the all-pass filter between [1, 22050]
feedbacknumber Percentage of processed signal to be fed back into the phaser circuit between [0, 0.95]
intensitynumber Ratio of processed-to-original sound as a percentage between [0, 1]
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: