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 );