| 64 | |
| 65 | |
| 66 | virtual void processInEvent( const MidiEvent& event, const MidiTime& time, f_cnt_t offset = 0 ) |
| 67 | { |
| 68 | if( event.type() == MidiControlChange && |
| 69 | ( m_midiPort.inputChannel() == 0 || m_midiPort.inputChannel() == event.channel() + 1 ) ) |
| 70 | { |
| 71 | m_detectedMidiChannel = event.channel() + 1; |
| 72 | m_detectedMidiController = event.controllerNumber() + 1; |
| 73 | m_detectedMidiPort = Engine::mixer()->midiClient()->sourcePortName( event ); |
| 74 | |
| 75 | emit valueChanged(); |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | |
| 80 | // Would be a nice copy ctor, but too hard to add copy ctor because |
no test coverage detected