From b6e4860fdba3a2085d6ece54ca02abe6e6a2b2d2 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 26 Jan 2014 00:33:51 +0100 Subject: [PATCH] InstrumentTrack: do not set state of piano in processInEvent() As processInEvent() is responsible for starting/stopping notes, we do not have to set the state of the piano. This is done in processOutEvents() already. --- src/tracks/InstrumentTrack.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/tracks/InstrumentTrack.cpp b/src/tracks/InstrumentTrack.cpp index 0b55bf53f..75aff5779 100644 --- a/src/tracks/InstrumentTrack.cpp +++ b/src/tracks/InstrumentTrack.cpp @@ -237,8 +237,6 @@ void InstrumentTrack::processInEvent( const MidiEvent& event, const MidiTime& ti { if( m_notes[event.key()] == NULL ) { - m_piano.setKeyState( event.key(), true ); - // create temporary note note n; n.setKey( event.key() );