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:
@@ -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() );
|
||||
|
||||
Reference in New Issue
Block a user