Next: Enumerations, Previous: MIDI Controller Interface, Up: Function Reference [Contents][Index]
Check if filename is a midi file.
The function only checks whether it is an existing file and the file starts with a valid ’MThd’ header.
Non existing files, or files that do not meet the header criteria will return false.
filename - filename of file to check.
ismidi - true if it is a midi file, false otherwise
See also: midifileread, midifilewrite.
Read MIDI file and display information about the tracks and data
filename - filename of file to open.
info - structure of the midi file data
with the following fields:
the name of the file
The header block information
An array of tracks read from the file
An array of non-track midi blocks read from the file
See also: midifileread.
Read MIDI file into a midimsg
filename - filename of file to open.
propertyname, properyvalue - optional propertyname/value pairs.
Known property values are:
A True/False value to include MetaEvents in the out message list.
msg - a midimsg struct containing the messages read from the file
See also: midifileinfo, midimsg.
Write a midifile
filename - filename of file to open.
msg - a midimsg struct or a cell array of midimsg containing data to write to file
optionname, optionvalue - option value/name pairs
Known options are:
MIDI file format number. (0 (default), 1, 2)
Where format is 0, if a cell array is passed to midifilewrite, the midimsg values will be concatenated together before saving.
Were format is not 0, the cell array is treated as tracks of misimsg.
None
See also: midifileread, midimsg.
Next: Enumerations, Previous: MIDI Controller Interface, Up: Function Reference [Contents][Index]