Audio High Pass Filter
Updated
Cuts the lows below the cutoff, thinning the sound.
- Type
comp-audio-high-pass-filter- Script class
AudioHighPassFilterComponent- Per entity
- One
- Version
- 1.2.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 |
|---|---|---|
frequency |
200 |
10 ≤ x ≤ 22000 |
q |
0. |
0.1 ≤ x ≤ 20 |
rolloff |
24 |
Live example
Section titled “Live example”Run it in the browser, read its scripts, and download it as an XR Creator project.
Live example
A walkie-talkie voiceA Behavior script adds a High Pass, a Low Pass and a Distortion filter to an Audio entity at startup, so whatever it plays sounds like a small radio speaker.
With your sound on, press Play the call: the loop comes out thin and crackly, with its bass and air filtered away. The beat is a short loop generated for this example. Drag to orbit the camera, scroll to zoom.
From a script
Section titled “From a script”#pragma lifecycle(startup)
function startup() { const component = self.parent.getComponent(AudioHighPassFilterComponent); if (component) log(component.props);}