loading a song

5 views (last 30 days)
Stephanie  Micallef
Stephanie Micallef on 16 Apr 2011
Commented: Walter Roberson on 11 Mar 2014
hello, i am new to Matlab and i am trying to use it for the first time. I am trying to make a laser show. I will output the 3 frequencies (low, mid and high) on laser. To filter the frequencies i will be using matlab. I found some examples to help do this but i have no idea where and how to load a song. I have the song in .wav. Can someone help me. thanks

Answers (1)

Walter Roberson
Walter Roberson on 16 Apr 2011
wavread() to read in a .wav file.
  2 Comments
snehal moghe
snehal moghe on 11 Mar 2014
See what should be done, if we want the complete song to be analysed, or at least half of it..!! Wavread is not beneficial in songs, right now.
Walter Roberson
Walter Roberson on 11 Mar 2014
wavread() allows you to select a range of sample numbers.
The replacement for wavread() is http://www.mathworks.com/help/matlab/ref/audioread.html which also allows samples to be selected.
If the song does not fit in memory you are going to have difficulties in analyzing it if the analysis depends on the properties of all of the samples.

Sign in to comment.

Categories

Find more on Audio I/O and Waveform Generation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!