Audio Toolkit - midifilewrite


: midifilewrite (filename, msgs)
: midifilewrite (filename, msgs, optionname, optionvalue)

Write a midifile

Inputs

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:

format

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.

Outputs

None

See also: midifileread, midimsg.