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.
This commit is contained in:
Tobias Doerffel
2014-01-26 00:33:51 +01:00
parent 1fddc81c04
commit b6e4860fdb

View File

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