@@ -1684,39 +1684,39 @@ void PluginProcessor::receiveControlChange(int const channel, int const controll
16841684 auto const port = channel >> 4 ;
16851685 auto const deviceChannel = channel - port * 16 ;
16861686
1687- midiDeviceManager.enqueueMidiOutput (port, MidiMessage::controllerEvent (deviceChannel, controller, value), audioAdvancement);
1687+ midiDeviceManager.enqueueMidiOutput (port, MidiMessage::controllerEvent (deviceChannel + 1 , controller, value), audioAdvancement);
16881688}
16891689
16901690void PluginProcessor::receiveProgramChange (int const channel, int const value)
16911691{
16921692 auto const port = channel >> 4 ;
16931693 auto const deviceChannel = channel - port * 16 ;
16941694
1695- midiDeviceManager.enqueueMidiOutput (port, MidiMessage::programChange (deviceChannel, value), audioAdvancement);
1695+ midiDeviceManager.enqueueMidiOutput (port, MidiMessage::programChange (deviceChannel + 1 , value), audioAdvancement);
16961696}
16971697
16981698void PluginProcessor::receivePitchBend (int const channel, int const value)
16991699{
17001700 auto const port = channel >> 4 ;
17011701 auto const deviceChannel = channel - port * 16 ;
17021702
1703- midiDeviceManager.enqueueMidiOutput (port, MidiMessage::pitchWheel (deviceChannel, value + 8192 ), audioAdvancement);
1703+ midiDeviceManager.enqueueMidiOutput (port, MidiMessage::pitchWheel (deviceChannel + 1 , value + 8192 ), audioAdvancement);
17041704}
17051705
17061706void PluginProcessor::receiveAftertouch (int const channel, int const value)
17071707{
17081708 auto const port = channel >> 4 ;
17091709 auto const deviceChannel = channel - port * 16 ;
17101710
1711- midiDeviceManager.enqueueMidiOutput (port, MidiMessage::channelPressureChange (deviceChannel, value), audioAdvancement);
1711+ midiDeviceManager.enqueueMidiOutput (port, MidiMessage::channelPressureChange (deviceChannel + 1 , value), audioAdvancement);
17121712}
17131713
17141714void PluginProcessor::receivePolyAftertouch (int const channel, int const pitch, int const value)
17151715{
17161716 auto const port = channel >> 4 ;
17171717 auto const deviceChannel = channel - port * 16 ;
17181718
1719- midiDeviceManager.enqueueMidiOutput (port, MidiMessage::aftertouchChange (deviceChannel, pitch, value), audioAdvancement);
1719+ midiDeviceManager.enqueueMidiOutput (port, MidiMessage::aftertouchChange (deviceChannel + 1 , pitch, value), audioAdvancement);
17201720}
17211721
17221722void PluginProcessor::receiveMidiByte (int const channel, int const byte)
0 commit comments