# Azusa **Repository Path**: alert0723/Azusa ## Basic Information - **Project Name**: Azusa - **Description**: A WEBGL Audio Spectrum Music Visualizer. - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-01-05 - **Last Updated**: 2021-05-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: Web ## README # Azusa [](https://delusion.coding.me) [](http://wpa.qq.com/msgrd?v=3&uin=&site=qq&menu=yes) []() [](https://badge.fury.io/js/azusa) [](https://threejs.org/)  A WEBGL Audio Spectrum Music Visualizer.  # How to use - webpack ``` npm install azusa --save ``` ``` import Azusa from 'azusa' ``` # example ## typescript from src ```typescript const azusa = new Azusa({ view: document.getElementById('app') as HTMLCanvasElement, subdivisionSize: 1024, cutEnd: 256 }); azusa.audio.load({ src: testSound, onLoad: (buffer: THREE.AudioBuffer) => { console.log((xhr.loaded / xhr.total * 100) + '% loaded'); }, onPrgress: (xhr: ProgressEvent) => {}, onError: () => {} }); azusa.audio.Volume = 0.5; window.addEventListener('resize', () => { azusa.resize(window.innerWidth, window.innerHeight); }) ``` ## umd ```html
``` [Click here to demo](https://eyhn.github.io/Azusa/example)