diff --git a/src/app_task.cpp b/src/app_task.cpp index c736963..e5f1607 100644 --- a/src/app_task.cpp +++ b/src/app_task.cpp @@ -32,10 +32,9 @@ void AppTask::begin() { } void AppTask::run_layout_test() { - Serial.println("[APP] Running layout identification test..."); + Serial.println("[APP] Running layout test (Launchpad X: notes 36-45, ch1)..."); - // Test 1: Launchpad X (notes 36-45, ch1) - Serial.println("[APP] Layout 1: Launchpad X (notes 36-45, ch1)"); + // Quick test: Launchpad X (notes 36-45, ch1) - 500ms per pad for (uint8_t i = 0; i < NUM_PADS; i++) { MidiEvent event; event.type = MidiEvent::NOTE_ON; @@ -43,62 +42,14 @@ void AppTask::run_layout_test() { event.data1 = 36 + i; event.data2 = 64; process_midi_event(event); - vTaskDelay(pdMS_TO_TICKS(1500)); + vTaskDelay(pdMS_TO_TICKS(500)); event.type = MidiEvent::NOTE_OFF; event.data2 = 0; process_midi_event(event); - vTaskDelay(pdMS_TO_TICKS(300)); + vTaskDelay(pdMS_TO_TICKS(100)); } - // Test 2: Launchpad Mini (notes 0-9, ch1) - Serial.println("[APP] Layout 2: Launchpad Mini (notes 0-9, ch1)"); - for (uint8_t i = 0; i < NUM_PADS; i++) { - MidiEvent event; - event.type = MidiEvent::NOTE_ON; - event.channel = 1; - event.data1 = i; - event.data2 = 64; - process_midi_event(event); - vTaskDelay(pdMS_TO_TICKS(1500)); - event.type = MidiEvent::NOTE_OFF; - event.data2 = 0; - process_midi_event(event); - vTaskDelay(pdMS_TO_TICKS(300)); - } - - // Test 3: Channel 2 (notes 36-45) - Serial.println("[APP] Layout 3: Channel 2 flashing (notes 36-45, ch2)"); - for (uint8_t i = 0; i < NUM_PADS; i++) { - MidiEvent event; - event.type = MidiEvent::NOTE_ON; - event.channel = 2; - event.data1 = 36 + i; - event.data2 = 64; - process_midi_event(event); - vTaskDelay(pdMS_TO_TICKS(1500)); - event.type = MidiEvent::NOTE_OFF; - event.data2 = 0; - process_midi_event(event); - vTaskDelay(pdMS_TO_TICKS(300)); - } - - // Test 4: Channel 3 (notes 36-45) - Serial.println("[APP] Layout 4: Channel 3 pulsing (notes 36-45, ch3)"); - for (uint8_t i = 0; i < NUM_PADS; i++) { - MidiEvent event; - event.type = MidiEvent::NOTE_ON; - event.channel = 3; - event.data1 = 36 + i; - event.data2 = 64; - process_midi_event(event); - vTaskDelay(pdMS_TO_TICKS(1500)); - event.type = MidiEvent::NOTE_OFF; - event.data2 = 0; - process_midi_event(event); - vTaskDelay(pdMS_TO_TICKS(300)); - } - - Serial.println("[APP] Layout test complete - observe which lit your pads"); + Serial.println("[APP] Layout test complete"); } void AppTask::update() {