0.0.4 • Published 5 years ago

aves.js v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

aves

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

AvesExample

Installing

Using npm:

$ npm install aves.js

Using yarn:

$ yarn add aves.js

Using CDN:

<script src="https://unpkg.com/aves.js/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()
})