From 2a73d6878e187bf2cf8af4a323f723fd28439856 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Mon, 21 Jan 2019 15:59:25 +0000 Subject: [PATCH] fix for Behringer X-Touch --- src/soundbase.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/soundbase.cpp b/src/soundbase.cpp index 22de2937..4f66c043 100755 --- a/src/soundbase.cpp +++ b/src/soundbase.cpp @@ -129,7 +129,10 @@ printf ( "\n" ); const int iFaderLevel = static_cast ( static_cast ( qMin ( vMIDIPaketBytes[2], uint8_t ( 127 ) ) ) / 127 * AUD_MIX_FADER_MAX ); - EmitControllerInFaderLevel ( vMIDIPaketBytes[1], iFaderLevel ); + // Behringer X-TOUCH: offset of 0x46 + const int iChID = vMIDIPaketBytes[1] - 70; + + EmitControllerInFaderLevel ( iChID, iFaderLevel ); /* // TEST TD-20 Hi-Hat control for fader 0 level