Problems Plotting Mp3 Audio Data Using The Mp3 Read Function

4 views (last 30 days)
I am using MatLab 2012a for the Mac. In order to evaluate my mp3 audio data I downloaded the mp3 read and write from the file exchange. I can read the data in, but when I plot the variable "Y", the computer completely grinds to a holt and then becomes extremely sluggish. So much that you can't do anything with the data except close the figure. I've made sure all the appropriate mp3 encoders are within the directory, etc. I can't seem to find anyone else having the same problem. I have 8gb of ram and a dual core processor.
  2 Comments
Walter Roberson
Walter Roberson on 21 Oct 2013
After you read the data in, what does size() of the audio data show? And how are you plotting it?
Darryl
Darryl on 21 Oct 2013
You have just made me realise that the audio mp3 I was trying to plot was 20 mins, which in size is: 53285760.
[y, sr] = mp3read('Mp3/#02 Test/Cycling Indoors.mp3');
plot(y)
I've just this minute read a 3min mp3 using the same method as above, and its better, but still really sluggish. For example, zooming in, toggling buttons, etc.
I'm going to be working a lot with mp3 so need this to be as snappy as a .wav as I have no problem with them.

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!