필터 지우기
필터 지우기

Does MATLAB 2022a audio toolbox support VSTi (MIDI instrument)?

조회 수: 3 (최근 30일)
Yimin Pang
Yimin Pang 2022년 3월 11일
답변: Gabriele Bunkheila 2024년 1월 31일
Can I send MIDI message to a VSTi plugin and get the audio waveforms back in MATLAB 2022a audio toolbox?

답변 (1개)

Gabriele Bunkheila
Gabriele Bunkheila 2024년 1월 31일
In short - yes, this is possible in principle.
Let me break this question into a few separate ones:
  1. MATLAB can send (and receive) MIDI messages. A good starting point is the documentation page MIDI Device Interface, which includes examples on how to use functions such as mididevice or midimsg.
  2. In general, MATLAB can host VST plugins directly via the function loadAudioPlugin. Subsequent calls to the process method of the returned externalAudioPlugin or externalAudioPluginSource object return buffers (aka frames, blocks) of output samples directly as MATLAB arrays. The page Host External Audio Plugins includes a lot more details and code examples.
  3. If the plugin is running in an DAW or other application external to MATLAB, the output is routed to the audio output of the application. An easy way to route that signal back into MATLAB is to install a virtual audio channel (e.g. this application - just an example, not an endorsement). That will create in your OS at least:
  • A virtual audio output - use this to playback from your plugin-hosting application
  • A virtual audio input (connected to the virtual output above) - read from this in MATLAB using an audioDeviceReader object using a simple for or while loop as described in this example and many others.

카테고리

Help CenterFile Exchange에서 Audio Plugin Creation and Hosting에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by