mirror of
https://github.com/juanjiant-bit/JIANT.git
synced 2026-12-05 12:24:42 +01:00
hal/smk_input.h: Melodee's SMK-37 HAL as it is (velocity keybed, 18 buttons, 8 encoders, the button LEDs, pads, faders, wheels; the fm1_adc.h stand-ins, K5 as the MASTER pot), with three no-op stand-ins for JIANT's dim / sweep LED calls. felucca.c includes it instead of fm1_input.h and fm1_adc.h on the SMK (PB6 is the SMK's LCD clock). The mapping (panel.c, after Melodee's): FX=FX, SCALE=SCL, CHORD=ENV, NOTE REPEAT=LFO, PARA=EDIT, GLOBE=GLO, PATCH=HOME, BT=SAVE, ARP, SEQ, SEQ PLAY=PLAY, SEQ REC=REC, OCTAVE-/+ = OCT-/+; K1-K4 KNOB 1-4, K5 MASTER, K6 SELECT, K7 ALGORITHM, K8 PRESETS; magic 'PNS5', validation against the SMK's 18 buttons / 8 encoders; HARDWARE CALIBRATION asks by the printed names. ui_input.c: < and > one SELECT step, KNOB BANK / FADER BANK nothing, the pad and outer-key queues drained, button loops over the SMK's ids, an SMK ui_leds (button LEDs on/off, breathing = blink, the pads show their white key's LED); ui.pg_down widened to 32 bits on the SMK. seq.c: a key struck again while held (notes_retrig) sounds again. main.c: OCTAVE- + OCTAVE+ at power-on for the calibration. console.c: no 'inp' on the SMK. lcd.c: the pad LED buffer in .bss. Tests: tests/smk_map_test.c (the mapping), tests/smk_keys_test.c (Melodee's keybed test, unchanged). The FM-1 build is byte-identical. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UVqsRpEnNJfjWWrH3C4opq