Skip to content

fast c program to generate the waveform image of an audio file. Also available as a node.js module

Notifications You must be signed in to change notification settings

Presentations/waveform

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

waveform

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:

https://github.com/polem/WaveformGenerator

Dependencies:

Compile:

gcc -o waveform main.c -O3 -lgroove -lz -lpng

About

fast c program to generate the waveform image of an audio file. Also available as a node.js module

Resources

Stars

Watchers

Forks

Packages

No packages published