diff --git a/other/build.nr b/other/build.nr index 4bf4242..adf4269 100644 --- a/other/build.nr +++ b/other/build.nr @@ -1 +1 @@ -1959 +1960 diff --git a/src/ostd/Midi.hpp b/src/ostd/Midi.hpp index 67064dd..53f04ef 100644 --- a/src/ostd/Midi.hpp +++ b/src/ostd/Midi.hpp @@ -25,6 +25,8 @@ namespace ostd public: inline bool operator<(const NoteEvent& other) const { + if (startTime == other.startTime) + return pitch < other.pitch; return startTime < other.startTime; } inline ostd::String toString(void) const