aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi_private.hpp
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2018-09-26 02:58:19 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2018-09-26 02:58:19 +0300
commit63dfa67e16887c550b29ee5a1e97c895a9878441 (patch)
tree001cdc4857371ad90400d31eae1b03cd6525ddf8 /src/adlmidi_private.hpp
parent60171b220a3d0d195fee73b284c4cae7fddf0f58 (diff)
downloadlibADLMIDI-63dfa67e16887c550b29ee5a1e97c895a9878441.tar.gz
libADLMIDI-63dfa67e16887c550b29ee5a1e97c895a9878441.tar.bz2
libADLMIDI-63dfa67e16887c550b29ee5a1e97c895a9878441.zip
Pay attention to releasing notes
#181
Diffstat (limited to 'src/adlmidi_private.hpp')
-rw-r--r--src/adlmidi_private.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/adlmidi_private.hpp b/src/adlmidi_private.hpp
index c5b70ee..43986c5 100644
--- a/src/adlmidi_private.hpp
+++ b/src/adlmidi_private.hpp
@@ -880,6 +880,9 @@ public:
//! Time left until sounding will be muted after key off
int64_t koff_time_until_neglible_us;
+ //! Recently passed instrument, improves a goodness of released but busy channel when matching
+ MIDIchannel::NoteInfo::Phys recent_ins;
+
enum { users_max = 128 };
LocationData *users_first, *users_free_cells;
LocationData users_cells[users_max];
@@ -898,6 +901,7 @@ public:
AdlChannel(): koff_time_until_neglible_us(0)
{
users_clear();
+ std::memset(&recent_ins, 0, sizeof(MIDIchannel::NoteInfo::Phys));
}
AdlChannel(const AdlChannel &oth): koff_time_until_neglible_us(oth.koff_time_until_neglible_us)