Skip to content

Write

You can create a MIDI file from your program using the Write.midi() function. This function expects a Score (Part, Phrase, or Note) and a file name.

Functions

Function Description
Write.midi(material, filename) Write music library material to a MIDI file.

For example,

Write.midi(score, "song.mid")

writes the musical data in score into the MIDI file called “song.mid”. This file is saved in the same folder as your program. If the MIDI file already exists, it will be overwritten.