DelayNode
The DelayNode interface represents latency in an audio signal by a given amount of time. It is an AudioNode that applies time shift to incoming signal f.e.
if delayTime value is 0.5, it means that audio will be played after 0.5 seconds.
Delay is a node with tail-time, which means that it continues to output non-silent audio with zero input for the duration of delayTime.
Constructor
constructor(context: BaseAudioContext, options?: DelayOptions)
DelayOptions
Inherits all properties from AudioNodeOptions.
| Parameter | Type | Default | |
|---|---|---|---|
maxDelayTime Optional | number | 1.0 | Maximum amount of time, in seconds, to buffer delayed values. |
delayTime Optional | number | 0.0 | Initial value for delayTime. |
You can also create a DelayNode via the BaseAudioContext.createDelay(maxDelayTime?: number) factory method, which uses default values when called without arguments.
Properties
Inherits all properties from AudioNode.
AudioNodeproperties| Name | Type | Description |
|---|---|---|
delayTime | Read only AudioParam | k-rate AudioParam representing value of time shift to apply. |
In web audio api specs delayTime is an a-rate param.
Methods
Inherits all methods from AudioNode.
AudioNodemethodsDelayNode does not define any additional methods.
Remarks
maxDelayTime
- Default value is
1.0. - Nominal range is
0.0-180.0.
delayTime
- Default value is
0.0. - Nominal range is
0.0-maxDelayTime.