"Wayne King" <firstname.lastname@example.org> wrote in message <email@example.com>... > "Fiboehh " <firstname.lastname@example.org> wrote in message <email@example.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.