Utilities for audio work.
These are wgsl functions, not js functions.
The function is enclosed in a js string constant,
to be appended into the code to reference it in the string shader.
- Source:
- core/audio.js, line 1
Members
staticconstantaudioAverage
Average of all the value in sound.data (Sound struct in module:defaultStructs)
- Source:
- core/audio.js, line 25
Example
import { audioAverage } from 'points/audio'; points.setAudio('audio', 'myaudio.ogg', volume, loop, autoplay); // wgsl string ${audioAverage} let value = audioAverage(audio); // audio is the audio Storage name set in Points#setAudio
js
staticconstantaudioAverageSegments
WIP
- Source:
- core/audio.js, line 41