aves_slim

1.1.1 • Public • Published

aves

Audio spectrum analyzer written in type script. Developed using web audio api.

AvesExample

Installing

Using npm:

$ npm install aves_slim

Using yarn:

$ yarn add aves_slim

Using CDN:

<script src="https://cdn.jsdelivr.net/npm/aves_slim@1.1.0/dist/index.js"></script>

Example

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

Dependents (0)

Package Sidebar

Install

npm i aves_slim

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

5.87 MB

Total Files

22

Last publish

Collaborators

  • sfilata