From 3be675ac7b2e1208019814fa2764dda6ef20d3b4 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 11 Nov 2012 23:40:48 +0100 Subject: [PATCH] Vestige: send NoteOff events for all possible MIDI keys In VestigeInstrumentView::noteOffAll() do not only send MIDI NoteOff events for all LMMS keys but for the whole range of MIDI keys. --- plugins/vestige/vestige.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/vestige/vestige.cpp b/plugins/vestige/vestige.cpp index 425cbecdd..8bcbf4803 100644 --- a/plugins/vestige/vestige.cpp +++ b/plugins/vestige/vestige.cpp @@ -711,7 +711,7 @@ void VestigeInstrumentView::noteOffAll( void ) m_vi->m_pluginMutex.lock(); if( m_vi->m_plugin != NULL ) { - for( int key = 0; key < NumKeys; ++key ) + for( int key = 0; key <= MidiMaxNote; ++key ) { m_vi->m_plugin->processMidiEvent( midiEvent( MidiNoteOff, 0, key, 0 ), 0 );