midi()
Write music library material to a MIDI file.
If the file already exists, it is overwritten.
Parameters
Write.midi() is a static utility. Call it on the Write class itself, for example:
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). |