diff options
author | Tim E. Real <termtech@rogers.com> | 2012-10-21 04:01:33 +0000 |
---|---|---|
committer | Tim E. Real <termtech@rogers.com> | 2012-10-21 04:01:33 +0000 |
commit | d7c62c8a41b9ce4688a03a054522cbff1983d408 (patch) | |
tree | 2bc8ef28d28df7eb9e5fafbac79c5f4b9d7e7bb7 /muse2/muse | |
parent | c4aca7b81e76e0f098ac0f855599bdf1e3cf1e22 (diff) |
In MidiEventBase::read() Repair controllers saved with lo byte 0xff.
No such control. It was supposed to be 0x00.
It's an error caused by a previous bug, fixed now.
Diffstat (limited to 'muse2/muse')
-rw-r--r-- | muse2/muse/midievent.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/muse2/muse/midievent.cpp b/muse2/muse/midievent.cpp index 9e0e8974..7599e3d9 100644 --- a/muse2/muse/midievent.cpp +++ b/muse2/muse/midievent.cpp @@ -177,7 +177,14 @@ void MidiEventBase::read(Xml& xml) break; case Xml::TagEnd: if (tag == "event") + { + // HACK: Repair controllers saved with lo byte 0xff. + // No such control. It was supposed to be 0x00. + // It's an error caused by a previous bug, fixed now. + if((type() == Controller) && ((a & 0xff) == 0xff)) + a &= ~0xff; return; + } default: break; } |