     Serial.print(note);
     Serial.print("\n");
 
-    int key = note2key(note);
-    if (key < 1 || key > 61) {
+    midiKeys[note & 0x7f] = vel;
+    if (note <= MANUAL_KEY_0 || note > MANUAL_KEY_61) {
         return;
     }
 

        percussionEnv.noteOff();
    }

    keys[key] = 0;
    updateTonewheels();
}


#define CC_PERCUSSION_SOFT (89)
#define CC_PERCUSSION_THIRD (95) // is this correct?

uint16_t volumes[92] = {0};
uint16_t percVolumes[92] = {0};

