MATLAB Answers

Real-Time Audio Project Advice

4 views (last 30 days)
Andrew Michael
Andrew Michael on 20 Apr 2020
Answered: jibrahim on 20 Apr 2020
Hello,
I am hoping that somebody here can help me answer a question I've been researching and exploring for the past few weeks. I am in the planning stages of a project in which I am looking to filter audio in real-time, with the filter parameters changing due to input from another piece of MATLAB code, taking input from a seperate device. I am looking into different methods of how to accomplish this real-time parameter tuning from within the code, but I do not have much expierence with MATLAB and Simulink, and am a bit confused as to how to best go about this project.
From what I understand, Audio Toolbox is the best way to go about interacting with audio in real-time in MATLAB. My question is, what is the best way to tune these parameters in real-time from MATLAB code, rather than a user interface? Could this be accomplished with Simulink Desktop Real-Time, or are the two toolboxes incompatible?
Using Audio Toolbox, will I later have a way to use Simulink/MATLAB coder to export the code and run it on a piece of dedicated hardware, or are Audio Toolbox programs only meant to be run as VSTs?
Thank you for any help you can provide with these questions!

  0 Comments

Sign in to comment.

Answers (1)

jibrahim
jibrahim on 20 Apr 2020
Hi Andrew,
Audio Toolbox is indeed the product to use for real-time audio applications.
At a high level, in addition to the ability to stream audio from and to sound cards with low latency, Audio Toolbox comes with a library of tunable filters (graphic EQ, param EQ, lowpass/highpass/bandpass, etc) that are ready for use. It is also possible to author your own tunable algorithms.
Audio Toolbox has support for both MATLAB and Simulink, and it is compatible with other products. Note that the Audio Toolbox algorithms are capable of generating C/C++ code for MATLAB Coder, and you can eventually deploy your application on hardware. The product supports audio plugins, but you can absolutely use it to target other devices.
I suggest you refer to some of the online examples of the product to get more information about its capabilities. These links might be of particular interst to you:

  0 Comments

Sign in to comment.


Translated by