Open JamesOwers opened 5 years ago
We had mentioned that this might be fine (even though the note_off precedes the note_on--which is somewhat important). Any model should just learn that such a case corresponds to a very short note.
Otherwise, we can just not include such notes.
We decided to force all notes to be at minimum length 1. This is because the command format is complicated by length zero notes i.e. note off followed by note on in the same time instance.
TODO: This rounding may result in notes of length 0.
https://github.com/JamesOwers/midi_degradation_toolkit/blob/703885761088d315bec29718dcd8ba46a6834b69/mdtk/formatters.py#L355