<?
//== Sample WavEdit - Echo ==//
//== Demo: http://www.pviet.com/wavedit/test_echo.php ==//
//load class
include("wavedit.class.php");
$wav = new wavEdit();
//load wav files
$wFiles = array("echo.wav");
$wData = $wav->getFiles($wFiles);
//view wav images
$wav->drawImgWave();
$wav->viewImage("","viewheader");
//Echo - with 380ms, 5 times, and intensity=2
$arrEcho = array(
array('pos'=>380,'echo'=>5,'intensity'=>2),
);
$wav->setEcho($arrEcho);
$wav->writeWavFile("echo");
$wav->drawImgWave("echo");
$wav->viewImage("echo");
?>
|