An audio analysis tool for real-time and choreographed visualizations.
npm install equalizer.js:ear: An audio analysis tool for real-time and choreographed visualizations.
1. [x] Accepts all valid Web Audio nodes
2. [x] Accepts multiple nodes at once for complex scenes
3. [x] Configurable resolution and frame rate
4. [x] Dependency free
5. [x] Export/import analyzed data for precise playback
6. [x] Added classes for easy loading of audio files
Visit the hosted project page to try it out and to export or import JSON data for use with Equalizer.
```
npm install --save equalizer.js
`javascript`
import { Equalizer } from 'equalizer.js';
This example creates an audio oscillator and visualizes it with an instance of Equalizer.
`html
var playing = false;
var context = new AudioContext(); // From Web Audio API
var equalizer = new Equalizer(context).appendTo(document.body);
// Create audible sound with the Web Audio API
var osc = context.createOscillator();
osc.type = 'square';
osc.frequency.setValueAtTime(440, context.currentTime);
osc.connect(context.destination);
osc.start();
// Add the oscillator to the equalizer
equalizer.add(osc);
equalizer.domElement.addEventListener('click', resume, false);
update();
function resume() {
if (!(/running/.test(context.state))) {
context.resume();
}
}
function update() {
equalizer.update();
requestAnimationFrame(update);
}
``
:warning: Due to the reliance on the Web Audio API, this project is not built for node.js use.
A free and open source tool by Jono Brandel