diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-08 16:05:26 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-08 16:05:26 +0000 |
commit | 8a1e6363da093a6f6367846153a8a806c4270c64 (patch) | |
tree | 3eab797d9af061331c2387ed646cd61cf30b461d /libs/surfaces/mackie/mackie_port.cc | |
parent | 5d29d591b806f64968e68eb3e3c8317007e00df2 (diff) |
MCP: fix fader mapping from extenders
git-svn-id: svn://localhost/ardour2/branches/3.0@11832 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/mackie_port.cc')
-rw-r--r-- | libs/surfaces/mackie/mackie_port.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/surfaces/mackie/mackie_port.cc b/libs/surfaces/mackie/mackie_port.cc index e0598a6774..1c4495485f 100644 --- a/libs/surfaces/mackie/mackie_port.cc +++ b/libs/surfaces/mackie/mackie_port.cc @@ -329,9 +329,9 @@ 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)); + DEBUG_TRACE (DEBUG::MackieControl, string_compose ("handle_midi pitchbend, fader = %1 value = %2\n", (8*number()) + fader_id, pb)); - Control* control = _mcp.surface().faders[fader_id]; + Control* control = _mcp.surface().faders[(8*number()) + fader_id]; if (control) { float midi_pos = pb >> 4; // only the top 10 bytes are used |