[mirtoolbox] Re: miraudio(..., 'Extract') reads entire song?

  • From: Cheng-ya Sha <ads901119@xxxxxxxxx>
  • To: mirtoolbox@xxxxxxxxxxxxx
  • Date: Mon, 11 Jun 2012 17:53:59 +0800

Hi Oliver,

I use miraudio(filename,'Extract',0,30,'s','Sampling',22050,'Normal');

When I looked into the source code of mp3read, I found that it uses mpg123 to
convert mp3 into wav, and then wavread the entire converted wav into
Matlab. Finally it extracts the desired part.
It explains all...

Thanks for your reply!


Sincerely,
Alan

On Mon, Jun 11, 2012 at 5:42 PM, Olivier Lartillot <olartillot@xxxxxxxxx>wrote:

> Hi,
>
> miraudio('filename','Extract',...) should read just the specified part of
> filename, not the entire file.
>
> What is exactly the miraudio command you use?
>
> Cheers,
>
> Olivier
>
> On 11.6.2012, at 3.39, Cheng-ya Sha wrote:
>
> Hi all,
>
> Does miraudio(..., 'Extract') read the *entire *song and then clip the
> part specified in the arguments? Or does it just read part of the song
> specified in the arguments?
> Is it the same for both .wav and .mp3?
>
> I have this question because when I use miraudio to read the first 30
> seconds of a very long mp3 file, the memory usage of MATLAB rises
> dramatically and finally I got out of memory error. However if the mp3 file
> is shorter there won't be this kind of problem.
>
> Thanks very much for your reply in advance!
>
>
> Sincerely,
> Alan Sha
>
>
>

Other related posts: