From fcff349ba55fd77f106e2dde96c34bce3e99609b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 10 Apr 2012 15:21:56 +0000 Subject: [PATCH] MCP: fix 2-char display message to avoid running status issues with JACK MIDI git-svn-id: svn://localhost/ardour2/branches/3.0@11866 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/surfaces/mackie/mackie_midi_builder.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/surfaces/mackie/mackie_midi_builder.cc b/libs/surfaces/mackie/mackie_midi_builder.cc index f7c47f2aba..53528b2459 100644 --- a/libs/surfaces/mackie/mackie_midi_builder.cc +++ b/libs/surfaces/mackie/mackie_midi_builder.cc @@ -186,11 +186,11 @@ MidiByteArray MackieMidiBuilder::two_char_display (const std::string & msg, cons if (msg.length() != 2) throw MackieControlException ("MackieMidiBuilder::two_char_display: msg must be exactly 2 characters"); if (dots.length() != 2) throw MackieControlException ("MackieMidiBuilder::two_char_display: dots must be exactly 2 characters"); - MidiByteArray bytes (5, 0xb0, 0x4a, 0x00, 0x4b, 0x00); + MidiByteArray bytes (6, 0xb0, 0x4a, 0x00, 0xb0, 0x4b, 0x00); // chars are understood by the surface in right-to-left order // could also exchange the 0x4a and 0x4b, above - bytes[4] = translate_seven_segment (msg[0]) + (dots[0] == '.' ? 0x40 : 0x00); + bytes[5] = translate_seven_segment (msg[0]) + (dots[0] == '.' ? 0x40 : 0x00); bytes[2] = translate_seven_segment (msg[1]) + (dots[1] == '.' ? 0x40 : 0x00); return bytes;