Skip to content

midi()

Write music library material to a MIDI file.

Write.midi(material, filename)

If the file already exists, it is overwritten.

Parameters

Write.midi(material, filename)
Parameter Type Default Description
material Note, Phrase, Part, or Score required The music to write.
filename str required The MIDI file to write (a .mid file).