Update pad_mapping to Launchpad X standard notes 36-45 (C2-A2) on channel 1

This commit is contained in:
2026-06-24 03:37:29 +00:00
parent 7f061aecbf
commit e5e546ed39
+4 -1
View File
@@ -4,10 +4,13 @@
AppTask::AppTask(LedStub* led, SwitchStub* sw, UsbMidiTransport* midi)
: led_driver(led), switch_driver(sw), midi_transport(midi) {
// Launchpad X standard: bottom row = notes 36-45 (C2 to A2) on channel 1
const uint8_t launchpad_notes[10] = {36, 37, 38, 39, 40, 41, 42, 43, 44, 45};
for (uint8_t i = 0; i < NUM_PADS; i++) {
pad_mapping[i].physical_switch = i;
pad_mapping[i].midi_channel = 1;
pad_mapping[i].midi_note = i;
pad_mapping[i].midi_note = launchpad_notes[i];
pad_mapping[i].led_index = i;
last_switch_state[i] = false;
}