aves_slim
Version:
Audio spectrum analyzer written in type script. Developed using web audio api.
44 lines (32 loc) • 843 B
Markdown
Audio spectrum analyzer written in type script.
Developed using web audio api.

Using npm:
```shell
$ npm install aves_slim
```
Using yarn:
```shell
$ yarn add aves_slim
```
Using CDN:
```html
<script src="https://cdn.jsdelivr.net/npm/aves_slim@1.1.0/dist/index.js"></script>
```
```js
const Aves = require('Aves.js')
aves = new Aves()
// Decode asynchronously
// Use ArrayBuffer for input audio
aves.loadAudio(audioData).then(() => {
const canvasElm = document.querySelector('#canvas')
const canvasWidth = 1000
const canvasHeight = 500
aves.createSpectrumAnalyser(canvasElm, canvasWidth, canvasHeight)
// You got a nice spectrum analyser
aves.start()
})
```