Skip to content

Audio Analyzer

Updated

Gives live frequency data for audio-reactive visuals.

Type
comp-audio-analyzer
Script class
AudioAnalyzerComponent
Per entity
One
Version
1.2.0

Read about it in Audio sources: what it does, how to use it from a script, and examples.

The props the runtime declares for this component, with their defaults and accepted ranges.

Prop Default Range
fftSize integer

Run it in the browser, read its scripts, and download it as an XR Creator project.

#pragma lifecycle(startup)
function startup() {
const component = self.parent.getComponent(AudioAnalyzerComponent);
if (component) log(component.props);
}