Audio Echo Filter
Updated
Repeats the sound at an interval, each repeat quieter and darker than the last.
- Type
comp-audio-echo-filter- Script class
AudioEchoFilterComponent- 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 |
|---|---|---|
delayTime |
0.01 ≤ x ≤ 5 |
|
feedback |
0 ≤ x ≤ 0.95 |
|
highCut |
200 ≤ x ≤ 22000 |
|
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.
Live example
An echo you tune with slidersTwo UI Sliders drive the delay time and feedback of an Audio Echo Filter on a looping beat; one listener tells the sliders apart by entity id.
With your sound on, click once to start the audio, then drag the sliders: longer times space the repeats out, more feedback makes them last. The beat is a short loop generated for this example. Drag outside the panel to orbit the camera.
From a script
Section titled “From a script”#pragma lifecycle(startup)
function startup() { const component = self.parent.getComponent(AudioEchoFilterComponent); if (component) log(component.props);}