How to setup a MIDI device for a software instrument?

조회 수: 10 (최근 30일)
BreezyWest
BreezyWest 2018년 11월 6일
답변: Charlie DeVane 2019년 10월 9일
How would I go about interfacing my digital piano with Matlab, such that I can play audio files from my computer in real-time?
Many implementations available only use a computer keyboard for input and thus don't have the velocity or sustain (via pedal) associated with the use of software instruments. I have access to the Audio System Toolbox, but am struggling through the documentation to see how such can be implemented. Additionally, what concerns are there about latency with Matlab's MIDI interface?
  댓글 수: 1
Frederic Piat
Frederic Piat 2019년 6월 9일
This is what I believe with the little experience I have but you'd need to check on my answer:
  • when playing files, I do not need Matlab and did not try from within Matlab, but when I play a midi file from windows, the standard windows (or any other) player plays it and if I plug my keyboard on the USB port (cord bought from Amazon for 5€, works great) the sound is redirected to my keyboard without anything else to do. I believe that will be the same if playing the midifile (but probably not just any sound file) with a Matlab command (unless Matlab translates it into a soundwave or something, different from the midi standard)
  • to do MIDI in real-time (I know that's not what you're asking but you may still find some answers to related questions):
https://fr.mathworks.com/help/audio/musical-instrument-digital-interface-midi.html?s_tid=CRUX_lftnav
Musical Instrument Digital Interface (MIDI)
Create, send, and receive MIDI messages
Audio Toolbox™ enables you to create, send, and receive MIDI messages. You can interface with MIDI Control Surfaces and MIDI Devices in real time.
  • Regarding latency, I don't know

댓글을 달려면 로그인하십시오.

답변 (1개)

Charlie DeVane
Charlie DeVane 2019년 10월 9일
Sorry, the Audio Toolbox does not have any builtin capability to read or write MIDI files.
hth,
Charlie

카테고리

Help CenterFile Exchange에서 Simulation, Tuning, and Visualization에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by