azusa
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Azusa

Author QQ Email npm version

A WEBGL Audio Spectrum Music Visualizer.

How to use

  • webpack
    npm install azusa --save
    
    import Azusa from 'azusa'
    

example

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);
})

Click here to demo

Readme

Keywords

none

Package Sidebar

Install

npm i azusa

Weekly Downloads

2

Version

1.0.2

License

GPL-2.0

Last publish

Collaborators

  • cn_eyhn