Audio Reverb Filter
Updated
Adds the reflections of a room, with a tail that darkens and dies away over the decay time.
- Type
comp-audio-reverb-filter- Script class
AudioReverbFilterComponent- Per entity
- One
- Version
- 1.1.0
Read about it in Audio filters: what it does, how to use it from a script, and examples.
Properties
Section titled “Properties”The props the runtime declares for this component, with their defaults and accepted ranges.
| Prop | Default | Range |
|---|---|---|
decay |
0.1 ≤ x ≤ 10 |
|
preDelay |
0 ≤ x ≤ 0.5 |
|
wet |
0 ≤ x ≤ 1 |
Live example
Section titled “Live example”Run it in the browser, read its scripts, and download it as an XR Creator project.
A sound inside an Audio Zone gains a long Reverb as the listener walks in: the zone's enter and exit events tween the filter's wet mix up and down.
With your sound on, hold W for about a second to walk the camera into the cave: the drum beat inside sounds, and the cave's reverb swells in. Hold S to walk out. Sounds inside a zone are silent from outside it. The beat is a short loop generated for this example.
From a script
Section titled “From a script”#pragma lifecycle(startup)
function startup() { const component = self.parent.getComponent(AudioReverbFilterComponent); if (component) log(component.props);}