new Doppler()
Constructs a new Doppler 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(initDistance, finalDistance, missDistance, duration, opt updateTime, opt timeConstant) → {Promise.<boolean>}
-
Updates the Doppler 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 initDistancenumber Starting distance in meters between an audio source and an observer
finalDistancenumber Final distance in meters between an audio source and an observer
missDistancenumber Distance in meters by which the audio source misses the observer
durationnumber Duration in seconds required for the audio source to travel from its starting to final location
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: