Real Time audio modification and reproduction trough GUI
7 views (last 30 days)
Show older comments
Hi, I am designing an MP3 Player using Matlab, but I am also looking to implement a real time equalizer on it. Before working on the signal processing related to signal equalization I would like to know first how can I modify in real time the data from the audio file while it is still reproducing, of course, everytime I make modification on it the output signal that is reproduced by the speakers should be modified as well.
I ask this because by now I was only capable of ploting smalls windows of the data on the GUI in real time while the MP3 is reproducing using 'play function' and CurrentSample from the audioplayer object, generated by .mp3 file.
I will share the complete project here, but to make a long story short, the specific cuestion is: How can I modify in real time the audio Output of an audioplayer object while the audio file is reproducing.
https://mega.nz/#!g9Ih2SbJ!I5i4UfX7fnG9DCw3MKx8TlEIPXRxBgMKWoAh7gmNZ7w
0 Comments
Answers (1)
Walter Roberson
on 17 Nov 2019
Edited: Walter Roberson
on 17 Nov 2019
You cannot do that for audioplayer objects.
In current releases you would use the Audio System Toolbox.
In your release you would either use the DSP toolbox, or else write some Java code to talk to your audio outputs, or else use Data Acquisition toolbox.
2 Comments
Walter Roberson
on 18 Nov 2019
Audio System Toolbox was new in R2016b.
In your release you can use analoginput('winsound') from Data Acquisition Toolbox. See https://www.mathworks.com/matlabcentral/fileexchange/10569-equalizer . The implication is that you should be able to use analogoutput('winsound') as well.
See Also
Categories
Find more on Audio and Video Data 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!