EasyMIDI.EasyMIDI¶
-
class
EasyMIDI.
EasyMIDI
¶ EasyMIDI handles MIDI files with the help of midiutil.
Initialize a midiutil MIDIFile object.
-
__init__
()¶ Initialize a midiutil MIDIFile object.
Methods
__init__
()Initialize a midiutil MIDIFile object. addTrack
(track)Add a single track/channel to the midiutil MIDIFile object. addTracks
(tracks)Add multiple tracks to the midiutil MIDIFile object. writeMIDI
(path)Write the MIDI file to the disk. -
addTrack
(track)¶ Add a single track/channel to the midiutil MIDIFile object.
Parameters: track ( Track
) – A Track object.
-
addTracks
(tracks)¶ Add multiple tracks to the midiutil MIDIFile object.
Parameters: tracks (list of Track
objects) – A list of tracks.
-
writeMIDI
(path)¶ Write the MIDI file to the disk.
Parameters: path (str) – The path to store the MIDI file at (ex. output.mid).
-