PHP Classes

cool script!

Recommend this page to a friend!

      WavForge  >  All threads  >  cool script!  >  (Un) Subscribe thread alerts  
Subject:cool script!
Summary:I would like to play with this script, but could use guidance
Messages:2
Author:Christopher Stevens
Date:2006-10-18 22:13:16
Update:2006-10-18 22:56:01
 

  1. cool script!   Reply   Report abuse  
Picture of Christopher Stevens Christopher Stevens - 2006-10-18 22:13:16
Hello,
Cool script! I had no idea that one could generate a .wav file using php, and have enjoyed playing with the php class.

I'm not too familiar with the .wav format. I found some resources explaining the different "chunks" found at the beginning of the file. I'm curious about the raw data array. What is the max and min values for the array of numbers before the generated .wav file clips? Using the example you provided, is it 44,100 to -44,100? It's probably a silly questions until I know more. I'll keep looking around for information and will post something once I know more about how an audio file works. :)

  2. Re: cool script! - answer   Reply   Report abuse  
Picture of Christopher Stevens Christopher Stevens - 2006-10-18 22:56:01 - In reply to message 1 from Christopher Stevens
Answer to my own question:
For a 16 bit sample, the value of a single sample in the data array (before packed into binary) is -32768 to 32767. :)