The RealTimeAudioProcessor makes it easy to stream or generate audio in real time in MATLAB.
It includes examples for generating sound from a qwerty keyboard, generating sound from a MIDI keyboard (with included MIDI interface for acquiring MIDI inputs), and using any old algorithm you have lying around as real-time processor.
For a smooth experience, please start with the included documentation. There are a few things to do for the best performance.
* MATLAB r2012a or greater
* Signal Processing Toolbox
* DSP System Toolbox
* Soundcard with ASIO driver (recommended)
* MIDI input device (recommended only for MidiDemo)