Just a simple wrapper for "waveform" c script written by "Andrew Kelley"
{
"require" : {
"polem/waveform" : "*"
}
}
php composer.phar install
TODO
<?php
include __DIR__ . '/vendor/autoload.php';
use Waveform\WaveformGenerator;
// instanciation with the waveform binary path
$waveformGenerator = new WaveformGenerator(__DIR__ . '/bin/waveform');
// configuration
$waveformGenerator
->setWidth(720)
->setHeight(120)
->setColorBg('FFFFFF', 1)
->setColorCenter('FFCC00', 1)
->setColorOuter('FFCC00', 1)
;
// generation
$waveformGenerator->run('medias/audiofile.mp3', 'waveform.png');