mididevice
Send and receive MIDI messages
Description
Interface to a MIDI device in MATLAB® using mididevice. Package MIDI messages using midimsg. Send
and receive messages using midisend
and midireceive. Use mididevinfo to query your system for available MIDI
devices.

For a tutorial on interfacing with MIDI devices, see MIDI Device Interface.
Creation
Syntax
Description
returns an interface to the MIDI device specified by
device = mididevice(deviceNameOrID)deviceNameOrID. If the MIDI device supports MIDI in and
MIDI out, then device also supports MIDI in and MIDI
out.
returns an input interface to the MIDI input device,
device = mididevice('Input',inDeviceNameOrID)inDeviceNameOrID.
returns an output interface to the MIDI output device,
device = mididevice('Output',outDeviceNameOrID)outDeviceNameOrID.
returns a MIDI I/O interface, where input is received from
device = mididevice('Input',inDeviceNameOrID,'Output',outDeviceNameOrID)inDeviceNameOrID and output is sent to
outDeviceNameOrID.
Properties
Object Functions
midisend | Send MIDI message to MIDI device |
midireceive | Receive MIDI message from MIDI device |
hasdata | Determine if data is available to read from MIDI device |
Examples
Version History
Introduced in R2018a
See Also
parameterTuner | Audio Test Bench | midisend | midireceive | mididevinfo | midimsg