0.2.0 • Published 4 years ago

webaudio-viz v0.2.0

Weekly downloads
5
License
ISC
Repository
github
Last release
4 years ago

webaudio-viz

Minimally draws some web audio data to a canvas

Live demo page

Animated demo image

Install

Install via npm:

npm i --save webaudio-viz

To build or run the local demo use the npm scripts. If you don't have webpack installed globally, you'll need to do npm i -D webpack webpack-cli webpack-dev-server first.

Usage

import { Viz } from 'webaudio-viz'

var viz = new Viz(ctx, canvas, inputAudioNode, fps, mode)
viz.paused = false

// three draw modes
viz.mode = 0        // frequency bars
viz.mode = 1        // oscilloscope-style waveform
viz.mode = 2        // spectrogram animated over time

// other settings
viz.minDb = -96
viz.maxDb = -15
viz.minFreq = 150
viz.maxFreq = 15000

By

Made with 🍺 by Andy Hall. License is ISC.

0.2.0

4 years ago

0.1.0

4 years ago

0.0.2

5 years ago

0.0.1

5 years ago