۱۱-اردیبهشت-۱۳۸۷, ۲۱:۵۶:۰۶
چرا من ديدم فرمول داره البته اصل فرمولشو نميدونم ولي
بزن تو گوگل wave file format چيزاي خوبي پيدا ميكني
کد:
-->t = 0: (1/10) : (8*60*60); // eighth hours at 10 samples per second
-->resp= sin ( 2 * %pi * (1/4) * t); // respirogram at a frequency of 1/4
-->savewave('beep2.wav',resp,10000); // saved as if it had been sampled at 10000
Writing Wave file: Microsoft PCM format, 1 channel, 10000 samp/s
20000 byte/sec, 2 block align, 16 bits/samp
Finished writing Wave file, 576002 data bytes