Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
Fiboehh
Posts:
8
Registered:
12/15/10
|
|
Re: random sequence .wav file
Posted:
Dec 15, 2010 11:25 AM
|
|
"Wayne King" <wmkingty@gmail.com> wrote in message <iead93$6c4$1@fred.mathworks.com>... > "Fiboehh " <stig_dooms@hotmail.com> wrote in message <iea896$akt$1@fred.mathworks.com>... > > Hellow, i'm working on a project to classify music by genre. I have very memory using calculations that are too big for a whole song. > > So anyone knows how to chance a 2 dim .wav file into a audio sequence of ten seconds random in the song. And not the intro or outro. > > GrtZ > > Hi Fiboehh, I see a couple ways you can do this. > You can use wavread() with the syntax > > wavread('filename',[N1 N2]) > > where you choose N1 and N2 to indicate the first and last sample in the .wav file you wish to read. Knowing the sampling frequency, you know the number the samples you must include in the interval [N1 N2] to span ten seconds. > > If you have the Signal Processing Blockset license, write back and I can show you how to do this with System objects. > > Wayne
Oh i didn't know you could use that syntax, thx. But still not found how to split it up in seconds. And yes i have the signal processing blockset, so i hope you can show me.
many thx GrtZ Fiboehh
|
|
|
|