From 2ac6d5df7a82f45e2833a8dc412699a230a64143 Mon Sep 17 00:00:00 2001 From: Dave French Date: Sat, 18 Apr 2015 22:46:58 +0100 Subject: [PATCH] ZynSubAddFx routed all MIDI cc messages to channel 0 Lmms routes all midi notes to ZSAF on channel 0, however the CC messages not routed, and could erronusoly be sent on other channels. This would lead to ZSAF not acting on these midi commands This pull request routes All Midi CC messages to channel 0 fixes #1953 --- plugins/zynaddsubfx/ZynAddSubFx.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/zynaddsubfx/ZynAddSubFx.cpp b/plugins/zynaddsubfx/ZynAddSubFx.cpp index bdb0c6e1f..2a9f60224 100644 --- a/plugins/zynaddsubfx/ZynAddSubFx.cpp +++ b/plugins/zynaddsubfx/ZynAddSubFx.cpp @@ -350,14 +350,16 @@ bool ZynAddSubFxInstrument::handleMidiEvent( const MidiEvent& event, const MidiT return true; } + MidiEvent localEvent = event; + localEvent.setChannel( 0 ); m_pluginMutex.lock(); if( m_remotePlugin ) { - m_remotePlugin->processMidiEvent( event, 0 ); + m_remotePlugin->processMidiEvent( localEvent, 0 ); } else { - m_plugin->processMidiEvent( event ); + m_plugin->processMidiEvent( localEvent ); } m_pluginMutex.unlock();