bool CMackieControlXT::OnMidiInShort(BYTE bStatus, BYTE bD1, BYTE bD2) { // TRACE("CMackieControlXT::OnMidiInShort()\n"); switch (bStatus) { case 0xE0: case 0xE1: case 0xE2: case 0xE3: case 0xE4: case 0xE5: case 0xE6: case 0xE7: return OnFader(bStatus & 0x0F, bD1, bD2); break; case 0x90: return OnSwitch(bD1, bD2); break; case 0xB0: return OnVPot(bD1, bD2); break; default: break; } return false; // Wasn't for us }
bool CMackieControlMaster::OnMidiInShort(BYTE bStatus, BYTE bD1, BYTE bD2) { // TRACE("CMackieControlMaster::OnMidiInShort()\n"); // See if it's for the XT section if (CMackieControlXT::OnMidiInShort(bStatus, bD1, bD2)) return true; switch (bStatus) { case 0xE8: return OnFader(bD1, bD2); break; case 0x90: return OnSwitch(bD1, bD2); break; case 0xB0: if (0x2E == bD1) { return OnExternalController(bD2); } else if (0x3C == bD1) { return OnJog(bD2); } break; default: break; } return false; // Wasn't for us }