fast waveform generation

npm install waveform
31 downloads in the last week
51 downloads in the last month


Command Line Usage:

waveform [options] audiofile pngfile

Available options with their defaults:
--width 256                 width of the image
--height 64                 height of the image
--color-bg 00000000         bg color, rrggbbaa
--color-center 000000ff     gradient center color, rrggbbaa
--color-outer 000000ff      gradient outer color, rrggbbaa

Substitute '-' for a filename to use stdio.

Node.js Usage:

var generateWaveform = require('waveform');
generateWaveform(audiofile, pngfile, {
    width: 256,                // width of the image
    height: 64,                // height of the image
    'color-bg': '00000000',    // bg color, rrggbbaa
    'color-center': '000000ff',// gradient center color, rrggbbaa
    'color-outer': '000000ff', // gradient outer color, rrggbbaa
}, function(err) {
    // done generating waveform

PHP Usage:




gcc -o waveform main.c -O3 -lgroove -lz -lpng
npm loves you