Fix autodetect of midicontroller

Fix #999
This commit is contained in:
Vesa
2014-08-07 11:36:28 +03:00
parent 06be5bba82
commit a138b71ab5

View File

@@ -63,7 +63,7 @@ public:
}
virtual void processInEvent( const MidiEvent& event, const MidiTime& time )
virtual void processInEvent( const MidiEvent& event, const MidiTime& time, f_cnt_t offset = 0 )
{
if( event.type() == MidiControlChange &&
( m_midiPort.inputChannel() == 0 || m_midiPort.inputChannel() == event.channel() + 1 ) )