From d4851370479064a9503449a932c3689698bfbaed Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Sun, 5 Nov 2017 17:59:11 +0300 Subject: Fix of infinite notes are appearing after events sort with 0-length notes Also a small optimizing: - Convert Note-ON with zero velocity into Note-OFF event - Don't re-sort row, just put note-off into begin of the row instead --- src/adlmidi_private.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/adlmidi_private.hpp') diff --git a/src/adlmidi_private.hpp b/src/adlmidi_private.hpp index 49c431d..3749129 100644 --- a/src/adlmidi_private.hpp +++ b/src/adlmidi_private.hpp @@ -581,7 +581,7 @@ public: /** * @brief Sort events in this position */ - void sortEvents(); + void sortEvents(bool *noteStates = NULL); }; /** -- cgit v1.2.3