summaryrefslogtreecommitdiff
path: root/libs/surfaces/mackie/mackie_port.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-04-08 15:16:34 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-04-08 15:16:34 +0000
commitfcada6e737b9aa09d7d4637a5db7556e5305300b (patch)
treebb74f470dfaf7bc2d1ee91cdfed4618e18d6f72c /libs/surfaces/mackie/mackie_port.cc
parent0e72a29bcc855907dbb87d129a2e6b4f2c844d94 (diff)
MCP: add debug tracing for fader (pitchbend) messages
git-svn-id: svn://localhost/ardour2/branches/3.0@11829 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/mackie_port.cc')
-rw-r--r--libs/surfaces/mackie/mackie_port.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/libs/surfaces/mackie/mackie_port.cc b/libs/surfaces/mackie/mackie_port.cc
index f725407b02..d90969f04c 100644
--- a/libs/surfaces/mackie/mackie_port.cc
+++ b/libs/surfaces/mackie/mackie_port.cc
@@ -329,15 +329,12 @@ void MackiePort::handle_midi_sysex (MIDI::Parser &, MIDI::byte * raw_bytes, size
void
MackiePort::handle_midi_pitchbend_message (MIDI::Parser&, MIDI::pitchbend_t pb, uint32_t fader_id)
{
+ DEBUG_TRACE (DEBUG::MackieControl, string_compose ("handle_midi pitchbend, fader = %1 value = %2\n", fader_id, pb));
+
Control* control = _mcp.surface().faders[fader_id];
if (control) {
- // only the top-order 10 bits out of 14 are used
- int midi_pos = pb & 0x3ff;
-
- // in_use is set by the MackieControlProtocol::handle_strip_button
-
- // relies on implicit ControlState constructor
+ int midi_pos = pb & 0x3ff; // only the top-order 10 bits out of 14 are used
_mcp.handle_control_event (*this, *control, float (midi_pos) / float(0x3ff));
}
}