13
0

MCP: fix (?) interpretation of fader/pitchbend messages

git-svn-id: svn://localhost/ardour2/branches/3.0@11830 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-04-08 15:45:52 +00:00
parent fcada6e737
commit 66c83f2765

View File

@ -334,8 +334,8 @@ MackiePort::handle_midi_pitchbend_message (MIDI::Parser&, MIDI::pitchbend_t pb,
Control* control = _mcp.surface().faders[fader_id];
if (control) {
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));
float midi_pos = pb >> 4; // only the top 10 bytes are used
_mcp.handle_control_event (*this, *control, midi_pos / 1023.0);
}
}