Saturday, March 12, 2011

Fun in Matlab: Music player for *.wav file


Matlab is generally used to solve, design or simulate problems but we can make a Music player since Matlab also gives us the facility to handles *.wav sound files. Music player in Matlab looks like a wired idea because we can make a very much better music player in other tools. But just for fun my roommate Sulav (You can visit his nice site, click here) and I decided to make one last year. After coding for about four-five hours, we did that, it was really fun, we enjoyed it. Our music player was only able to play *.wav file since we couldn’t find any facility to access other sound file formats. Anyway, it was a good job, and you can also make one of this. Our music player looked like as shown in figure below.


It has only the facility to “play/stop” and “pause/play”. You can also visualize the spectrum of sound. While clicking file option, there is “open” and “close”, “open” is to open new file to be played and “close” is to close the music player.
You can download the source code, click here.

No comments:

Post a Comment

Visualization of Electromagnetic wave in MATLAB

Wave is imaginary and mysterious thing to us. Many of them are invisible and we even don’t know their pres...