Constructor
new AudioReverb(durationopt, decayopt, mixopt)
Create a reverb effect
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
duration | number | <optional> | 2 | Seconds until the reverb tail is silent |
decay | number | <optional> | 2 | How quickly the tail fades, higher is faster |
mix | number | <optional> | 0.5 | Wet/dry balance, 0 is fully dry and 1 is fully wet |
- Source
Example
const hall = new AudioReverb(4, 1.5, .4);
footstep.output = hall;Extends
- AudioEffect
Members
node
Properties| Type | Description |
|---|---|
| ConvolverNode | The convolver node |
- Source
Methods
createImpulse(duration, decay) → {AudioBuffer}
Build a stereo impulse response of decaying noise
Parameters:
| Name | Type | Description |
|---|---|---|
duration | number | Seconds until silence |
decay | number | How quickly it fades, higher is faster |
- Source
Returns:
- Type:
- AudioBuffer
setRoom(duration, decayopt)
Change the room by rebuilding the impulse response
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
duration | number | Seconds until the reverb tail is silent | ||
decay | number | <optional> | 2 | How quickly the tail fades, higher is faster |
- Source