Audio visualizer library for javascript
npm install wave-visualizerhtml
npm i wave-visualizer
`
Setup
If your using npm use a default import to include wave.
`javascript
import Wave from 'wave-visualizer';
`
Create a new wave object.
`javascript
var wave = new Wave();
`
If your working with React, put the wave instance in state.
`javascript
let [wave] = useState(new Wave());
`
Usage
Call one of the three main function on the wave object, fromFile, fromStream, fromElement.
`javascript
wave.fromElement('audio_element_id', 'canvas_id');
`
Documentation
View the current documentation for Wave.js here.
Example
`html
``