A WEBGL Audio Spectrum Music Visualizer.
- webpack
npm install azusa --save
import Azusa from 'azusa'
const azusa = new Azusa({
view: document.getElementById('app') as HTMLCanvasElement,
subdivisionSize: 1024,
cutEnd: 256
});
azusa.audio.load(testSound, undefined, (xhr: any) => {
console.log((xhr.loaded / xhr.total * 100) + '% loaded');
});
azusa.audio.Volume = 0.5;
window.addEventListener('resize', () => {
azusa.resize(window.innerWidth, window.innerHeight);
})