Audio Distortion Filter
Updated
Overdrives the sound, from a warm edge to a hard crunch, at a steady level.
- Type
comp-audio-distortion-filter- Script class
AudioDistortionFilterComponent- 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 |
|---|---|---|
amount |
0 ≤ x ≤ 1 |
|
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
Overdrive with damageAn Audio Distortion Filter on the music switches on below 60 health and grows harder with each hit, in four steps; healing switches it off again.
With your sound on, press Take a hit a few times: past the third hit the beat starts to crunch, harder at each hit. Press Heal to clean it. 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(AudioDistortionFilterComponent); if (component) log(component.props);}