dw
draw-wave
npm i draw-wave
dw

draw-wave

draw waveform to canvas from audiobuffer

by Dave Justice

2.0.0 (see all)License:MITTypeScript:Not Found
npm i draw-wave
Readme

draw-wave

Render a wave form from a web audio buffer to canvas or svg element.

NPM

Usage

Render to Canvas

var drawBuffer = require('draw-wave');

drawBuffer.canvas(document.querySelector('.my-canvas'), audiobuffer, '#52F6A4');

Generate SVG

var drawBuffer = require('draw-wave');

var waveSVG = drawBuffer.svg(audiobuffer, 500, 300, '#52F6A4');
document.appendChild(waveSVG);

This will look produce something like this

here is the song

og canvas version

Downloads/wk

5

GitHub Stars

24

LAST COMMIT

5yrs ago

MAINTAINERS

1

CONTRIBUTORS

3

OPEN ISSUES

2

OPEN PRs

0
VersionTagPublished
2.0.0
latest
7yrs ago
No alternatives found
No tutorials found
Add a tutorial