Closed thomasarvanitidis closed 3 years ago
Hi @thomasarvanitidis. note-seq uses pretty-midi to turn NoteSequences into midi files. It looks like pretty-midi uses a separate "timing track" for things like the end_of_track message, which explains what you're seeing: https://github.com/craffel/pretty-midi/blob/master/pretty_midi/pretty_midi.py#L1377
If you need to manipulate low-level MIDI events like this message, I'd suggest using pretty-midi or mido directly. If it's helpful, you can convert a NoteSequence to a pretty-midi object with the note_sequence_to_pretty_midi
method.
When you import the following generated MIDI file in a DAW (I work with REAPER), the DAW asks whether to expand the 2 MIDI tracks to new session tracks. However, I am programming a single track with all notes in channel 10. AFAIU, this happens because the MIDI end of track meta message is automatically inserted in channel 1 by
note_seq
. Is there a way to manually insert the end of track meta message or manipulate it programmatically?I have searched for NoteSequence creation in magenta and note-seq, but didn't managed to find anything related. I was also unlucky reading the note_seq/protobuf/music_pb2.py. Using note-seq 0.0.3.