Walkthrough
1. Open the interactive experience
Use the touch or pointer controls to rotate or scatter particles.
2. Try the sound input
Enable the microphone if you want to see the globe react. Audio analysis stays on the device.
3. Stop listening when finished
Use Stop listening to release the microphone. The prototype has no public API.
Worked example
CADATRON animates from local audio intensity. The example shows how amplitude can be calculated without interpreting the words in the audio.
Open the example
function level(samples) {
if (!samples.length) return 0;
const meanSquare = samples.reduce((sum, n) => sum + n * n, 0)
/ samples.length;
return Math.sqrt(meanSquare);
}