Location: PHPKode > scripts > WavForge > wavforge/tone.php
<?php
    /* 
     * WavForge Demo 1 - Sine Wav Generation
    */
    
    include( 'WavForge.php' );
    
    $tone = new WavForge;
    
    $tone->synth_sine( 410, 9000, 1 ); // 410 Hz, 9000 Vol, 1 second
    
    header( 'Content-Type: audio/wav' );
    echo( $tone->output_wav() );
?>
Return current item: WavForge