how to play a song using gui

9 views (last 30 days)
srikar sana
srikar sana on 26 Nov 2015
Answered: Geoff Hayes on 26 Nov 2015
i am a starter the thing i need to do is to play song which is in a folder. now my gui should contain a button called browse and then i select a file and then when i press play it should play and when i press 'freq plot' then fft plot should be displayed in a new window or below . need very detailed answer, please. thanks for the reply

Answers (1)

Geoff Hayes
Geoff Hayes on 26 Nov 2015
srikar - see this tutorial on how to create a GUI using GUIDE, http://www.mathworks.com/videos/creating-a-gui-with-guide-68979.html. Once you have completed the tutorial, sketch out how your GUI should look (you will need three pushbuttons and an axes for your output) and then start implementing the pieces. For the browse push button callback, you will probably want to use uigetfile as your tool to browse and choose an audio file. To play the audio file, you may want to use the audioplayer. As for the FFT, there are several examples within this forum on how to use your audio data, the fft, and displaying the results in an axes.

Categories

Find more on Migrate GUIDE Apps 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!