diff --git a/docs/SMK37.md b/docs/SMK37.md index 8e34cf95..668bc323 100644 --- a/docs/SMK37.md +++ b/docs/SMK37.md @@ -1,7 +1,7 @@ # JIANT FM on the M-VAVE SMK-37 Pro / Elite **Status: experimental.** The previous SMK-37 build (main, v0.9.18 line) has run on one owner's unit. This one is -the port of that support to the public firmware **V10.8.48**, with a new control layout the owner approved. Everything +the port of that support to the public firmware **V10.8.48**, with **Rhythmer's control layout** (below). Everything new here was built and checked on the host only: every item marked *untested on hardware* must be checked on a unit. The SMK-37 has the same JieLi AC791N chip as the FM-1. It also has the same SPL and the same chip key (0x980F) @@ -15,6 +15,17 @@ with hardware notes at https://github.com/genkigenki/fm1-to-smk37). `hal/smk_inp owner tag, the LCD wiring, the pad LEDs and the panel table are adapted from Melodee and keep its attribution lines. M-VAVE's open SMK firmware was used for hardware facts only. No M-VAVE SDK binary is linked or copied. +Credits for this layout and its hardware details (all GPL-3.0; adapted, their notices kept in the files' headers): +- **Rhythmer** by **Jazzy Rhythmer** (https://github.com/JazzyRhythmer/Rhythmer), a fork of JIANT for the FM-1 with an + SMK-37 Pro build (0.1.2-smk3 guide, 0.1.2 source): the control layout (K1..K8, the buttons, KNOB BANK's PLAY / STEPS + pads, FADER BANK's four banks with the T5 / T6 window and pick-up), all 37 keys through the original key path with + the outer ten as extra notes, and the TRS MIDI OUT driver (`smk_map.h`, `smk.c`, `smk_kb.c`, `smk_uart_tx.h`, + `smk_midi_out.h`). +- **genkigenki** (M. Geisler): the SMK-37 board layer (https://github.com/genkigenki/Felucca, branch `smk37`), which + `hal/smk_input.h` is, and the porting reference https://github.com/genkigenki/fm1-to-smk37 (`docs/01-hardware.md`: + the key matrix, the encoders' order, the pads' rows, the mux addresses, the wheels' measured ranges, the TRS MIDI + OUT pin). + ## Build ```sh @@ -41,93 +52,136 @@ What the SMK build changes: | Bluetooth (`FELUCCA_BT`) | on: the segment at 0xEA000-0xFBFFF | **off** (`#error` if on): those sectors are the SMK's USRFLASH marker, store C and USR. GEN, the lyrics dictionary and the other code the FM-1 keeps in the segment are in the app image instead | | USB HOST (`FELUCCA_USB_HOST`) | on | off (the keybed is the keyboard; its flash is needed) | | TRS MIDI IN (UART1, PH8) | on | off: PH8 is a key-matrix row on the SMK (`#error` if turned on) | +| TRS MIDI OUT (`FELUCCA_SMK_TRS`) | none | on: UART1 TX on PC7, following MENU > CONTROL > MIDI OUT | | key velocity | `src/vel.c`, `vel_diag.c` (the FM-1's carbon pills) | the HAL's two-contact time and pad peaks (`hal/smk_input.h`); MENU > CONTROL > VELOCITY sets its curve (OFF = 100) | | LCD | SPI1 group B, PC7 CS, backlight PA2 | SPI1 group A: PB6 CLK, PB7 DO, PC8 CS, PB5 D/C, no backlight control | | input HAL | `hal/fm1_input.h`, `hal/fm1_adc.h` | `hal/smk_input.h` (it stands in for `fm1_adc.h`: PB6 is the LCD clock) | | the sound's pinned flash layout | `tools/audio_layout.txt` | `tools/audio_layout_smk37.txt` (its own, both models; `FELUCCA_REPIN=1` records it anew) | The app slot (0x8EA90 bytes) is the FM-1's. The encrypted region still ends at 0x92FFE inside the SMK's -0x9D000 app area. The SMK image (V10.8.48 + SMK) is **581072 B of the 584336 B slot: 3264 B free**; RAM .data+.bss -92740 B of 98304; the pool's spare 11776 B; RAM code 32660 B of 34816. Everything SMK-only is compiled for the SMK -board only (`firmware/src/smk.c`, `smk_kb.c`, `smk_map.h`, `#if BOARD_SMK37`). +0x9D000 app area. The SMK image (V10.8.48 + SMK, Rhythmer's layout, TRS MIDI OUT) is **580664 B of the 584336 B +slot: 3672 B free** (Elite: 580668 B, 3668 B free; the TRS jack costs ~1.2 KB); RAM .data+.bss 92828 B of 98304; the +pool's spare 11552 B; RAM code 32184 B of 34816. Everything SMK-only is compiled for the SMK board only +(`firmware/src/smk.c`, `smk_kb.c`, `smk_map.h`, `smk_midi_out.h`, `hal/smk_uart_tx.h`, `#if BOARD_SMK37`). -## The control mapping (V10.8 layout) +## The control mapping (Rhythmer's layout) -The owner's layout: the keybed always plays, the pads are steps / tracks / shortcuts, the knobs and faders have banks. -The code: `firmware/src/smk.c` (UI side), `firmware/src/smk_kb.c` (audio side), `firmware/src/smk_map.h` (the rules, -host-tested), `firmware/src/panel.c` (the buttons and knobs). +The layout is **Rhythmer's** SMK-37 Pro layout (Rhythmer OS 0.1.2-smk3, a GPL-3.0 fork of JIANT for the FM-1 by +Jazzy Rhythmer), adapted to V10.8.48. The keybed goes through the FM-1's own key path, the pads are the FM-1's white +keys or the page's steps, the faders have four banks. The code: `firmware/src/smk.c` (UI side), `firmware/src/smk_kb.c` +(the keys' block's SMK step: the outer keys, the pedal, the wheels), `firmware/src/smk_map.h` (the rules, host-tested), +`firmware/src/seq.c` (the FM-1's key path, holding 37 keys on the SMK), `firmware/src/panel.c` (the buttons and knobs). -### Keys, wheels, pedal - -| SMK-37 | JIANT | +| SMK-37 (printed) | JIANT V10.8.48 | |---|---| -| the 37 keys (C3..C6, all of them, both ends) | **always play the selected track**, at the velocity they are struck with. OCT- / OCT+ (-3..+3, both: 0) move the whole keyboard: key 1 is C3 + 12 x OCT, key 37 C6 + 12 x OCT; the window is moved, never folded, so every key stays a note of its own in 0..127. They go in as MIDI in on the selected track's channel (the firmware's own MIDI path: ARP, recording, DRUM-X's MIDI map, MIDI LEARN, the matrix's VEL), and out to MIDI OUT as the FM-1's keys do. A key held while the track or the octave changes ends the note it started. They play chromatically (the FM-1 keys' SCL key maps, QNT WHITE / SNAP and CHORD, are the FM-1 keys'). | -| PITCH wheel | pitch bend on the selected track (its rest at power-on is the centre, a small dead zone; the track's bend range, RPN 0) | -| MOD wheel | CC1 on the selected track: the matrix's MOD WHEEL source (0 at its rest) | -| SUSTAIN pedal | CC64 on the selected track: the notes held while it is down (either polarity: its reading at power-on is "up") | -| another track picked | the old track's bend, CC1 and pedal let go; the new one gets them | +| K1 | **MASTER** (a virtual pot: 24 steps a detent, 724 at power-on) | +| K2 | **SELECT** (the section's pages) | +| K3 | **ALGORITHM** (the track, as on the FM-1) | +| K4 | **PRESETS** | +| K5..K8 | **KNOB 1..4** (the screen's four page knobs) | +| PATCH | HOME (held ~0.7 s: the MENU, as the FM-1's HOME) | +| PARA | EDIT | +| CHORD | ENV | +| NOTE REPEAT | LFO | +| SCALE / FX / GLOBE / ARP / SEQ | SCL / FX / GLO / ARP / SEQ | +| BT | SAVE (not Bluetooth) | +| SEQ PLAY | PLAY (again: STOP) | +| SEQ REC | REC | +| OCTAVE- / OCTAVE+ | OCT- / OCT+: the octave, and back / YES on action pages and dialogs, as on the FM-1 | +| < / > | the page before / after (one SELECT detent; not in a dialog) | +| KNOB BANK | the pads **PLAY <-> STEPS** (its LED lit in STEPS; blinking while a change waits for the pads) | +| FADER BANK | the faders **LEVEL -> PAN -> REVERB -> DELAY** (its LED lit for PAN, REVERB, DELAY) | +| the 37 keys | all through the FM-1's key path (below) | +| 16 pads | PLAY: the FM-1's 16 white keys; STEPS: the page's 16 steps (below) | +| F1..F4 | the bank's value of T1..T4; with T5 or T6 selected F1 / F2 are T5 / T6 (F3, F4 nothing) | +| PITCH / MOD wheels | pitch bend / modulation (CC1, the matrix's MOD WHEEL) of the selected track | +| SUSTAIN pedal | sustain (JIANT's; Rhythmer has none) | +| TRS MIDI OUT (3.5 mm) | what MENU > CONTROL > MIDI OUT sends over USB, also out of the jack, track n on channel n | + +### Keys + +All 37 keys go through the FM-1's **original key path** (`seq.c` keyboard_block, kb_map, key_on / key_off), with +velocity: SCL's key maps (QUANT WHITE / SNAP), CHORD, STRUM, ARP, LATCH, KEY SPLIT, recording, DRONE CLAY, MIDI OUT. + +- **The central 27 (the 6th to the 32nd key, F3..G5)**, are the FM-1's 27 keys (`fm1_in.notes`): everything the FM-1's keys do + they do, on every page: the layers' shortcuts (GLO + G4 UNDO ...), NAME's letters, the DRUM grid, step entry while + stopped, SCENE. +- **The outer ten (C3..E3 and G#5..C6)** play extra notes: MIDI 48..52 and 80..84 at OCT 0 (the keybed is MIDI + 48..84), moved by OCT, through the same key path (a DRUM track: a lane each). Where the FM-1's keys are the UI's + (a layer's button held, NAME, the DRUM grid) and under the splash they are silent. +- A key struck again before a full lift sounds again (a release, then the new note at its new velocity); a key held + while the track or the octave changes ends the note it started. +- Key ids: the HAL's key k (0 = C3 .. 36 = C6, genkigenki's matrix table, verified in use on an SMK-37 Pro); ids + 5..31 are the FM-1's keys 0..26, ids 0..4 the key path's keys 27..31 and ids 32..36 keys 32..36 (Rhythmer's + order; `smk_map.h` smk_kb_key). + +**SUSTAIN pedal**: a key let go while it is down keeps sounding until the pedal is up, or the key is struck again; it +is also CC64 on the selected track (for notes from MIDI) and to MIDI OUT. Either polarity: its reading at power-on is +"up". **Wheels**: as MIDI in on the selected track's channel (its bend range, RPN 0), and to MIDI OUT with the keys; +another track picked: the old one's bend, CC1 and pedal let go. ### Pads (16, velocity) -Pad n is hardware pad n - 1: **1..8 the top row, 9..16 the bottom row**, left to right. What they do depends on the -page (`smk_pads_rule`): +Pad n is hardware pad n - 1: **1..8 the top row, 9..16 the bottom row**, left to right (genkigenki: verified with +`padtest`). KNOB BANK picks what they are: -| where | the pads | +| KNOB BANK | the pads | |---|---| -| a layer (a button held: GLO, SEQ, EDIT, FX, SCL, REC, SAVE ...), NAME, SEQ > STEP on a DRUM track (the grid), STEP FX, the song pages | **the FM-1's 16 white keys** F3..G5, pad n the n-th: the layers' shortcuts (GLO + pad 9 = G4 UNDO, SEQ + pad 16 = G5 CLR STEP, SAVE + pad 12 = C5 NAME ...), NAME's letters, the DRUM grid's steps 1..16 (hold + KNOB 1..4: a lock), STEP FX's components. Black-key functions are not on the pads. | -| the other SEQ pages (STEP, NOTE, PATTERN, EUCLID ... on a melodic track; the non-grid pages on DRUM) | **the 16 steps of the bar shown**: a pad on an empty step writes it (melodic: the keybed's last note at the pad's velocity; DRUM: the lane picked); on a full step it clears it when let go. **Hold a pad + K1..K4**: a parameter lock on that step (as the FM-1's held step; then it is not cleared). The cursor follows the pad. | -| everywhere else | **1..6** select track T1..T6 (an asleep T5 / T6 says so); **PATCH held + 1..6**: that track's **mute** (no HOME tap, no MENU); **7** UNDO (as GLO + G4); **8** TAP tempo (as GLO's TAP); **9..16** page shortcuts: 9 GLO > MIXER, 10 EDIT > FILTER, 11 ENV > ENV, 12 LFO > MOD (the matrix), 13 FX > DLY, 14 FX > REVERB, 15 HOME > SONG > ARRANGE, 16 HOME > GENERATOR (GEN) | -| the MENU, a dialog | nothing (dark) | +| **PLAY** (dark) | **the FM-1's 16 white keys** F3..G5, pad n the n-th: on each page they do what the FM-1's white keys do there (notes, the steps of SEQ's pages, the layers' shortcuts, NAME's letters, the DRUM grid, STEP FX ...), at the velocity they are hit with. | +| **STEPS** (lit) | **the 16 steps of the SEQ page shown** (the cursor's bar; the DRUM grid: the lane picked): a pad on an empty step writes it (melodic: the keys' last note at the pad's velocity; DRUM: the lane); on a full step it clears it when let go. **Hold a pad + KNOB 1..4 (K5..K8)**: a parameter lock on that step (then it is not cleared). In the MENU, a dialog, a layer or NAME the pads do nothing. | -The pads' LEDs show it: white keys as the FM-1's key LEDs (lit, blinking, the grid's glow); steps in the track's -colour (the cursor white, the playhead bright, past LEN dark, the first of each four dim); tracks in their colours -(the selected one bright, a muted one red, an asleep one dark), 7 / 8 dim white, the shortcuts dim blue (the page -shown bright). +Switching while a pad is held waits until every pad is let go (no stray note, no half a step). The pads' LEDs: PLAY +the FM-1 keys' picture (lit white, breathing blinking, the DRUM grid's glow); STEPS the steps in the track's colour, +the cursor white, **the playhead bright**, past LEN dark. -### Knobs, faders, buttons +### Faders -| SMK-37 (printed) | JIANT | -|---|---| -| K1..K4 | KNOB 1..4 (the page's four cards) | -| K5 | SELECT (the page chain) | -| K6 | PRESETS | -| K7 | ALGORITHM (the track) | -| K8 | MASTER (a virtual pot: 24 steps a detent, 724 at power-on) | -| **KNOB BANK** (its LED lit = MACROS) | K1..K8 become 8 fixed macros: **K1..K6 the cutoff of T1..T6** (the engine's own brightness as CC74 finds it, else the FILTER page's CUT), **K7 the delay's MIX**, **K8 the reverb's SIZE**. The screen says the bank, then each value (`T3 CUT 64`). Tap again: the page's knobs (and MASTER) back. | -| F1..F4, **FADER BANK** A (its LED dark) | the **levels of T1..T4** | -| F1..F4, FADER BANK B (its LED lit) | **T5 level, T6 level, the selected track's DLY send, its REV send** | -| faders: pick-up | a fader moves its value only once it meets it (within 2 / 127, or crossing it); until then the screen says `F2 PICK UP: UP` / `DOWN`. A value changed elsewhere (a knob, a load, the other bank) is picked up again. | -| < / > | the page before / after (one SELECT step) | -| FX | FX | -| SCALE | SCL | -| CHORD | ENV | -| NOTE REPEAT | LFO | -| PARA | EDIT | -| GLOBE | GLO | -| PATCH | HOME (and the mute modifier for pads 1..6) | -| BT | SAVE | -| ARP | ARP | -| SEQ | SEQ | -| SEQ PLAY | PLAY | -| SEQ REC | REC | -| OCTAVE- / OCTAVE+ | OCT- / OCT+ (the keybed's octave; back / YES on action pages and dialogs, as on the FM-1) | - -V10.8.48's twelve FM-1 buttons are the same as before (HOME ENV LFO FX SCL EDIT GLO SAVE ARP SEQ PLAY REC), so the -printed-button table is the one the owner already uses; only K5..K8 changed (they were K5 MASTER, K6 SELECT, -K7 ALGORITHM, K8 PRESETS). The panel table's magic is now `PNS6`, so the old calibration is replaced by these defaults -once. +FADER BANK cycles **LEVEL -> PAN -> REVERB -> DELAY** (the reverb and delay sends) and the screen says the bank +(`FADERS PAN T1-T4`). F1..F4 are T1..T4; with T5 or T6 selected, F1 and F2 are T5 and T6 and F3, F4 do nothing. +**Pick-up**: a fader moves its value only once it meets it (within 2 / 127, or crossing it); until then the screen +says `F2 PICK UP: UP` / `DOWN`. A bank change, a change of track window, or the value changed elsewhere (a knob, a +load) arms the pick-up again, so loading a project never jumps to the faders' positions. Other behaviour: - OCTAVE- + OCTAVE+ held at power-on opens HARDWARE CALIBRATION. It asks for each FM-1 function by its printed SMK - name, and for the knobs by K5 (SELECT), K7 (ALGORITHM), K6 (PRESETS) and K1..K4. The table's magic is `PNS6`, so an - FM-1 table (or the previous SMK layout's) is never taken. -- OCTAVE- + OCTAVE+ held for 5 s enters UBOOT, as on the FM-1. -- A key struck again before a full lift sounds again (a release, then the new note at its new velocity). + name, and for the knobs by K2 (SELECT), K3 (ALGORITHM), K4 (PRESETS) and K5..K8. The table's magic is now `PNS7`, + so an older table (V10.8.48's first SMK layout `PNS6`, the FM-1's) is replaced by these defaults once. +- OCTAVE- + OCTAVE+ held for 5 s while running enters UBOOT, as on the FM-1 (a different path from the calibration). - Button LEDs are on or off. What breathes on the FM-1 blinks at about 1 Hz here. The FM-1's dim idle glow has no level on the SMK, so idle buttons are dark, as with MENU > LEDS OFF. MENU > LEDS INV lights the idle buttons, as - on the FM-1. SEQ PLAY shows its green LED while playing. KNOB BANK and FADER BANK light for MACROS and B. + on the FM-1. SEQ PLAY shows its green LED while playing. - The screen texts still name the FM-1's controls (for example HOME, SCL, KNOB 1). -- MENU > CONTROL's AFTERTOUCH and VEL LEARN do nothing on the SMK (they are the FM-1's carbon pills). +- MENU > CONTROL's AFTERTOUCH and VEL LEARN do nothing on the SMK (they are the FM-1's carbon pills); VELOCITY sets + the keys' and pads' curve. + +### TRS MIDI OUT + +The 3.5 mm jack is a MIDI OUT (UART1 TX on PC7, 31250 baud; `firmware/hal/smk_uart_tx.h`, `firmware/src/smk_midi_out.h`, +after Rhythmer's driver; the pin and the register setup are the stock v016's as genkigenki documented them). It follows +**MENU > CONTROL > MIDI OUT** as USB does: KEYS (the keys, chords, the wheels and the pedal), CLOCK (and the clock with +START / STOP on the internal tempo), ALL (and the sequencer's and the arp's notes), OFF (the jack silent). Track n is +channel n. USB MIDI keeps working beside it. SysEx (the editor's, the update's) never goes to the jack. A full queue or +a UART that stops answering sends CC64 0 / CC120 / CC121 / CC123 on every channel rather than leave a note hanging; +after four timeouts in a row the jack stops until MIDI OUT is set again. A change of MIDI OUT lets the jack's held +notes go. Build without it: `FELUCCA_SMK_TRS=0`. *Untested on hardware* (the jack's signal, the adapter's wiring, the +timing). + +## Hardware details from the references + +JIANT's SMK board layer (`firmware/hal/smk_input.h`) is genkigenki's (via Melodee); it was compared with genkigenki's +Felucca `smk37` branch, its porting reference (`docs/01-hardware.md`) and Rhythmer's 0.1.2 source: + +| item | genkigenki's status | JIANT | +|---|---|---| +| key matrix (37 x 2 contacts, k 0 = C3 .. 36 = C6) | verified in use | identical table; the outer keys' codes were right: the old build's silent ends were its routing (it drained them) | +| buttons (18), their printed names | verified | identical | +| encoders K1..K8 order | **verified** | identical (the old note "order to confirm" is gone) | +| pads: top row = hardware pads 0..7 (mux A) | verified (padtest) | identical | +| faders: mux C 0..3 -> F2 F3 F4 F1, full scale 1023 | verified | identical | +| wheels: PITCH mux C 4, rest ~535, travel ~445..640; MOD 5, ~474..629, up = lower | verified | **corrected**: JIANT scaled them on 0..1023 (a full bend needed 1023, so the real travel gave about a sixth of the bend and a quarter of MOD); now a self-calibrating range as genkigenki's and Rhythmer's (`smk_map.h`) | +| pedal: mux C 6, ~985 with nothing plugged | analysis | kept (either polarity from its power-on reading) | +| button LEDs, SEQ REC's at 0x1b | verified for the LEDs driven | identical (the table's 17 / 18 order as confirmed on a unit) | +| TRS MIDI OUT: UART1 TX, PC7, BAUD 383 | analysis | new, as Rhythmer's | ## Flash: RAM-only by default @@ -198,30 +252,29 @@ steps, as they do on the unmodified V10.8.48 tree; the SMK steps pass when run a - `tests/smk_ldr_test.c` checks the SMK update loader on a simulated SMK (and refuses an SMK package with a bt.bin). - `tests/ota_test.c`, SMK build: staging at 0xBB000, the model's record, the board check. - `tests/smk_pkg_test.py` checks the package: identity, size, region table, no bt.bin, and app.bin. -- `tests/smk_map_test.c` checks the control mapping: the buttons and knobs; **all 37 key ids through the HAL's queue and - `smk_kb.c`, at every octave and on every track: a distinct note each, on the selected track, at its velocity, its - release ending it** (also across a track / octave change, a re-strike, the splash); the wheels and the pedal; the - pads' rule, numbers and white keys; the banks' targets; the faders' pick-up. -- A check that every page shortcut of pads 9..16 is a page of its section's chain. +- `tests/smk_map_test.c` checks the control mapping: the printed buttons and K1..K8 ("PNS7"); **all 37 key ids + through the HAL and the key path** (`smk_kb.c` and keyboard_block's loop as seq.c has it): ids 5..31 as the FM-1's + keys, the outer ten through the queue, **at OCT -3..+3 on T1..T6 a key_on each of a note of its own (C3 + id + 12 + OCT, both ends), at its velocity, its release a key_off on the track it started on**; a re-strike (central and + outer), a layer / NAME / the DRUM grid / the splash (the outer keys silent), a DRUM track; the pedal's sustain; the + wheels on genkigenki's measured ranges; the pads PLAY (white keys) / STEPS (the UI's) and KNOB BANK's change waiting + for the pads; FADER BANK's cycle, the T5 / T6 window, the pick-up's context and the pick-up. +- A check that seq.c's key path holds 37 keys on the SMK (`KB_NK`, the outer ten mapped, the 27 from smk_kb_block). - `tests/smk_keys_test.c` is Melodee's keybed test, run on `hal/smk_input.h`. ## Untested on hardware -Everything that touches the SMK. In particular, new in this V10.8.48 port: -- **The outer keys.** The previous build played only F3..G5; the 10 outer keys (C3..E3 = key ids 0..4, G#5..C6 = ids - 32..36) were drained, which is why the owner heard nothing from the first and last keys. They now play. Their matrix - codes are Melodee's stock table (`SMK_KEYC`, from M-VAVE's v016 firmware) and were never heard in JIANT: please - play C3, C#3, D3, D#3, E3 and G#5, A5, A#5, B5, C6 and report any key that is silent or plays the wrong note. -- Which mux C address is the PITCH wheel and which the MOD wheel (the HAL reads addresses 4 and 5; JIANT takes 4 as - PITCH, 5 as MOD), the wheels' ranges and the pitch wheel's centre, the pedal's address (6) and its reading pressed / - released (JIANT takes "far from the power-on reading" as pressed, either polarity; with no pedal plugged it must - read steady). -- The faders' addresses (0..3 -> F2 F3 F4 F1, Melodee's `SMK_FADMUX`) and direction (0 at the bottom assumed). -- The pads' numbering on the unit (JIANT: 1..8 the top row, 9..16 the bottom, as the HAL's mux A / B) and their - colours (WS2812 GRB order, the 250-byte latch). -- KNOB BANK's and FADER BANK's LEDs (LED ids 0 and 1 assumed to be under those buttons, as Melodee's table says). -- The encoders' K1..K8 order (Melodee: "K1..K8 order to confirm"); if K5..K8 come out swapped, HARDWARE CALIBRATION - re-teaches SELECT, ALGORITHM and PRESETS (not MASTER, which is fixed at encoder 7). +Everything that touches the SMK. In particular, new in this layout: +- **The keys through the key path**, the outer ten above all: please play C3, C#3, D3, D#3, E3 and G#5, A5, A#5, B5, + C6 (they are MIDI 48..52 and 80..84 at OCT 0) and report any that is silent or plays the wrong note. Their matrix + codes are genkigenki's verified table; the path from the queue to key_on is host-tested only. +- The pads in PLAY (the FM-1's white keys on every page) and STEPS (steps, locks, the playhead on the LEDs); KNOB + BANK's LED (LED id 0 under it, as genkigenki's table says) and FADER BANK's. +- The fader banks PAN / REVERB / DELAY and the T5 / T6 window; the faders' direction (0 at the bottom assumed). +- The wheels' self-calibration on other units (the ranges are one unit's), the pedal (address 6, either polarity; + with no pedal plugged it must read steady) and its sustain. +- **TRS MIDI OUT**: the jack's signal on PC7, the adapter's wiring (type A in a spec sheet, not measured), the timing, + USB MIDI beside it. - The image without the Bluetooth segment: GEN, the lyrics dictionary and the rest of the segment's code now run from the app image (never on an FM-1 that way). - From before: the SMK SPL booting this app (as the previous build did on the owner's unit), the stock updater @@ -232,10 +285,8 @@ Everything that touches the SMK. In particular, new in this V10.8.48 port: ## Not done yet -- TRS MIDI out on PC7. - The factory velocity curves from USRTRIM (read-only). - A boot-stub rescue (OCTAVE- at power-on). - SMK models in `tools/fm1_install.py`, including refusing cross-model installs. - An SMK mode for the browser emulator (this tree has no `web/emu/devices.html`). -- The keybed through the FM-1 keys' own path (SCL's key maps, CHORD, KEY SPLIT, step entry while stopped on STEP): - the keybed is MIDI in to the firmware, so those stay the FM-1 keys'. +- The outer ten keys in SCENE and in step entry while stopped (the central 27 have both, as the FM-1's keys). diff --git a/firmware/hal/smk_input.h b/firmware/hal/smk_input.h index 2b306770..f4e1179c 100644 --- a/firmware/hal/smk_input.h +++ b/firmware/hal/smk_input.h @@ -1,9 +1,12 @@ /* SPDX-License-Identifier: GPL-3.0-only * Copyright (C) 2026 Leo Kuroshita (@kurogedelic), Hügelton Instruments * SMK-37 port: Copyright (C) 2026 M. Geisler (genkigenki/makkuro) - * (JIANT: Melodee's hal/smk_input.h, BOARD_SMK37 builds only; JIANT's additions and changes are marked "(JIANT)": - * the V10.8 layout sends all 37 keys through the queue, the pads are white keys only where the UI asks, K8 is MASTER. - * Untested on hardware in JIANT: docs/SMK37.md) */ + * (JIANT: Melodee's hal/smk_input.h, BOARD_SMK37 builds only; JIANT's additions and changes are marked "(JIANT)". + * V10.8.48, Rhythmer's layout (Rhythmer by Jazzy Rhythmer, GPL-3.0; its board layer is genkigenki's + * github.com/genkigenki/Felucca smk37, as this one): keys 5..31 are the FM-1's 27 keys (fm1_in.notes), the 10 outer + * keys go through the queue to seq.c's key path too; the pads are the 16 white keys in PLAY, the UI's in STEPS; + * K1 is MASTER (genkigenki's place). Matrix codes, encoder order, pad rows, mux C addresses and the wheels' raw + * ranges: genkigenki's docs/01-hardware.md (verified on an SMK-37 Pro there). docs/SMK37.md) */ /* SMK-37 input HAL: velocity keybed, buttons, encoders, button LEDs, pads, faders, wheels. * The FM-1 counterpart is fm1_input.h + fm1_adc.h; this header keeps their API (fm1_in, fm1_input_init, * fm1_input_tick, fm1_input_scan, fm1_enc_take, fm1_input_edges, fm1_input_note_edges, fm1_led_key) so @@ -90,7 +93,8 @@ static const uint8_t SMK_KEYC[FM1_NKEY][2] = { * 10 GLOBE, 11 BT, 12 PATCH, 13 PARA, 14 FX, 15 SEQ, 16 SEQ PLAY, 17 SEQ REC */ static const uint8_t SMK_BTNC[FM1_NBTN] = {0x26, 0x76, 0x96, 0x56, 0x66, 0x36, 0x75, 0x65, 0x25, 0x45, 0x15, 0x86, 0x95, 0x55, 0x85, 0x35, 0x16, 0x46}; -/* encoder i: A and B matrix codes (stock table; K1..K8 order to confirm) */ +/* encoder i: A and B matrix codes (stock table; encoder i is the printed K(i+1): verified in this order on an SMK-37 + * Pro, genkigenki's docs/01-hardware.md 5.4) */ static const uint8_t SMK_ENCC[FM1_NENC][2] = {{0x97, 0xa7}, {0x37, 0x47}, {0x17, 0x27}, {0xb7, 0xc7}, {0x57, 0x67}, {0x77, 0x87}, {0xd7, 0xe7}, {0xf7, 0x07}}; /* LED i (= button i): group << 4 | bit in the 595 low half (stock table, its order differs at the end). @@ -113,9 +117,9 @@ static const uint8_t SMK_WHITE_NOTE[SMK_NPAD] = {0, 2, 4, 6, 7, 9, 11, 12, 14, 1 * layouts here: KEYS the 16 white keys, low notes on the bottom row; GRID the same as steps 1-8 on the top row and * 9-16 below (the FM-1's grids: patterns, NAME, the layers); PIANO C4 .. C5 whites on top, the black keys between * them below (C#4 D#4 - F#4 G#4 A#4 - C#5; SCALE held); NONE every pad the UI's */ -/* (JIANT, V10.8 layout: docs/SMK37.md) only GRID and NONE are used: the keybed plays the notes, the pads are the - * white keys only where the FM-1 gives its keys to the UI (a layer, NAME, the DRUM grid, STEP FX, the song pages: - * firmware/src/smk.c smk_pads_mode); everywhere else every pad is the UI's (steps, tracks, page shortcuts) */ +/* (JIANT, Rhythmer's layout: docs/SMK37.md) only GRID and NONE are used: PLAY (KNOB BANK dark) GRID, pad n the + * FM-1's n-th white key, 1..8 the top row (hardware pads 0..7, mux A: verified with padtest, genkigenki); STEPS (KNOB + * BANK lit) NONE, every pad the UI's: the page's 16 steps (firmware/src/smk.c) */ static const int8_t SMK_PK_GRID[SMK_NPAD] = {0, 2, 4, 6, 7, 9, 11, 12, 14, 16, 18, 19, 21, 23, 24, 26}; static const int8_t SMK_PK_NONE[SMK_NPAD] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}; static const int8_t *volatile smk_pad_key = SMK_PK_NONE; @@ -159,7 +163,7 @@ static volatile struct { uint32_t notes_retrig; /* note keys struck again while down (their bit in notes stays set): seq.c restarts them */ uint64_t keys; /* all 37 keybed keys: bit k = key k (0 = lowest C), set while its note sounds */ uint8_t key_vel[FM1_NKEY]; /* MIDI velocity 1..127 of each key's last press */ - uint8_t pad_vel[27]; /* (JIANT) a pad's velocity, by the white key it pressed (seq.c: kb_velx) */ + uint8_t note_vel[27]; /* (JIANT) note key n's last press's velocity, a key's or a pad's (seq.c: kb_velx) */ uint8_t raw[FM1_NCOL]; /* last frame, rows packed, 1 = closed */ uint8_t cnt[FM1_NBTN]; /* button debounce */ uint8_t ks_stab[FM1_NKEY]; /* the contacts' settled state: 0 open, 1 contact 1, 3 both */ @@ -182,7 +186,8 @@ static volatile struct { uint32_t frames; } fm1_in; -/* key events beyond the FM-1's 27 (keybed keys 0..4 and 32..36): key << 8 | velocity (0 = release) */ +/* key events beyond the FM-1's 27 (keybed keys 0..4 and 32..36): key << 8 | velocity (0 = release); a re-strike + * is a release and a press (JIANT: smk.c smk_kb_block plays them through seq.c's key path) */ #define SMK_EXTQ 32u static volatile uint16_t smk_extq[SMK_EXTQ]; static volatile uint8_t smk_extq_w, smk_extq_r; @@ -361,13 +366,26 @@ static void smk__extq(uint32_t k, uint32_t vel) smk_extq_w = (uint8_t)((w + 1u) % SMK_EXTQ); } -/* (JIANT, V10.8 layout) every one of the 37 keys goes to the queue: the audio block plays it on the selected track - * (firmware/src/smk.c smk_kb_block); none is an FM-1 key any more (fm1_in.notes: the pads alone) */ +/* keys 5..31 (F3..G5) are the FM-1's 27 note keys (bits 0..26 of fm1_in.notes, with the pads as white keys): the + * keys' block (seq.c keyboard_block) and the UI (fm1_input_note_edges) take them as the FM-1's; the 10 outer keys + * (0..4 C3..E3, 32..36 G#5..C6) go to the queue (smk.c smk_kb_block: seq.c's key path, extra notes) */ static void smk__key_event(uint32_t k, uint32_t vel) /* vel 0 = release */ { if (vel) fm1_in.key_vel[k] = (uint8_t)vel; - smk__extq(k, vel); + if (k - SMK_KEY_F3 < 27u) { + uint32_t n = k - SMK_KEY_F3, bit = 1u << n; + if (vel) { + fm1_in.note_vel[n] = (uint8_t)vel; + fm1_in.knotes |= bit; + fm1_in.notes_pressed |= bit; + } else { + fm1_in.knotes &= ~bit; + } + fm1_in.notes = fm1_in.knotes | fm1_in.pnotes; + } else { + smk__extq(k, vel); + } if (vel) fm1_in.keys |= (uint64_t)1u << k; else @@ -380,8 +398,10 @@ static void smk__strike(uint32_t k, uint32_t now, uint32_t again) { uint32_t T = 10u + (now - fm1_in.ks_t1[k]) / (100u * FM1_TICKS_PER_US); /* stock 0.1 ms frames */ uint32_t x = T <= 0x3FEu ? 0x3FFu - T : 1u, v = smk_curve(smk_trim_key[k], x), vel = smk_vel7(v); - if (again) /* struck again while down: end it, then the new note */ - smk__key_event(k, 0); /* (both through the queue) */ + if (again && k - SMK_KEY_F3 < 27u) /* struck again while down: a note key's bit stays set, */ + fm1_in.notes_retrig |= 1u << (k - SMK_KEY_F3); /* seq.c lets it go and strikes it again; */ + else if (again) + smk__key_event(k, 0); /* an outer key: a release and a press in the queue */ smk__key_event(k, vel); smk__log(k | (again ? 0x40u : 0u), vel, T, v); } @@ -546,13 +566,13 @@ static void smk__padq(uint32_t pad, uint32_t vel) /* a pad hit (vel) or rele n = (uint32_t)n0; bit = 1u << n; if (vel) { - fm1_in.pad_vel[n] = (uint8_t)vel; + fm1_in.note_vel[n] = (uint8_t)vel; fm1_in.pnotes |= bit; fm1_in.notes_pressed |= bit; } else { fm1_in.pnotes &= ~bit; } - fm1_in.notes = fm1_in.pnotes; + fm1_in.notes = fm1_in.knotes | fm1_in.pnotes; } static void smk__pad(uint32_t p, uint32_t raw) @@ -758,12 +778,12 @@ static void fm1_led_key(uint32_t id, int on) fm1_led[id] = (uint8_t)(on != 0); } -/* fm1_adc.h stand-ins for main.c: the battery comes from mux C; the FM-1's MASTER pot is knob K5 here, as a +/* fm1_adc.h stand-ins for main.c: the battery comes from mux C; the FM-1's MASTER pot is knob K1 here, as a * virtual pot (0..1023, 24 a detent; starts at 724: master_q12 2048, the level the firmware starts with) */ enum { FM1_ADC_BATT = 3, FM1_ADC_MASTER = 4 }; -#define SMK_ENC_MASTER 7u /* (JIANT, V10.8 layout) K8: K1..K4 the page's knobs, K5 SELECT, K6 PRESETS, K7 ALGORITHM */ +#define SMK_ENC_MASTER 0u /* K1, where the FM-1 has its MASTER pot (top left; Rhythmer's layout: K2 SELECT, + * K3 ALGORITHM, K4 PRESETS, K5..K8 the page's four knobs, panel.c) */ static int32_t smk_master = 724; -static uint8_t smk_kbank; /* (JIANT) KNOB BANK: 1 = K1..K8 the macros (smk.c); K8 is not the MASTER then */ static void fm1_adc_init(void) {} static int32_t fm1_enc_take(uint32_t e); static int32_t fm1_adc_read(uint32_t ch) @@ -771,8 +791,7 @@ static int32_t fm1_adc_read(uint32_t ch) if (ch == FM1_ADC_BATT) return fm1_in.batt ? (int32_t)fm1_in.batt : -1; if (ch == FM1_ADC_MASTER) { - if (!smk_kbank) - smk_master += fm1_enc_take(SMK_ENC_MASTER) * 24; + smk_master += fm1_enc_take(SMK_ENC_MASTER) * 24; smk_master = smk_master < 0 ? 0 : smk_master > 1023 ? 1023 : smk_master; return smk_master; } diff --git a/firmware/hal/smk_uart_tx.h b/firmware/hal/smk_uart_tx.h new file mode 100644 index 00000000..8a5e540d --- /dev/null +++ b/firmware/hal/smk_uart_tx.h @@ -0,0 +1,38 @@ +/* SPDX-License-Identifier: GPL-3.0-only + * SMK-37 TRS MIDI OUT: UART1 TX on PC7, after Rhythmer's hal/smk_uart_tx.h (Jazzy Rhythmer, 2026, GPL-3.0), whose + * register setup follows the stock v016 analysis documented by genkigenki: github.com/genkigenki/fm1-to-smk37 + * docs/01-hardware.md section 9 (status there: analysis, not yet confirmed on a unit). + * (JIANT: BOARD_SMK37 builds only, src/smk_midi_out.h drives it. The registers are hal/fm1_uart.h's, the FM-1's + * verified UART1: CON0 0x12100, BAUD 0x12108 (383: 31250 baud from the 48 MHz UART clock), BUF 0x1210C, the UART + * clock in 0x10010 [11:10], IOMAP_CON3 0x51028.) No RX, no DMA, no interrupt: TIMER5 sends one byte at a time. */ +#pragma once +#include +#include "fm1_gpio.h" +#include "fm1_uart.h" +#define SMK_UT1_BUF (*(volatile uint32_t *)0x1210Cu) +static void smk_uart_tx_restart(void) +{ + FM1_UT1_CON0 = 0x3400u; /* off, pendings cleared */ + FM1_UT1_CON1 = 0; + FM1_UT1_BAUD = 48000000u / 31250u / 4u - 1u; /* 383 */ + __asm__ volatile("csync" ::: "memory"); + FM1_UT1_CON0 = 0x3401u; /* UTEN: TX only */ +} +static void smk_uart_tx_init(void) /* before timer5_start() */ +{ + FM1_UM_CLK_CON1 = (FM1_UM_CLK_CON1 & ~(3u << 10)) | (1u << 10); /* the UART clock: PLL48M */ + FM1_UM_IOMAP3 = (FM1_UM_IOMAP3 & ~(0x80u | (15u << 20))) | (1u << 20); /* UT1 TX onto its output channel */ + FM1_PR(FM1_PC, FM1_PU) |= 1u << 7; /* (stock: PC7 pull-up and pull-down both set) */ + FM1_PR(FM1_PC, FM1_PD) |= 1u << 7; + FM1_PR(FM1_PC, FM1_OUT) &= ~(1u << 7); + FM1_PR(FM1_PC, FM1_DIR) &= ~(1u << 7); /* an output */ + FM1_PR(FM1_PC, FM1_DIE) |= 1u << 7; + smk_uart_tx_restart(); +} +static int smk_uart_tx_done(void) { return (FM1_UT1_CON0 & 0x8000u) != 0u; } /* TPND: the last byte has gone */ +static void smk_uart_tx_byte(uint8_t b) +{ + FM1_UT1_CON0 |= 0x2000u; /* clear TPND */ + SMK_UT1_BUF = b; + __asm__ volatile("csync" ::: "memory"); +} diff --git a/firmware/src/felucca.c b/firmware/src/felucca.c index d1c13989..77f8c5cd 100644 --- a/firmware/src/felucca.c +++ b/firmware/src/felucca.c @@ -54,6 +54,12 @@ #define FELUCCA_BT 1 /* (V10.12) MENU > SYSTEM > BLUETOOTH: bt.c, bt_hw.c, the segment firmware/bt/bt_seg.c */ #endif #endif +#ifndef FELUCCA_SMK_TRS +#define FELUCCA_SMK_TRS BOARD_SMK37 /* (SMK-37) TRS MIDI OUT on the 3.5 mm jack (UART1 TX, PC7: src/smk_midi_out.h) */ +#endif +#if FELUCCA_SMK_TRS && !BOARD_SMK37 +#error "FELUCCA_SMK_TRS is the SMK-37's jack (PC7 is the FM-1's LCD chip select)" +#endif #if BOARD_SMK37 && FELUCCA_BT #error "SMK-37: the Bluetooth segment would land on the SMK's USRFLASH / USR; FELUCCA_BT must be 0" #endif diff --git a/firmware/src/main.c b/firmware/src/main.c index ed21b865..121a1003 100644 --- a/firmware/src/main.c +++ b/firmware/src/main.c @@ -70,6 +70,9 @@ void fm1_timer5_irq(void) #if FELUCCA_UART if (owed & 2u) uart_midi_poll(); +#endif +#if BOARD_SMK37 && FELUCCA_SMK_TRS + smk_mo_poll(); /* (SMK-37) TRS MIDI OUT: a byte when the last has gone */ #endif owed = 0; } @@ -348,6 +351,9 @@ static void fm1_main(void) usb_start(); #if FELUCCA_UART uart_midi_init(); +#endif +#if BOARD_SMK37 && FELUCCA_SMK_TRS + smk_mo_init(); /* (SMK-37) TRS MIDI OUT: UART1 TX on PC7 */ #endif boot_leds(); timer5_start(); diff --git a/firmware/src/midi_control.c b/firmware/src/midi_control.c index f330e9f3..e1987ae7 100644 --- a/firmware/src/midi_control.c +++ b/firmware/src/midi_control.c @@ -102,7 +102,7 @@ static int midi_note_held(const track_t *t, uint32_t note) static int midi_local_held(const track_t *t, uint32_t note) { uint32_t k; - for (k = 0; k < 27u; k++) + for (k = 0; k < KB_NK; k++) if (kb_on[k] && kb_trk[k] == trk_index(t)) { /* (0.6.81: a key's chord, the notes started) */ uint32_t i; for (i = 0; i < kb_on[k]; i++) diff --git a/firmware/src/panel.c b/firmware/src/panel.c index 3ffafd3a..5ade5931 100644 --- a/firmware/src/panel.c +++ b/firmware/src/panel.c @@ -12,13 +12,13 @@ enum { B_FX, B_SCL, B_ENV, B_LFO, B_EDIT, B_GLO, B_HOME, B_SAVE, B_ARP, B_SEQ, B enum { EN_SELECT, EN_ALGO, EN_PRESET, EN_K1, EN_K2, EN_K3, EN_K4, NE }; #if BOARD_SMK37 /* (SMK-37, after Melodee's panel.c) HARDWARE CALIBRATION asks for each FM-1 function by the control that has it by - * default (PANEL_DEFAULT): the printed button names, and (V10.8 layout, docs/SMK37.md) K5 SELECT, K7 ALGORITHM, - * K6 PRESETS, K1..K4 for KNOB 1..4 (K8 is MASTER, hal/smk_input.h) */ + * default (PANEL_DEFAULT): the printed button names, and (Rhythmer's layout, docs/SMK37.md) K2 SELECT, K3 ALGORITHM, + * K4 PRESETS, K5..K8 for KNOB 1..4 (K1 is MASTER, hal/smk_input.h) */ static const char *const B_NAME[NB] = {"FX", "SCALE", "CHORD", "NOTE REPEAT", "PARA", "GLOBE", "PATCH", "BT", "ARP", "SEQ", "SEQ PLAY", "SEQ REC", "OCTAVE-", "OCTAVE+"}; -static const char *const E_NAME[NE] = {"K5", "K7", "K6", "K1", "K2", "K3", "K4"}; -#define PANEL_MAGIC 0x504E5336u /* "PNS6" (SMK-37, the V10.8 layout; "PNS5" was K6 SELECT K7 ALGO K8 PRESETS): - * bump when PANEL_DEFAULT changes */ +static const char *const E_NAME[NE] = {"K2", "K3", "K4", "K5", "K6", "K7", "K8"}; +#define PANEL_MAGIC 0x504E5337u /* "PNS7" (SMK-37, Rhythmer's layout; "PNS6" was K5 SELECT K6 PRESETS K7 ALGO, + * "PNS5" K6 SELECT K7 ALGO K8 PRESETS): bump when PANEL_DEFAULT changes */ #define PANEL_NBTN FM1_NBTN /* the matrix's buttons (18) and encoders (8): hal/smk_input.h */ #define PANEL_NENC FM1_NENC typedef uint32_t ui_btnmask_t; /* a mask of button ids (0..17) */ @@ -45,13 +45,13 @@ panel_t panel __attribute__((section(".noinit"))); /* (SMK-37, Melodee's table; hal/smk_input.h's button ids, confirmed by Melodee on an Elite) the printed SMK label -> * the FM-1 function: FX = FX, SCALE = SCL, CHORD = ENV, NOTE REPEAT = LFO, PARA = EDIT, GLOBE = GLO, PATCH = HOME, * BT = SAVE, ARP and SEQ as printed, SEQ PLAY = PLAY, SEQ REC = REC, OCTAVE- / + = OCT- / OCT+. KNOB BANK, FADER BANK, - * < and > are the SMK's own (smk.c smk_input_frame). Knobs (V10.8 layout): K1..K4 = KNOB 1..4, K5 = SELECT, - * K6 = PRESETS, K7 = ALGORITHM, K8 = MASTER. HARDWARE CALIBRATION (OCTAVE- + OCTAVE+ at power-on) re-teaches all of - * it but MASTER. */ + * < and > are the SMK's own (smk.c smk_input_frame). Knobs (Rhythmer's layout; the encoders' order K1..K8 is + * genkigenki's, verified on a unit): K1 = MASTER, K2 = SELECT, K3 = ALGORITHM, K4 = PRESETS, K5..K8 = KNOB 1..4. + * HARDWARE CALIBRATION (OCTAVE- + OCTAVE+ at power-on) teaches all of it again but MASTER. */ static const panel_t PANEL_DEFAULT = { PANEL_MAGIC, {14, 8, 9, 7, 13, 10, 12, 11, 6, 15, 16, 17, 4, 5}, - {4, 6, 5, 0, 1, 2, 3}, + {1, 2, 3, 4, 5, 6, 7}, {1, 1, 1, 1, 1, 1, 1}, }; #else diff --git a/firmware/src/seq.c b/firmware/src/seq.c index e586094d..de9652ce 100644 --- a/firmware/src/seq.c +++ b/firmware/src/seq.c @@ -42,11 +42,21 @@ static const uint16_t SCALE_MASK[] = { }; #define KB_SILENT 255u +#if BOARD_SMK37 +#include "smk_map.h" /* (SMK-37) the keybed's keys as the key path's (smk_kb_off) */ +#define KB_NK 37u /* (SMK-37) the FM-1's 27 keys and the keybed's outer ten (smk_kb.c, smk_map.h) */ +#define KB_BIT(k) ((uint64_t)1u << (k)) +typedef uint64_t kb_bits_t; +#else +#define KB_NK 27u +#define KB_BIT(k) (1u << (k)) +typedef uint32_t kb_bits_t; +#endif static uint32_t kb_prev; static volatile uint8_t kb_boot_hold; /* #137: set from power-on to the end of the splash (main.c): the keys sound nothing, * and one held across its end stays silent until it is let go and pressed again */ -static uint8_t kb_note[27], kb_trk[27]; /* per key: the note it started and on which track */ -static int8_t kb_oct[27]; /* (0.8.5) .. on a DRUM track, the kit's octave it plays (OCT then: seq.c dxo_on) */ +static uint8_t kb_note[KB_NK], kb_trk[KB_NK]; /* per key: the note it started and on which track */ +static int8_t kb_oct[KB_NK]; /* (0.8.5) .. on a DRUM track, the kit's octave it plays (OCT then: seq.c dxo_on) */ static volatile uint8_t kb_asleep; /* MENU > SCREEN OFF (ui.c): the screen dark or waking, a key pressed now only * wakes it (silent, no layer, its release nothing) */ static uint8_t last_note = 60; @@ -134,7 +144,8 @@ static uint32_t mo_key(const track_t *t) /* a key's note goes out: not with OF * its channel and its note-off not yet. A note let go ends there if it went out, whatever MIDI OUT or the ARP are by * then (they were asked again at the key-up: a note-on out with no note-off); kb_lt bit k: key k's press latched (LATCH * then: a HOLD turned on under a key latched nothing, its key-up left the voice sounding for good) */ -static uint32_t mo_ks[NTRK][4] __attribute__((section(".pool"))), kb_lt __attribute__((section(".pool"))); +static uint32_t mo_ks[NTRK][4] __attribute__((section(".pool"))); +static kb_bits_t kb_lt __attribute__((section(".pool"))); static void mo_kon(uint32_t i, uint32_t x, uint32_t vel) /* key note x of track i out (note-on) */ { mo_ks[i % NTRK][(x >> 5) & 3u] |= 1u << (x & 31u); @@ -251,7 +262,7 @@ static __attribute__((noinline)) void mo_block(uint32_t n) /* events_block: th * track routing one takes it off the pitch (OCT+: no bend, nor its pitch bend out; OCT-: no pitch vibrato, CC1 still) */ #include "vel_kb.h" /* (V10.6z6) the keys' velocity and pressure */ _Static_assert(VK_NTRK == NTRK, "vel_kb.h VK_NTRK: the tracks"); -static uint8_t kb_on[27]; /* (below: how many of a key's notes sound) */ +static uint8_t kb_on[KB_NK]; /* (below: how many of a key's notes sound) */ static volatile uint8_t kx_g[2] KX_BSS; /* the keys' gates: tracks (bit i) with OCT- (vibrato), OCT+ (bend) held */ /* (kx_semi, kx_amt, kx_ph: mod.c, the sources OCT+ / OCT- read them) */ static uint8_t kx_mo[NTRK][2] KX_BSS; /* MIDI OUT's last CC1, bend MSB - 64 */ @@ -355,9 +366,19 @@ static uint32_t kb_map(const track_t *t, uint32_t k) static const int8_t DEGREE[12] = {0, -1, 1, -1, 2, 3, -1, 4, -1, 5, -1, 6}; const engine_t *e = ENGINES[eng_idx(t->eng_req)]; /* (the engine it switches to) */ int32_t n; +#if BOARD_SMK37 + if (k >= 27u) { /* (SMK-37) an outer key (smk_map.h): a DRUM track's lanes, */ + if (drum_track(t)) /* else its note, C3..E3 / G#5..C6 at OCT 0 */ + return DRUM_LANE_NOTE[(k - 27u) % NLANE]; + n = 53 + smk_kb_off(k); + } else { +#endif if (e->keys && (n = e->keys(t, k)) >= 0) /* the engine's own key map (DRUM's GM map, slices) */ return (uint32_t)n; n = 53 + (int32_t)k; +#if BOARD_SMK37 + } +#endif if (t->p[P_QUANT] == QN_SNAP || t->p[P_QUANT] == QN_SEQ) /* SNAP (and SEQ): every key, rounded down */ return (uint32_t)clamp(scale_snap(t, n + 12 * song.octave), 0, 127); /* (0.6.81: TRANS as it sounds, voice.c) */ if (t->p[P_QUANT] == QN_WHITE) { /* WHITE: white keys walk the scale, black keys are silent */ @@ -389,8 +410,8 @@ static uint32_t kb_map(const track_t *t, uint32_t k) /* the notes key k plays (kb_sn: how many, its chord; kb_on: how many of them started, the rest strummed in later) */ #define KB_CH 4u -static uint8_t kb_snd[27][KB_CH], kb_sn[27], kb_on[27]; -static uint16_t kb_sdue[27]; /* (0.6.81) samples to the strum's next note */ +static uint8_t kb_snd[KB_NK][KB_CH], kb_sn[KB_NK], kb_on[KB_NK]; +static uint16_t kb_sdue[KB_NK]; /* (0.6.81) samples to the strum's next note */ /* (V10.6z6) key velocity (vel_kb.h KB_VEL: each key's press's, 100 with VELOCITY OFF; its chord, strum, recording and * MIDI OUT use it) */ #define ARP_VEL(t) (vs.arpv[trk_index(t)] ^ 100u) /* (stored ^ 100: 0, as zeroed, 100) */ @@ -1611,10 +1632,14 @@ static void key_next(uint32_t k, track_t *t) static int clay_kb(uint32_t k, track_t *t); /* (clay.c, V10.8.31: DRONE CLAY ON, KEYS ON: the keys its gestures) */ static void key_on(uint32_t k, track_t *t) { +#if BOARD_SMK37 + if (k < 27u && clay_kb(k, t)) /* (SMK-37: DRONE CLAY has the FM-1's 27 keys) */ +#else if (clay_kb(k, t)) +#endif return; uint32_t n = chord_build(t, kb_note[k], kb_snd[k]), gap = n > 1u ? chord_gap(t) : 0u, i; - kb_lt = key_latch(t) ? kb_lt | 1u << k : kb_lt & ~(1u << k); + kb_lt = key_latch(t) ? kb_lt | KB_BIT(k) : kb_lt & ~KB_BIT(k); if (key_latch(t)) { /* LATCH: a new chord lets the last one go */ uint32_t j; if (!t->arp_phys) @@ -1645,7 +1670,7 @@ static void key_on(uint32_t k, track_t *t) static void keys_strum(uint32_t n) { uint32_t k; - for (k = 0; k < 27u; k++) { + for (k = 0; k < KB_NK; k++) { if (kb_on[k] >= kb_sn[k] || !kb_on[k]) continue; if (kb_sdue[k] > n) { @@ -1856,7 +1881,12 @@ static __attribute__((noinline)) void scene_follow(track_t *lt, uint32_t note, u /* (the keys' block is RAM code: SCENE's call goes through a pointer, out of the direct calls' +-4 MiB reach check; * a key event, not every block) */ static void (*volatile scene_fp)(uint32_t, int) = scene_key; -static void (*volatile key_off_fp)(uint32_t, track_t *) = key_off; /* (stuck notes: a key-up's, likewise) */ +#if BOARD_SMK37 +static void smk_key_up(uint32_t k, track_t *t); /* (smk_kb.c: the pedal holds it) */ +static void (*volatile key_off_fp)(uint32_t, track_t *) = smk_key_up; +#else +static void (*volatile key_off_fp)(uint32_t, track_t *) = key_off; +#endif /* (stuck notes: a key-up's, likewise) */ #ifdef FM1_INPUT_LAT /* the press latency stats (hal/fm1_input.h fm1_in_stat, console `inp`): from the first scan that saw @@ -1877,16 +1907,17 @@ static __attribute__((noinline)) void kb_lat(uint32_t k) #endif #if BOARD_SMK37 -static void smk_kb_block(void); /* (smk.c) */ +static uint32_t smk_kb_block(void); /* (smk_kb.c) */ #endif static void keyboard_block(void) { - uint32_t cur = fm1_in.notes & ~vk_hold, ch, k; /* (V10.6z6: a press waiting for its strike, vel_kb.h: not yet) */ - uint32_t lay, fx; #if BOARD_SMK37 - smk_kb_block(); /* (SMK-37, smk.c) the keybed, the wheels and the pedal: MIDI in on the - * selected track; the pads' velocities as the white keys' */ + uint32_t cur = smk_kb_block(), ch, k; /* (SMK-37, smk_kb.c) the 27 keys (a re-strike let go first), their + * velocities; the outer ten, the wheels and the pedal played there */ +#else + uint32_t cur = fm1_in.notes & ~vk_hold, ch, k; /* (V10.6z6: a press waiting for its strike, vel_kb.h: not yet) */ #endif + uint32_t lay, fx; keys_strum(CTL); /* (0.6.81) the chords' strums */ ch = cur ^ kb_prev; /* keys also sound while entering steps */ if (!ch) diff --git a/firmware/src/smk.c b/firmware/src/smk.c index 98f429a3..4dc572ff 100644 --- a/firmware/src/smk.c +++ b/firmware/src/smk.c @@ -1,21 +1,21 @@ /* SPDX-License-Identifier: GPL-3.0-only - * Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant) */ -/* (SMK-37, BOARD_SMK37 builds only: felucca.c includes it after ui_layer.c) The SMK-37's own controls in the V10.8 - * layout the owner approved (docs/SMK37.md "The control mapping"; the pure rules: smk_map.h): - * KEYBED the 37 keys always play the selected track, at their velocity, C3..C6 moved by OCT- / OCT+ (song.octave): - * as MIDI in on the selected track's channel (seq.c midi_event: notes, ARP, recording, DRUM's MIDI map), - * from the audio block (smk_kb_block, seq.c keyboard_block), their notes to MIDI OUT as the FM-1's keys' - * WHEELS PITCH: pitch bend, MOD: CC1 (the matrix's MOD WHEEL), PEDAL: CC64 (the notes held), the selected track's - * PADS smk_map.h smk_pads_rule: the FM-1's white keys where the FM-1's keys are the UI's, the steps on the - * other SEQ pages, else the tracks, UNDO, TAP and eight page shortcuts - * K1..K8 KNOB 1..4, SELECT, PRESETS, ALGORITHM, MASTER (panel.c, hal/smk_input.h); KNOB BANK: the 8 macros - * F1..F4 FADER BANK A / B (smk_map.h SMK_FADER), with pick-up + * Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant) + * The layout is Rhythmer's SMK-37 Pro layout, adapted to V10.8.48: Rhythmer (a GPL-3.0 fork of JIANT for the FM-1) by + * Jazzy Rhythmer (its smk_runtime.c: KNOB BANK's PLAY / STEPS pads, FADER BANK's four banks and track window with + * pick-up); the board layer under it is genkigenki's (github.com/genkigenki/Felucca smk37, the porting reference + * github.com/genkigenki/fm1-to-smk37). */ +/* (SMK-37, BOARD_SMK37 builds only: felucca.c includes it after ui_layer.c) The SMK-37's own controls + * (docs/SMK37.md "The control mapping"; the pure rules: smk_map.h): + * KEYBED all 37 keys through the FM-1's key path (smk_kb.c, seq.c keyboard_block): the central 27 are the FM-1's + * keys, the outer ten extra notes (C3..E3, G#5..C6 at OCT 0), at their velocity + * WHEELS pitch bend and MOD (CC1) of the selected track; PEDAL: sustain (smk_kb.c) + * PADS KNOB BANK: PLAY (the FM-1's 16 white keys) <-> STEPS (the page's 16 steps; KNOB BANK lit) + * K1..K8 MASTER, SELECT, ALGORITHM, PRESETS, KNOB 1..4 (hal/smk_input.h, panel.c) + * F1..F4 FADER BANK: LEVEL -> PAN -> REVERB -> DELAY of T1..T4 (T5 / T6 selected: F1 F2 = T5 T6), with pick-up * < > one SELECT detent each (the page before / after) * Untested on hardware: see docs/SMK37.md. */ #include "smk_map.h" -_Static_assert(SMK_S_HOME == SEC_HOME && SMK_S_EDIT == SEC_EDIT && SMK_S_SEQ == SEC_SEQ && SMK_S_FX == SEC_FX && - SMK_S_GLO == SEC_GLO && SMK_S_ENV == SEC_ENV && SMK_S_LFO == SEC_LFO, "smk_map.h: the sections' order"); -_Static_assert(FM1_NKEY == SMK_KEYS, "smk_map.h: the keybed's 37 keys"); +_Static_assert(FM1_NKEY == SMK_KEYS && SMK_KEY_F3 == SMK_KB_F3 && KB_NK == SMK_KEYS, "smk_map.h: the keybed's 37 keys"); /* --------------------------------------------------------------- velocity --- */ /* MENU > CONTROL > VELOCITY (vel_kb.h VEL_SET: OFF SOFT NORMAL HARD) as the HAL's curve (hal/smk_input.h smk_vel_curve: @@ -31,119 +31,73 @@ static void vel_poll(void) /* ------------------------------------------------------------- the UI side --- */ static struct { - uint8_t mode; /* the pads now (SMK_PM_*) */ - uint8_t fbank; /* FADER BANK: 0 A, 1 B */ + smk_pads_t pads; /* KNOB BANK: PLAY / STEPS (and a change waiting for the pads' release) */ + uint8_t fbank; /* FADER BANK: SMK_FB_* */ + uint8_t fctx; /* the pick-ups' context (bank, track window) + 1: 0 none yet */ uint8_t ptrk; /* STEPS: the track the held pads' steps are on */ uint8_t fval[4]; /* the faders as last read */ uint16_t held; /* STEPS: the pads held (bit n - 1) */ uint16_t used; /* .. held for a lock (a knob turned): no toggle when let go */ uint16_t drop; /* .. whose step had something: cleared when let go, unless used */ - uint8_t note; /* STEPS: a melodic step's note (the keybed's last) */ - uint8_t init; /* the pick-ups reset (the pool is zeroed at boot: last 0 would read as a fader) */ + uint8_t note; /* STEPS: a melodic step's note (the keys' last) */ smk_pick_t pick[4]; } smk __attribute__((section(".pool"))); -static int smk_seq_page(void) { return !ui.home && !ui.menu && cur_page()->fam == FAM_SEQ; } -static uint32_t smk_pads_mode(void) +/* fader f's value: the track's LEVEL, PAN, REVERB or DELAY send; 0..127 over its range */ +static const uint8_t SMK_FB_P[SMK_FB_N] = {P_LEVEL, P_PAN, P_REV, P_DLY}; +static const char *const SMK_FB_NM[SMK_FB_N] = {"LEVEL", "PAN", "REVERB", "DELAY"}; +static uint32_t smk_fv(track_t *t, uint32_t id, int32_t *lo, int32_t *hi) { - return smk_pads_rule(ui.menu || dlg_on(), ui.ly || ui.layer || keys_own() || keys_mode() != 0u, smk_seq_page()); + const param_desc_t *d = track_desc(t, id); + *lo = d->min, *hi = d->max; + return *hi > *lo ? (uint32_t)clamp((t->p[id] - *lo) * 127 / (*hi - *lo), 0, 127) : 0u; } - -/* target t: its value now, 0..127 over its range, and a turn / a fader's value set; *nm its name for the screen */ -static track_t *smk_tgt_trk(smk_tgt_t t) { return &trk[t.trk == SMK_T_SEL ? song.sel % NTRK : t.trk % NTRK]; } -static uint32_t smk_tgt_id(smk_tgt_t t) +static void smk_bank_say(void) { - track_t *k = smk_tgt_trk(t); - uint32_t e; - switch (t.what) { - case SMK_TG_LEVEL: return P_LEVEL; - case SMK_TG_DSEND: return P_DLY; - case SMK_TG_RSEND: return P_REV; - case SMK_TG_DMIX: return G_DMIX; - case SMK_TG_RSIZE: return G_RSIZE; - default: /* CUT: as CC74 (midi_control.c midi_cc_map), else the FILTER page's CUT */ - e = MIDI_CC_ENG[eng_idx(k->eng_req)] >> 4 & 15u; - return e ? P_E0 + e - 1u : P_FCUT; + char b[20]; + str_cpy(b, "FADERS ", sizeof b); + str_cpy(b + 7, SMK_FB_NM[smk.fbank % SMK_FB_N], sizeof b - 7); + ui_say(b, song.sel >= 4u ? " T5 T6" : " T1-T4"); +} +static void smk_faders(void) +{ + uint32_t f, ctx = smk_fader_ctx(smk.fbank, song.sel) + 1u, id = SMK_FB_P[smk.fbank % SMK_FB_N]; + if (ctx != smk.fctx) { /* another bank or track window: picked up again */ + for (f = 0; f < 4u; f++) + smk_pick_reset(&smk.pick[f]); + if (smk.fctx && (smk.fctx - 1u) / 2u == smk.fbank) + smk_bank_say(); /* (the window moved: say so; a bank change says it itself) */ + smk.fctx = (uint8_t)ctx; } -} -static void smk_tgt_range(smk_tgt_t t, int16_t **vp, int32_t *lo, int32_t *hi) -{ - uint32_t id = smk_tgt_id(t); - if (t.trk == SMK_T_G) { - *vp = &song.g[id]; - *lo = GP[id].min, *hi = GP[id].max; - } else { - const param_desc_t *d = track_desc(smk_tgt_trk(t), id); - *vp = &smk_tgt_trk(t)->p[id]; - *lo = d->min, *hi = d->max; - } -} -static uint32_t smk_tgt_get(smk_tgt_t t) -{ - int16_t *vp; - int32_t lo, hi; - smk_tgt_range(t, &vp, &lo, &hi); - return hi > lo ? (uint32_t)clamp((*vp - lo) * 127 / (hi - lo), 0, 127) : 0u; -} -static void smk_tgt_say(smk_tgt_t t, int32_t v) -{ - static const char *const NM[6] = {"LEVEL", "CUT", "DLY SEND", "REV SEND", "DLY MIX", "REV SIZE"}; - char b[24]; - if (t.trk == SMK_T_G) { - b[0] = 0; - } else { - b[0] = 'T', b[1] = (char)('1' + (smk_tgt_trk(t) - trk)), b[2] = ' ', b[3] = 0; - } - str_cpy(b + str_len(b), NM[t.what % 6u], sizeof b - str_len(b)); - str_cpy(b + str_len(b), " ", sizeof b - str_len(b)); - fmt_int(b + str_len(b), v); - ui_message(b); -} -static void smk_tgt_put(smk_tgt_t t, int32_t v) /* v: the value itself */ -{ - int16_t *vp; - int32_t lo, hi; - smk_tgt_range(t, &vp, &lo, &hi); - v = clamp(v, lo, hi); - if (*vp == v) + if (fm1_in.frames < 128u) /* (~0.2 s: the faders' filters settle from 0 first, no false cross) */ return; - *vp = (int16_t)v; - if (t.trk != SMK_T_G) - motion_capture(smk_tgt_trk(t), smk_tgt_id(t), (int16_t)v); /* (recorded as a knob move, armed and playing) */ - smk_tgt_say(t, v); -} -static void smk_macro_turn(uint32_t k, int32_t s) -{ - smk_tgt_t t = SMK_MACRO[k & 7u]; - int16_t *vp; - int32_t lo, hi; - smk_tgt_range(t, &vp, &lo, &hi); - smk_tgt_put(t, *vp + accel(EN_K1 + (k & 3u), s, hi - lo)); -} - -static void smk_page(uint32_t n) /* pad n (9..16): its page */ -{ - const ch_t *c; - uint32_t i = n - SMK_PAD_PAGE0, sec = SMK_PAGES[i % 8u].sec, e; - c = nav_ch(sec); - for (e = 0; e < c->n; e++) { - const char *nm = c->e[e].nm ? c->e[e].nm : c->e[e].t; - if (nm && str_eq(nm, SMK_PAGES[i % 8u].nm) && nv_ok(sec, e)) { - nav_go(sec, e, nav_sec() != sec); - return; + for (f = 0; f < 4u; f++) { + uint32_t v = fm1_in.fader[f], first = smk.pick[f].last == 0xFFu, cur; + int ti = smk_fader_track(f, song.sel); + int32_t lo, hi; + track_t *t; + if (ti < 0 || (v == smk.fval[f] && !first)) + continue; + smk.fval[f] = (uint8_t)v; + t = &trk[ti]; + cur = smk_fv(t, id, &lo, &hi); + if (smk_pickup(&smk.pick[f], v, cur)) { + int32_t x = clamp(lo + ((int32_t)v * (hi - lo) + 63) / 127, lo, hi); + char b[24]; + if (t->p[id] == x) + continue; + t->p[id] = (int16_t)x; + motion_capture(t, id, (int16_t)x); /* (recorded as a knob move, armed and playing) */ + b[0] = 'T', b[1] = (char)('1' + ti), b[2] = ' ', b[3] = 0; + str_cpy(b + 3, SMK_FB_NM[smk.fbank % SMK_FB_N], sizeof b - 3); + str_cpy(b + str_len(b), " ", sizeof b - str_len(b)); + fmt_int(b + str_len(b), x); + ui_message(b); + } else if (!first) { /* (moved, not yet met: which way to go) */ + char m[8] = {'F', (char)('1' + f), ' ', 0}; + ui_say(m, cur > v ? "PICK UP: UP" : "PICK UP: DOWN"); } } - ui_message("NO SUCH PAGE HERE"); -} -static int smk_page_shown(uint32_t n) /* the page of pad n is the one shown */ -{ - uint32_t i = n - SMK_PAD_PAGE0, sec = SMK_PAGES[i % 8u].sec, e; - const ch_t *c; - if (ui.menu || nav_sec() != sec) - return 0; - c = nav_ch(sec); - e = nav_cur(); - return e < c->n && str_eq(c->e[e].nm ? c->e[e].nm : c->e[e].t ? c->e[e].t : "", SMK_PAGES[i % 8u].nm); } /* STEPS: pad n's step on the page shown (the bar of the cursor, ui.bank) */ @@ -209,105 +163,44 @@ static uint64_t smk_steps_held(void) m |= (uint64_t)1 << smk_step_of(n); return m; } - -static void smk_tracks_press(uint32_t n) -{ - char b[16]; - if (n <= NTRK) { - uint32_t i = n - 1u; - if ((fm1_in.buttons >> panel.btn[B_HOME]) & 1u) { /* PATCH (HOME) held: the mute; no HOME tap, no MENU */ - ui.home_t0 |= 2u; - trk[i].p[P_MUTE] = (int16_t)!trk[i].p[P_MUTE]; - b[0] = 'T', b[1] = (char)('1' + i), b[2] = 0; - ui_say(b, trk[i].p[P_MUTE] ? " MUTED" : " ON"); - } else if (i >= trk_live) { - ui_message("T5-T6 ASLEEP: TRACKS 6"); - } else { - track_select(i); - } - } else if (n == SMK_PAD_UNDO) { - undo_ui(); - } else if (n == SMK_PAD_TAP) { - glo_tap(); - if (!song.g[G_CLOCK]) { - str_cpy(b, "TAP ", sizeof b); - fmt_int(b + 4, song.g[G_BPM]); - ui_message(b); - } - } else if (n >= SMK_PAD_PAGE0 && n <= 16u) { - smk_page(n); - } -} +static int smk_steps_off(void) { return ui.menu || dlg_on() || ui.layer || name_on(); } /* STEPS: the pads idle */ /* each UI frame, first (ui_input.c ui_input_frame) */ static void smk_input_frame(uint32_t *pressed) { - uint32_t labels = 0, b, mode, f; + uint32_t labels = 0, b, f, down = 0; int32_t d = (int32_t)((*pressed >> SMK_BTN_RIGHT) & 1u) - (int32_t)((*pressed >> SMK_BTN_LEFT) & 1u), e; for (b = 0; b < NB; b++) labels |= 1u << panel.btn[b]; - if (d && !((labels >> SMK_BTN_LEFT) & 1u) && !((labels >> SMK_BTN_RIGHT) & 1u)) { /* < >: a SELECT detent */ + if (d && !((labels >> SMK_BTN_LEFT) & 1u) && !((labels >> SMK_BTN_RIGHT) & 1u) && !dlg_on()) { /* < >: SELECT */ uint32_t l = fm1__lock(); fm1_in.enc_steps[panel.enc[EN_SELECT]] = (int16_t)(fm1_in.enc_steps[panel.enc[EN_SELECT]] + d * panel.dir[EN_SELECT]); fm1__unlock(l); } if ((*pressed >> SMK_BTN_KNOB_BANK) & 1u && !((labels >> SMK_BTN_KNOB_BANK) & 1u)) { - smk_kbank ^= 1u; - ui_say(smk_kbank ? "KNOBS: MACROS " : "KNOBS: PAGE ", smk_kbank ? "K1-6 CUT K7 DLY K8 REV" : "K5 SEL K8 MASTER"); + smk_pads_toggle(&smk.pads); + ui_say("PADS ", (smk.pads.mode == SMK_PADS_STEPS) == !smk.pads.gate ? "STEPS" : "PLAY"); } if ((*pressed >> SMK_BTN_FADER_BANK) & 1u && !((labels >> SMK_BTN_FADER_BANK) & 1u)) { - smk.fbank ^= 1u; - for (f = 0; f < 4u; f++) - smk_pick_reset(&smk.pick[f]); - ui_say(smk.fbank ? "FADERS B: " : "FADERS A: ", smk.fbank ? "T5 T6 DLY REV" : "T1 T2 T3 T4"); + smk.fbank = (uint8_t)smk_fb_next(smk.fbank); + smk_bank_say(); } *pressed &= labels; - if (!smk.init) { - for (f = 0; f < 4u; f++) - smk_pick_reset(&smk.pick[f]); - smk.init = 1; - } - if (smk_kbank) /* KNOB BANK: K1..K8 the macros, before the panel reads them */ - for (f = 0; f < FM1_NENC; f++) - if ((e = fm1_enc_take(f)) != 0) - smk_macro_turn(f, e); - for (f = 0; f < 4u; f++) { /* the faders, with pick-up */ - uint32_t v = fm1_in.fader[f], first = smk.pick[f].last == 0xFFu; - smk_tgt_t t = SMK_FADER[smk.fbank & 1u][f]; - if (fm1_in.frames < 128u) /* (~0.2 s: the faders' filters settle from 0 first, no false cross) */ - continue; - if (v == smk.fval[f] && !first) - continue; - smk.fval[f] = (uint8_t)v; - if (smk_pickup(&smk.pick[f], v, smk_tgt_get(t))) { - int16_t *vp; - int32_t lo, hi; - smk_tgt_range(t, &vp, &lo, &hi); - smk_tgt_put(t, lo + ((int32_t)v * (hi - lo) + 63) / 127); - } else if (!first) { /* (moved, not yet met: which way to go) */ - char m[8] = {'F', (char)('1' + f), ' ', 0}; - ui_say(m, smk_tgt_get(t) > v ? "PICK UP: UP" : "PICK UP: DOWN"); - } - } - mode = smk_pads_mode(); - if (mode != smk.mode) { /* another kind of page: the pads held let go first */ + smk_faders(); + for (f = 0; f < SMK_NPAD; f++) + down |= fm1_in.pad_st[f]; + if (smk_pads_settle(&smk.pads, down != 0u)) /* (KNOB BANK's change, once no pad is down) */ while (smk.held) smk_step_release((uint32_t)__builtin_ctz(smk.held) + 1u); - smk.mode = (uint8_t)mode; - } - smk_pad_key = mode == SMK_PM_WHITE ? SMK_PK_GRID : SMK_PK_NONE; /* (the HAL takes it at the next hit) */ - while ((e = smk_pad_take()) >= 0) { + smk_pad_key = smk_pads_white(&smk.pads) ? SMK_PK_GRID : SMK_PK_NONE; /* (the HAL takes it at the next hit) */ + while ((e = smk_pad_take()) >= 0) { /* STEPS (a change waiting: releases only) */ uint32_t n = smk_pad_num(((uint32_t)e >> 8) & 15u), vel = (uint32_t)e & 127u; - if (mode == SMK_PM_STEPS) { - if (vel) - smk_step_press(n, vel); - else - smk_step_release(n); - } else if (mode == SMK_PM_TRACKS && vel) { - smk_tracks_press(n); - } + if (!vel) + smk_step_release(n); + else if (smk.pads.mode == SMK_PADS_STEPS && !smk.pads.gate && !smk_steps_off()) + smk_step_press(n, vel); } - if (mode == SMK_PM_STEPS && smk.held && smk.ptrk == song.sel && !smk_kbank) { /* a step held + K1..K4: its lock */ + if (smk.held && smk.ptrk == song.sel) { /* a step held + KNOB 1..4 (K5..K8): its lock */ uint64_t h = smk_steps_held(); for (f = 0; f < 4u; f++) if ((e = panel_enc(EN_K1 + f)) != 0) { @@ -317,7 +210,7 @@ static void smk_input_frame(uint32_t *pressed) ui.hot_t = 40, ui.knob_ms = fm1_ms; } } - { /* the keybed's last note: a new melodic step's */ + { /* the keys' last note: a new melodic step's */ static uint8_t last; if (last_note != last) smk.note = last = last_note; @@ -327,11 +220,11 @@ static void smk_input_frame(uint32_t *pressed) /* ---------------------------------------------------------------- the LEDs --- */ /* The buttons: one on/off LED each (hal/smk_input.h SMK_LEDC; SEQ PLAY's green its own id 16). The FM-1's picture * where the SMK can show it: lit = lit; what breathes on the FM-1 blinks (~1 Hz); no idle glow (as LEDS OFF; LEDS - * INV: the idle ones lit). The 16 RGB pads (lcd.c padled_set) show what they do now: WHITE the FM-1 keys' picture - * (lit white, breathing blinking, the DRUM grid's glow and beats dim); STEPS the page's steps (the track's colour, - * brighter with something on it, the cursor white, the playhead bright, past LEN dark); TRACKS 1..6 the tracks in - * their colours (the selected one bright, a muted one red, an asleep one dark), 7 UNDO and 8 TAP dim white, 9..16 the - * shortcuts dim blue (the page shown bright). Untested on hardware. */ + * INV: the idle ones lit). KNOB BANK lit: the pads are STEPS; FADER BANK lit: a bank other than LEVEL. The 16 RGB pads + * (lcd.c padled_set): PLAY the FM-1 keys' picture (lit white, breathing blinking, the DRUM grid's glow and beats dim); + * STEPS the page's steps (the track's colour, brighter with something on it, the cursor white, the playhead bright, + * past LEN dark); dark while a KNOB BANK change waits or (STEPS) in the MENU, a dialog, a layer, NAME. Untested on + * hardware. */ #define SMK_PAD_LIT 72u /* the pads' levels (0..255 a channel: WS2812s are bright) */ #define SMK_PAD_MID 14u #define SMK_PAD_DIM 3u @@ -340,10 +233,10 @@ static void smk_pad_rgb(uint32_t hw, uint32_t rgb565, uint32_t lvl) /* a colou uint32_t r = (rgb565 >> 11) & 31u, g = (rgb565 >> 5) & 63u, b = rgb565 & 31u; padled_set(hw, (uint8_t)(r * lvl / 31u), (uint8_t)(g * lvl / 63u), (uint8_t)(b * lvl / 31u)); } -static void smk_pads_out(uint32_t mode, uint32_t blink) +static void smk_pads_out(uint32_t blink) { uint32_t p; - if (mode == SMK_PM_WHITE) { + if (smk_pads_white(&smk.pads)) { uint32_t kb, c = key_leds(&kb), g = grid_on() && !ui.layer && !name_on() ? grid_glow() : 0u; uint32_t beat = g ? grid_beats() & ~c : 0u, lit = c, br = blink ? kb : 0u, inv = settings_leds == LEDS_INV; for (p = 0; p < SMK_NPAD; p++) { @@ -353,7 +246,7 @@ static void smk_pads_out(uint32_t mode, uint32_t blink) v = lit & bit ? 0u : v ? v : SMK_PAD_MID; padled_set(p, (uint8_t)v, (uint8_t)v, (uint8_t)v); } - } else if (mode == SMK_PM_STEPS) { + } else if (!smk.pads.gate && !smk_steps_off()) { const track_t *t = TSEL; uint32_t len = (uint32_t)clamp(t->p[P_SLEN], 1, NSTEP), col = trk_col(song.sel); for (p = 0; p < SMK_NPAD; p++) { @@ -372,19 +265,8 @@ static void smk_pads_out(uint32_t mode, uint32_t blink) padled_set(p, (n - 1u) % 4u ? 0u : SMK_PAD_DIM, (n - 1u) % 4u ? 0u : SMK_PAD_DIM, (n - 1u) % 4u ? 0u : SMK_PAD_DIM); } } else { - for (p = 0; p < SMK_NPAD; p++) { - uint32_t n = smk_pad_num(p); - if (mode == SMK_PM_OFF) - padled_set(p, 0, 0, 0); - else if (n <= NTRK) - n - 1u >= trk_live ? padled_set(p, 0, 0, 0) : - trk[n - 1u].p[P_MUTE] ? padled_set(p, SMK_PAD_MID, 0, 0) : - smk_pad_rgb(p, trk_col(n - 1u), n - 1u == song.sel ? SMK_PAD_LIT : SMK_PAD_MID); - else if (n < SMK_PAD_PAGE0) - padled_set(p, SMK_PAD_DIM, SMK_PAD_DIM, SMK_PAD_DIM); - else - padled_set(p, 0, 0, smk_page_shown(n) ? SMK_PAD_LIT : SMK_PAD_DIM * 2u); - } + for (p = 0; p < SMK_NPAD; p++) + padled_set(p, 0, 0, 0); } padled_flush(); /* (only when a colour changed: ~0.8 ms) */ } @@ -420,8 +302,8 @@ static void ui_leds(void) else fm1_led[id] = on[id]; } - fm1_led[SMK_BTN_KNOB_BANK] = smk_kbank; /* (the banks' own: lit = MACROS, B) */ - fm1_led[SMK_BTN_FADER_BANK] = smk.fbank; + fm1_led[SMK_BTN_KNOB_BANK] = smk.pads.gate ? (uint8_t)blink : (uint8_t)(smk.pads.mode == SMK_PADS_STEPS); + fm1_led[SMK_BTN_FADER_BANK] = smk.fbank != SMK_FB_LEVEL; #undef SMK_LED - smk_pads_out(smk.mode, blink); + smk_pads_out(blink); } diff --git a/firmware/src/smk_kb.c b/firmware/src/smk_kb.c index f0ba9d43..4d1a225b 100644 --- a/firmware/src/smk_kb.c +++ b/firmware/src/smk_kb.c @@ -1,94 +1,149 @@ /* SPDX-License-Identifier: GPL-3.0-only - * Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant) */ -/* (SMK-37, BOARD_SMK37 only; included by smk.c) The audio side of the SMK-37's controls: the 37 keys, the PITCH and - * MOD wheels and the sustain pedal, as MIDI in on the selected track's channel, from the audio block (seq.c - * keyboard_block, ahead of the MIDI queue: the same context as every MIDI event, so no lock). Needs from the firmware: - * song (sel, octave), NPART, trk, midi_event, mo_key / mo_kon / mo_koff, kb_velx, kb_boot_hold, clamp, the HAL's - * fm1_in and smk_extkey_take; tests/smk_map_test.c gives it stand-ins and walks every key. */ + * Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant) + * After Rhythmer's SMK-37 Pro port by Jazzy Rhythmer (GPL-3.0: all 37 keys through the original key path, the + * outer ten as extra notes; the wheels' self-calibration, which is genkigenki's, github.com/genkigenki/Felucca smk37). */ +/* (SMK-37, BOARD_SMK37 only; included by smk.c) The audio side of the SMK-37's keybed, wheels and pedal, from the keys' + * block (seq.c keyboard_block calls smk_kb_block first and plays what it returns: the same context as the FM-1's keys): + * KEYS all 37 through seq.c's key path (kb_map, key_on / key_off: SCL's maps, CHORD, STRUM, ARP, LATCH, KEY SPLIT, + * recording, MIDI OUT, at the key's velocity). Ids 5..31 are the FM-1's 27 keys (fm1_in.notes: returned to + * keyboard_block, which does with them all the FM-1 does: the layers' shortcuts, NAME, the DRUM grid, SCENE); + * the outer ten (0..4, 32..36: smk_map.h smk_kb_key, keys 27..36) play extra notes from here (C3..E3 and + * G#5..C6 at OCT 0, moved by OCT), silent where the FM-1's keys are the UI's (a layer, NAME, the DRUM grid) + * PEDAL sustain: a key let go while it is down keeps sounding until it is up (or the key is struck again); also + * CC64 as MIDI in on the selected track (notes from MIDI) and to MIDI OUT with the keys + * WHEELS pitch bend and CC1 (the matrix's MOD WHEEL) as MIDI in on the selected track, and to MIDI OUT with the keys + * Needs from the firmware: song, NTRK, trk, kb_*, key_on, key_off, kb_map, split_*, drum_track, midi_event, mo_key, + * mo_send, kb_mask, fx_lock_on, kb_asleep, kb_boot_hold, clamp, the HAL's fm1_in, fm1__lock and smk_extkey_take; + * tests/smk_map_test.c gives it stand-ins and walks every key. */ #include "smk_map.h" -/* ------------------------------------------------- the audio side (keybed) --- */ -/* each key sounding: its channel + 1 (0: none) and note, so its release ends that note whatever the track or the - * octave are by then; the wheels' and the pedal's rest readings (taken once the scan has settled) and what was sent */ static struct { - uint8_t ch[SMK_KEYS], note[SMK_KEYS]; - uint8_t cal, mod, ped, sel; /* cal: rests taken; mod, ped: sent (CC1, CC64 >= 64); sel: their channel + 1 */ + uint64_t sus; /* keys whose note the pedal holds (let go while it was down) */ + uint16_t out; /* the outer keys sounding (bit k - 27) */ + uint8_t cal, mod, ped, sel; /* cal: rests taken; mod, ped: sent (CC1, CC64 >= 64); sel: their track + 1 */ + uint8_t mo; /* (TRS) MIDI OUT on + 1, as the jack last had it (0: not yet) */ int16_t bend; /* sent, -8192..8191 */ - uint16_t rest[3]; /* the PITCH and MOD wheels' and the pedal's readings at rest */ + uint16_t ped0; /* the pedal's reading at rest */ + smk_wheels_t w; } smk_kb __attribute__((section(".pool"))); -#define SMK_BEND_DZ 24 /* the pitch wheel's dead zone round its rest (0..1023 counts) */ #define SMK_PED_ON 256 /* the pedal pressed: this far from its rest (either way: either polarity) */ -static void smk_send(uint32_t st, uint32_t ch, uint32_t d1, uint32_t d2) { midi_event(st, ch & 15u, d1 & 127u, d2 & 127u); } -static int32_t smk_bend_of(uint32_t raw) +static void smk_send(uint32_t st, uint32_t ch, uint32_t d1, uint32_t d2, int out) { - int32_t c = smk_kb.rest[0], d = (int32_t)raw - c; - if (d > -SMK_BEND_DZ && d < SMK_BEND_DZ) - return 0; - d += d > 0 ? -SMK_BEND_DZ : SMK_BEND_DZ; - return d > 0 ? clamp(d * 8191 / (1023 - c - SMK_BEND_DZ > 1 ? 1023 - c - SMK_BEND_DZ : 1), 0, 8191) - : clamp(d * 8192 / (c - SMK_BEND_DZ > 1 ? c - SMK_BEND_DZ : 1), -8192, 0); + midi_event(st, ch & 15u, d1 & 127u, d2 & 127u); + if (out && mo_key(&trk[ch % NTRK])) + mo_send(st | (ch & 15u), d1 & 127u, d2 & 127u); } -static __attribute__((noinline)) void smk_kb_block(void) /* (out of the RAM mix: in flash) */ +/* seq.c key_off_fp: a key let go; the pedal down: held until it is up */ +static void smk_key_up(uint32_t k, track_t *t) { - uint32_t ch = song.sel % NPART, k; + if (smk_kb.ped && k < SMK_KEYS) { + smk_kb.sus |= (uint64_t)1u << k; + return; + } + key_off(k, t); +} +static void smk_sus_end(uint32_t k) /* a held key's note ends now (pedal up, the key struck again) */ +{ + if ((smk_kb.sus >> k) & 1u) { + smk_kb.sus &= ~((uint64_t)1u << k); + key_off(k, &trk[kb_trk[k] % NTRK]); + } +} +/* an outer key (k 27..36) down (vel) or up: seq.c keyboard_block's press and release, for a key no layer has */ +static void smk_outer(uint32_t k, uint32_t vel) +{ + uint32_t b = 1u << (k - 27u), high = k >= 32u, n; + track_t *t; + if (smk_kb.out & b) { /* (its note before: a release, or struck again) */ + smk_kb.out &= (uint16_t)~b; + key_off_fp(k, &trk[kb_trk[k] % NTRK]); + } + if (!vel) + return; + smk_sus_end(k); + kb_velx[k] = (uint8_t)(vel ^ 100u); + kb_trk[k] = (uint8_t)song.sel; + if (kb_boot_hold || kb_asleep || song.grid || (fm1_in.buttons & kb_mask) != 0u || fx_lock_on) + return; /* (the splash, SCREEN OFF, NAME / the DRUM grid, a layer: silent) */ + if (split_cfg[0]) + kb_trk[k] = (uint8_t)split_track(high); + t = &trk[kb_trk[k] % NTRK]; + n = kb_map(t, k); + if (n == KB_SILENT) + return; + if (split_cfg[0] && !drum_track(t)) + n = (uint32_t)clamp((int32_t)n + 12 * split_oct(high), 0, 127); + kb_note[k] = (uint8_t)n; + kb_oct[k] = 0; /* (a DRUM track: a lane's own note, kb_map) */ + key_on(k, t); + smk_kb.out |= (uint16_t)b; +} +/* the keys' block's first step: returns the 27 keys' state for keyboard_block */ +static __attribute__((noinline)) uint32_t smk_kb_block(void) /* (out of the RAM mix: in flash) */ +{ + uint32_t ch = song.sel % NTRK, k, cur, rt, fresh; int32_t e; - for (k = 0; k < 27u; k++) /* the pads as white keys: their velocity (seq.c KB_VEL) */ - kb_velx[k] = (uint8_t)(fm1_in.pad_vel[k] ^ 100u); - while ((e = smk_extkey_take()) >= 0) { /* the keybed, every key (hal/smk_input.h smk__key_event) */ - uint32_t key = ((uint32_t)e >> 8) % SMK_KEYS, vel = (uint32_t)e & 127u; - if (smk_kb.ch[key]) { /* (its note before: a release, or struck again) */ - uint32_t c = smk_kb.ch[key] - 1u, n = smk_kb.note[key]; - smk_send(0x80u, c, n, 0); - mo_koff(c, n); - smk_kb.ch[key] = 0; - } - if (vel && !kb_boot_hold) { /* (#137: under the splash, silent) */ - uint32_t n = smk_key_note(key, song.octave); - smk_send(0x90u, ch, n, vel); - if (mo_key(&trk[ch])) - mo_kon(ch, n, vel); - smk_kb.ch[key] = (uint8_t)(ch + 1u); - smk_kb.note[key] = (uint8_t)n; + { + uint32_t l = fm1__lock(); + rt = fm1_in.notes_retrig; /* struck again while down: let go now, struck at the next block */ + fm1_in.notes_retrig = 0; + cur = fm1_in.notes & ~rt; + fm1__unlock(l); + } + fresh = cur & ~kb_prev; + for (k = 0; k < 27u; k++) /* the key's or the pad's velocity (seq.c KB_VEL) */ + if ((fresh >> k) & 1u) { + kb_velx[k] = (uint8_t)(fm1_in.note_vel[k] ^ 100u); + smk_sus_end(k); /* (a held note struck again: the old one ends first) */ } +#if FELUCCA_SMK_TRS + if (smk_kb.mo != (mo_lvl < MO_OFF) + 1u) { /* MIDI OUT's setting: the jack on or off (its held notes let go) */ + smk_kb.mo = (uint8_t)((mo_lvl < MO_OFF) + 1u); + smk_mo_enable(mo_lvl < MO_OFF); + } +#endif + while ((e = smk_extkey_take()) >= 0) { /* the outer ten (hal/smk_input.h smk__key_event) */ + k = smk_kb_key(((uint32_t)e >> 8) & 63u); + if (k >= 27u && k < SMK_KEYS) + smk_outer(k, (uint32_t)e & 127u); } if (!smk_kb.cal) { /* the rests, once the scan has read every analog slot a few times */ if (fm1_in.frames < 64u) - return; - smk_kb.rest[0] = fm1_in.wheel[0]; - smk_kb.rest[1] = fm1_in.wheel[1]; - smk_kb.rest[2] = fm1_in.pedal; + return cur; + smk_kb.ped0 = fm1_in.pedal; smk_kb.cal = 1; smk_kb.sel = (uint8_t)(ch + 1u); } - if (smk_kb.sel != ch + 1u) { /* another track: the old one let go (centre, 0, pedal up) */ + smk_wheels_feed(&smk_kb.w, fm1_in.wheel[0], fm1_in.wheel[1]); + if (smk_kb.sel != ch + 1u) { /* another track: the old one let go (centre, 0) */ uint32_t o = smk_kb.sel - 1u; - if (smk_kb.bend) smk_send(0xE0u, o, 0, 64); - if (smk_kb.mod) smk_send(0xB0u, o, 1, 0); - if (smk_kb.ped) smk_send(0xB0u, o, 64, 0); + if (smk_kb.bend) smk_send(0xE0u, o, 0, 64, 1); + if (smk_kb.mod) smk_send(0xB0u, o, 1, 0, 1); + if (smk_kb.ped) smk_send(0xB0u, o, 64, 0, 1); smk_kb.bend = 0; smk_kb.mod = smk_kb.ped = 0; smk_kb.sel = (uint8_t)(ch + 1u); } { - int32_t b = smk_bend_of(fm1_in.wheel[0]), r = smk_kb.rest[1], w = fm1_in.wheel[1]; - uint32_t m, p; + int32_t b = smk_bend14(&smk_kb.w, fm1_in.wheel[0]); + uint32_t m = smk_mod7(&smk_kb.w, fm1_in.wheel[1]), p; if (b != smk_kb.bend && (b == 0 || b == 8191 || b == -8192 || b - smk_kb.bend > 31 || smk_kb.bend - b > 31)) { uint32_t v = (uint32_t)(b + 8192); - smk_send(0xE0u, ch, v & 127u, v >> 7); + smk_send(0xE0u, ch, v & 127u, v >> 7, 1); smk_kb.bend = (int16_t)b; } - /* MOD: 0 at its rest, 127 at the other end (the end it rests at: either, as read at power-on) */ - m = (uint32_t)clamp((r < 512 ? w - r : r - w) * 127 / (r < 512 ? 1023 - r > 1 ? 1023 - r : 1 : r > 1 ? r : 1), - 0, 127); if (m != smk_kb.mod && (m == 0u || m == 127u || m > smk_kb.mod + 1u || m + 1u < smk_kb.mod)) { - smk_send(0xB0u, ch, 1, m); + smk_send(0xB0u, ch, 1, m, 1); smk_kb.mod = (uint8_t)m; } - p = (uint32_t)((int32_t)fm1_in.pedal - smk_kb.rest[2] > SMK_PED_ON || - (int32_t)smk_kb.rest[2] - fm1_in.pedal > SMK_PED_ON); + p = (uint32_t)((int32_t)fm1_in.pedal - smk_kb.ped0 > SMK_PED_ON || (int32_t)smk_kb.ped0 - fm1_in.pedal > SMK_PED_ON); if (p != smk_kb.ped) { - smk_send(0xB0u, ch, 64, p ? 127u : 0u); + smk_send(0xB0u, ch, 64, p ? 127u : 0u, 1); smk_kb.ped = (uint8_t)p; + if (!p) /* up: what it held ends */ + for (k = 0; k < SMK_KEYS; k++) + smk_sus_end(k); } } + return cur; } diff --git a/firmware/src/smk_map.h b/firmware/src/smk_map.h index f24d9629..86e79034 100644 --- a/firmware/src/smk_map.h +++ b/firmware/src/smk_map.h @@ -1,72 +1,67 @@ /* SPDX-License-Identifier: GPL-3.0-only - * Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant) */ -/* (SMK-37, BOARD_SMK37 only; docs/SMK37.md "The control mapping") The V10.8 layout's pure rules, no HAL and no UI - * state, so tests/smk_map_test.c checks them on the host: the keybed's notes, what the pads are on each kind of page, - * the pads' numbers, the knob and fader banks' targets and the faders' pick-up. firmware/src/smk.c applies them. */ + * Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant) + * The layout is Rhythmer's SMK-37 Pro layout (Rhythmer, a GPL-3.0 fork of JIANT for the FM-1, by Jazzy Rhythmer: + * its smk_controls.h, the outer keys' order and the faders' banks, adapted here). */ +/* (SMK-37, BOARD_SMK37 only; docs/SMK37.md "The control mapping") The layout's pure rules, no HAL and no UI state, so + * tests/smk_map_test.c checks them on the host: the keybed's keys as the key path's, the pads' two modes, the faders' + * banks and track window, the faders' pick-up. firmware/src/smk.c, smk_kb.c and seq.c apply them. */ #pragma once #include /* ------------------------------------------------------------------ the keybed --- */ -/* keybed key k (0 = the lowest C .. 36 = the top C, hal/smk_input.h) at OCT o (song.octave, -3..+3): C3 + k + 12 o, - * the whole window moved (never folded) so that all 37 notes stay in 0..127 and apart whatever the octave */ +/* keybed key id (hal/smk_input.h: 0 = C3 .. 36 = C6) -> its key in seq.c's key path (kb_note[], key_on): ids 5..31 + * (F3..G5) are the FM-1's 27 keys 0..26 (fm1_in.notes); the outer ones follow them: ids 0..4 (C3..E3) keys 27..31, + * ids 32..36 (G#5..C6) keys 32..36 (Rhythmer's order) */ #define SMK_KEYS 37u -#define SMK_KEY_C3 48 -static inline uint32_t smk_key_note(uint32_t k, int32_t oct) +#define SMK_KB_F3 5u +static inline uint32_t smk_kb_key(uint32_t id) { - int32_t b = SMK_KEY_C3 + 12 * oct; - b = b < 0 ? 0 : b > 127 - (int32_t)(SMK_KEYS - 1u) ? 127 - (int32_t)(SMK_KEYS - 1u) : b; - return (uint32_t)b + (k < SMK_KEYS ? k : SMK_KEYS - 1u); + return id - SMK_KB_F3 < 27u ? id - SMK_KB_F3 : id < SMK_KB_F3 ? 27u + id : id < SMK_KEYS ? id : 0xFFu; +} +/* key k of the key path: its semitones from F3 (kb_map: 53 + this, + 12 OCT; -5..31) */ +static inline int32_t smk_kb_off(uint32_t k) +{ + return k < 27u ? (int32_t)k : k < 32u ? (int32_t)k - 32 : (int32_t)k - 5; +} +/* the note keybed key id plays with no scale map (QUANT OFF, no CHORD) at OCT o: C3 + id + 12 o (48..84 at 0) */ +static inline uint32_t smk_key_note(uint32_t id, int32_t oct) +{ + int32_t n = 53 + smk_kb_off(smk_kb_key(id)) + 12 * oct; + return (uint32_t)(n < 0 ? 0 : n > 127 ? 127 : n); } /* -------------------------------------------------------------------- the pads --- */ -/* pad n (1..16) is hardware pad n - 1: the top row 1..8, the bottom row 9..16, left to right (hal/smk_input.h: - * pads 0..7 mux A, the top row; 8..15 mux B, the bottom one) */ +/* pad n (1..16) is hardware pad n - 1: the top row 1..8, the bottom row 9..16, left to right */ static inline uint32_t smk_pad_num(uint32_t hw) { return hw + 1u; } -/* what the pads are now: - * OFF the MENU, a dialog: nothing (their presses dropped, dark) - * WHITE the FM-1's 16 white keys, as GRID (hal/smk_input.h SMK_PK_GRID): wherever the FM-1 gives its keys to the - * UI: a layer's button down or its map up (the layers' shortcuts: GLO + G4 UNDO, SEQ + G5 CLR STEP ...), - * NAME, the DRUM grid (SEQ > STEP on a DRUM track: steps 1..16 of the page, with hold + KNOB locks), STEP - * FX and the song pages (keys_mode) - * STEPS the other SEQ pages: pad n the page's step n (toggle; held + K1..K4 a parameter lock) - * TRACKS everywhere else: 1..6 the track (PATCH held: its mute), 7 UNDO, 8 TAP, 9..16 the page shortcuts */ -enum { SMK_PM_OFF, SMK_PM_WHITE, SMK_PM_STEPS, SMK_PM_TRACKS }; -static inline uint32_t smk_pads_rule(int menu_or_dialog, int fm1_keys_ui, int seq_page) +/* KNOB BANK: PLAY (its LED dark) the pads are the FM-1's 16 white keys (hal/smk_input.h SMK_PK_GRID); STEPS (lit) the + * 16 steps of the page shown (on the DRUM grid the lane picked). A change asked while a pad is down waits for every + * pad to be let go (gate): no stray note, no half a step (Rhythmer's rule). */ +enum { SMK_PADS_PLAY, SMK_PADS_STEPS }; +typedef struct { uint8_t mode, gate; } smk_pads_t; +static inline void smk_pads_toggle(smk_pads_t *p) { p->gate = (uint8_t)!p->gate; } /* (again while waiting: undone) */ +/* each frame: down, a pad is down; returns 1 when the mode changed now */ +static inline int smk_pads_settle(smk_pads_t *p, int down) { - return menu_or_dialog ? SMK_PM_OFF : fm1_keys_ui ? SMK_PM_WHITE : seq_page ? SMK_PM_STEPS : SMK_PM_TRACKS; + if (!p->gate || down) + return 0; + p->gate = 0; + p->mode = (uint8_t)!p->mode; + return 1; } -#define SMK_PAD_UNDO 7u -#define SMK_PAD_TAP 8u -#define SMK_PAD_PAGE0 9u /* pads 9..16: SMK_PAGES[n - 9] */ -/* the page shortcuts: a section (smk.c: ui_lens.c's SEC_*, in this order) and the page's name in its chain */ -enum { SMK_S_HOME, SMK_S_EDIT, SMK_S_SEQ, SMK_S_FX, SMK_S_GLO, SMK_S_ENV, SMK_S_LFO }; -static const struct { uint8_t sec; char nm[12]; } SMK_PAGES[8] = { - {SMK_S_GLO, "MIXER"}, /* 9 GLO > MIXER: the six levels, pans, mutes */ - {SMK_S_EDIT, "FILTER"}, /* 10 EDIT > TONE > FILTER (FM6 and DRUM-X: theirs) */ - {SMK_S_ENV, "ENV"}, /* 11 ENV > ENV */ - {SMK_S_LFO, "MOD"}, /* 12 LFO > MOD: the matrix */ - {SMK_S_FX, "DLY"}, /* 13 FX > DELAY */ - {SMK_S_FX, "REVERB"}, /* 14 FX > REVERB */ - {SMK_S_HOME, "ARRANGE"}, /* 15 HOME > SONG > ARRANGE */ - {SMK_S_HOME, "GENERATOR 1"}, /* 16 HOME > GENERATOR (GEN, as HOME held + SELECT) */ -}; +/* the pads are white keys now (else the UI's: steps, or nothing while the change waits) */ +static inline int smk_pads_white(const smk_pads_t *p) { return p->mode == SMK_PADS_PLAY && !p->gate; } -/* -------------------------------------------------------- the banks' targets --- */ -/* a target: a track's parameter (trk 0..5, or SMK_T_SEL the selected track) or a global (trk SMK_T_G); id SMK_ID_CUT: - * the track's cutoff as CC74 finds it (the engine's own brightness, else the FILTER page's CUT: midi_control.c) */ -#define SMK_T_SEL 6u -#define SMK_T_G 7u -#define SMK_ID_CUT 0xFFu -enum { SMK_TG_LEVEL, SMK_TG_CUT, SMK_TG_DSEND, SMK_TG_RSEND, SMK_TG_DMIX, SMK_TG_RSIZE }; /* (resolved in smk.c) */ -typedef struct { uint8_t trk, what; } smk_tgt_t; -/* KNOB BANK's macros: K1..K6 the cutoff of T1..T6, K7 the delay's MIX, K8 the reverb's SIZE (the master effects) */ -static const smk_tgt_t SMK_MACRO[8] = {{0, SMK_TG_CUT}, {1, SMK_TG_CUT}, {2, SMK_TG_CUT}, {3, SMK_TG_CUT}, - {4, SMK_TG_CUT}, {5, SMK_TG_CUT}, {SMK_T_G, SMK_TG_DMIX}, {SMK_T_G, SMK_TG_RSIZE}}; -/* FADER BANK: A the levels of T1..T4; B T5, T6 and the selected track's delay and reverb sends */ -static const smk_tgt_t SMK_FADER[2][4] = { - {{0, SMK_TG_LEVEL}, {1, SMK_TG_LEVEL}, {2, SMK_TG_LEVEL}, {3, SMK_TG_LEVEL}}, - {{4, SMK_TG_LEVEL}, {5, SMK_TG_LEVEL}, {SMK_T_SEL, SMK_TG_DSEND}, {SMK_T_SEL, SMK_TG_RSEND}}, -}; +/* ---------------------------------------------------------------- the faders --- */ +/* FADER BANK: LEVEL -> PAN -> REVERB -> DELAY (the sends) -> LEVEL; faders 1..4 are T1..T4, or with T5 / T6 selected + * faders 1..2 T5 / T6 (3..4 nothing). The pick-up's context: the bank and the window (a change re-arms it) */ +enum { SMK_FB_LEVEL, SMK_FB_PAN, SMK_FB_REVERB, SMK_FB_DELAY, SMK_FB_N }; +static inline uint32_t smk_fb_next(uint32_t b) { return (b + 1u) % SMK_FB_N; } +static inline int smk_fader_track(uint32_t f, uint32_t sel) /* the track fader f (0..3) moves, -1 none */ +{ + uint32_t t = (sel >= 4u ? 4u : 0u) + f; + return f < 4u && t < 6u ? (int)t : -1; +} +static inline uint32_t smk_fader_ctx(uint32_t bank, uint32_t sel) { return bank * 2u + (sel >= 4u); } /* ------------------------------------------------------------ the pick-up --- */ /* (soft takeover) a fader at f (0..127) moves a value now at v (0..127 on its range) only once it has met it: within @@ -88,3 +83,48 @@ static inline int smk_pickup(smk_pick_t *p, uint32_t f, uint32_t v) p->st = (uint8_t)(0x80u | (f & 0x7Fu)); return ok; } + +/* ---------------------------------------------------------------- the wheels --- */ +/* (genkigenki's docs/01-hardware.md 6.5, verified on an SMK-37 Pro: the travel is short and differs between units: + * PITCH rests ~535 and moves ~445..640, MOD ~474..629 with up = the lower reading) A self-calibrating range, as + * genkigenki's and Rhythmer's: the pitch centre is the reading at rest (its drift followed while resting), each range + * widened to the extremes seen, from a start of +-SMK_W_SPAN0 round the centre (pitch) and SMK_W_MLO..SMK_W_MHI (mod). */ +#define SMK_W_DEAD 12 +#define SMK_W_SPAN0 80 +#define SMK_W_MLO 485 +#define SMK_W_MHI 615 +typedef struct { int16_t pc, plo, phi, mlo, mhi; uint8_t rest, on; } smk_wheels_t; +static inline void smk_wheels_feed(smk_wheels_t *w, int32_t p, int32_t m) /* the raw readings, each audio block */ +{ + if (!w->on) { + w->on = 1; + w->pc = (int16_t)p, w->plo = (int16_t)(p - SMK_W_SPAN0), w->phi = (int16_t)(p + SMK_W_SPAN0); + w->mlo = (int16_t)(m < SMK_W_MLO ? m : SMK_W_MLO), w->mhi = (int16_t)(m > SMK_W_MHI ? m : SMK_W_MHI); + } + if (p < w->plo) w->plo = (int16_t)p; + if (p > w->phi) w->phi = (int16_t)p; + if (m < w->mlo) w->mlo = (int16_t)m; + if (m > w->mhi) w->mhi = (int16_t)m; + if (p - w->pc > -SMK_W_DEAD && p - w->pc < SMK_W_DEAD) { + if (++w->rest > 200u) { /* resting: the centre follows a slow drift */ + w->pc = (int16_t)(w->pc + (p > w->pc) - (p < w->pc)); + w->rest = 0; + } + } else { + w->rest = 0; + } +} +static inline int32_t smk_bend14(const smk_wheels_t *w, int32_t p) /* -8192..8191, 0 inside the dead zone */ +{ + int32_t d = p - w->pc, up = w->phi - w->pc - SMK_W_DEAD, dn = w->pc - w->plo - SMK_W_DEAD, b; + if (d > -SMK_W_DEAD && d < SMK_W_DEAD) + return 0; + b = d > 0 ? (d - SMK_W_DEAD) * 8191 / (up > 1 ? up : 1) : (d + SMK_W_DEAD) * 8192 / (dn > 1 ? dn : 1); + return b < -8192 ? -8192 : b > 8191 ? 8191 : b; +} +static inline uint32_t smk_mod7(const smk_wheels_t *w, int32_t m) /* 0 at rest (the high reading) .. 127 */ +{ + int32_t r = w->mhi - m - SMK_W_DEAD, span = w->mhi - w->mlo - SMK_W_DEAD; + r = r <= 0 ? 0 : r * 127 / (span > 1 ? span : 1); + return (uint32_t)(r > 127 ? 127 : r); +} diff --git a/firmware/src/smk_midi_out.h b/firmware/src/smk_midi_out.h new file mode 100644 index 00000000..71b24e45 --- /dev/null +++ b/firmware/src/smk_midi_out.h @@ -0,0 +1,157 @@ +/* SPDX-License-Identifier: GPL-3.0-only + * Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant) + * After Rhythmer's src/smk_midi_out.h (bounded standalone TRS MIDI output, Jazzy Rhythmer, 2026, GPL-3.0). */ +/* (SMK-37, BOARD_SMK37 && FELUCCA_SMK_TRS only; usb.c includes it) TRS MIDI OUT on the 3.5 mm jack: what MIDI OUT sends + * over USB (usb.c midi_out_event_at: MENU > CONTROL > MIDI OUT KEYS / CLOCK / ALL, track n on channel n), also out of + * the jack. One producer (the audio ISR, midi_out_event_at), one consumer (TIMER5, smk_midi_out_poll: a byte when the + * last has gone, never waiting), so neither USB nor the sound can be held up by it. Whole messages only: channel + * voice messages, song position / select, tune request and the realtime bytes (a realtime byte may go between a + * message's bytes, as MIDI allows); never SysEx (the editor's, the update's). A full queue, or a UART that stops + * answering, drops the queue and sends every channel's CC64 0, CC120, CC121, CC123 instead (no note left hanging); + * after four timeouts in a row the jack stops until MIDI OUT is set again. MIDI OUT OFF: silent (the held notes let + * go). The state is in the pool (zeroed at boot). Untested on hardware: docs/SMK37.md. */ +#pragma once +#include +#include "smk_uart_tx.h" +#define SMK_MQ 64u /* channel messages (USB-MIDI packets) waiting */ +static struct { + uint32_t q[SMK_MQ]; + uint8_t rt[16]; /* realtime bytes waiting */ + volatile uint16_t w, r; + volatile uint8_t rw, rr, panic, reset, muted, fault; + uint8_t b[3], pos, len, busy, wait, fails, pstep, on; + uint32_t sent, dropped; +} smk_mo __attribute__((section(".pool"), aligned(4))); +#define SMK_MO_PUBLISH() __asm__ volatile("" ::: "memory") +static uint32_t smk_mo_len(uint32_t p) /* a USB-MIDI packet's bytes on the wire, 0: not sent */ +{ + uint32_t c = p & 15u, s = (p >> 8) & 255u, a = (p >> 16) & 255u, d = p >> 24; + if (c >= 8u && c <= 14u) { + if ((s >> 4) != c || a > 127u) + return 0; + return c == 12u || c == 13u ? 2u : d <= 127u ? 3u : 0u; + } + if (c == 2u && (s == 0xF1u || s == 0xF3u) && a <= 127u) + return 2; + if (c == 3u && s == 0xF2u && a <= 127u && d <= 127u) + return 3; + if (c == 5u && s == 0xF6u) + return 1; + if (c == 15u && (s == 0xF8u || s == 0xFAu || s == 0xFBu || s == 0xFCu || s == 0xFEu || s == 0xFFu)) + return 1; + return 0; +} +static void smk_mo_init(void) /* main.c, before timer5_start() */ +{ + smk_uart_tx_init(); + smk_mo.on = 1; +} +static void smk_mo_enable(uint32_t on) /* the audio ISR: MIDI OUT's setting changed (smk_kb.c) */ +{ + smk_mo.muted = (uint8_t)!on; + smk_mo.panic = 1; /* (the notes held out there let go either way) */ + SMK_MO_PUBLISH(); + smk_mo.reset = 1; /* (TIMER5 restarts the UART and sends the panic) */ +} +static void smk_mo_packet(uint32_t p) /* the audio ISR (usb.c midi_out_event_at) */ +{ + uint32_t s = (p >> 8) & 255u; + if (!smk_mo.on || !smk_mo_len(p)) + return; + if ((p & 15u) == 15u && s >= 0xF8u) { /* realtime */ + uint8_t w = smk_mo.rw; + if (smk_mo.muted || smk_mo.fault || (uint8_t)(w - smk_mo.rr) >= 16u) { + smk_mo.dropped++; + return; + } + smk_mo.rt[w & 15u] = (uint8_t)s; + SMK_MO_PUBLISH(); + smk_mo.rw = (uint8_t)(w + 1u); + return; + } + if (smk_mo.muted || smk_mo.panic || smk_mo.fault || smk_mo.reset) { + smk_mo.dropped++; + return; + } + { + uint16_t w = smk_mo.w; + if ((uint16_t)(w - smk_mo.r) >= SMK_MQ) { /* full: no message cut, every note let go instead */ + smk_mo.dropped++; + SMK_MO_PUBLISH(); + smk_mo.panic = 1; + return; + } + smk_mo.q[w % SMK_MQ] = p; + SMK_MO_PUBLISH(); + smk_mo.w = (uint16_t)(w + 1u); + } +} +static void smk_mo_poll(void) /* TIMER5 (main.c), outside the render */ +{ + uint8_t byte; + if (!smk_mo.on) + return; + if (smk_mo.reset) { + smk_uart_tx_restart(); + smk_mo.r = smk_mo.w; + smk_mo.rr = smk_mo.rw; + smk_mo.busy = smk_mo.pos = smk_mo.len = smk_mo.wait = 0; + smk_mo.fault = smk_mo.fails = smk_mo.pstep = 0; + smk_mo.reset = 0; + } + if (smk_mo.fault) + return; + if (smk_mo.busy) { + if (!smk_uart_tx_done()) { + if (++smk_mo.wait < 30u) /* (a byte takes 0.32 ms: 30 polls is far more) */ + return; + smk_mo.wait = 0; + if (++smk_mo.fails >= 4u) { + smk_mo.fault = 1; + return; + } + smk_uart_tx_restart(); + smk_mo.busy = smk_mo.pos = smk_mo.len = 0; + smk_mo.panic = 1; + smk_mo.pstep = 0; + } else { + smk_mo.busy = smk_mo.wait = smk_mo.fails = 0; + } + } + if (smk_mo.rr != smk_mo.rw) { /* realtime first */ + byte = smk_mo.rt[smk_mo.rr & 15u]; + smk_mo.rr++; + } else { + if (smk_mo.pos >= smk_mo.len) { + smk_mo.pos = smk_mo.len = 0; + if (smk_mo.panic) { /* CC64 0, CC120, CC121, CC123 on the 16 channels */ + static const uint8_t CC[4] = {64, 120, 121, 123}; + uint32_t at = smk_mo.pstep; + smk_mo.r = smk_mo.w; + if (at >= 64u) { + smk_mo.panic = smk_mo.pstep = 0; + return; + } + smk_mo.pstep++; + smk_mo.b[0] = (uint8_t)(0xB0u + at / 4u); + smk_mo.b[1] = CC[at % 4u]; + smk_mo.b[2] = 0; + smk_mo.len = 3; + } else { + uint32_t p; + if (smk_mo.r == smk_mo.w) + return; + p = smk_mo.q[smk_mo.r % SMK_MQ]; + smk_mo.r++; + smk_mo.len = (uint8_t)smk_mo_len(p); + if (!smk_mo.len) + return; + smk_mo.b[0] = (uint8_t)(p >> 8), smk_mo.b[1] = (uint8_t)(p >> 16), smk_mo.b[2] = (uint8_t)(p >> 24); + } + } + byte = smk_mo.b[smk_mo.pos++]; + } + smk_uart_tx_byte(byte); + smk_mo.busy = 1; + smk_mo.sent++; +} diff --git a/firmware/src/ui_graph.c b/firmware/src/ui_graph.c index f9e437c6..9e63a26a 100644 --- a/firmware/src/ui_graph.c +++ b/firmware/src/ui_graph.c @@ -416,7 +416,7 @@ static uint32_t pr_src(const track_t *t, uint32_t si, uint32_t len) /* the ste static uint32_t pr_held(void) { uint32_t k, m = 0; - for (k = 0; k < 27u; k++) + for (k = 0; k < KB_NK; k++) if (kb_on[k] && kb_trk[k] == song.sel) { uint32_t i; for (i = 0; i < kb_on[k]; i++) { /* (0.6.81: a chord's every note) */ diff --git a/firmware/src/ui_input.c b/firmware/src/ui_input.c index 39928281..c6ddff50 100644 --- a/firmware/src/ui_input.c +++ b/firmware/src/ui_input.c @@ -1862,7 +1862,7 @@ static uint8_t kx_recd KX_BSS; /* the selected track's static __attribute__((noinline)) void oct_key(uint32_t b, uint32_t both) { uint32_t k, m = 0; - for (k = 0; k < 27u; k++) + for (k = 0; k < KB_NK; k++) if (kb_on[k]) m |= 1u << (kb_trk[k] % NTRK); if (kx_semi && m) { diff --git a/firmware/src/usb.c b/firmware/src/usb.c index b36362ab..d379ee4a 100644 --- a/firmware/src/usb.c +++ b/firmware/src/usb.c @@ -287,8 +287,14 @@ struct bt_oq bt_oq; /* (V10.13) MIDI OUT ove #ifndef USB_MIDI_TAP #define USB_MIDI_TAP 0 #endif +#if BOARD_SMK37 && FELUCCA_SMK_TRS && !defined FELUCCA_LOADER +#include "smk_midi_out.h" /* (SMK-37) MIDI OUT out of the TRS jack too */ +#endif static void midi_out_event_at(uint32_t pkt, uint32_t due) /* from the audio ISR; due: fm1_ticks() it goes at, 0 now */ { +#if BOARD_SMK37 && FELUCCA_SMK_TRS && !defined FELUCCA_LOADER + smk_mo_packet(pkt); /* (at once: the jack has no host to time it) */ +#endif if ((usb.config || USB_MIDI_TAP) && mo_w - mo_r < MQ) { midi_out_q[mo_w % MQ] = pkt; midi_out_due[mo_w % MQ] = due; diff --git a/firmware/src/vel_kb.h b/firmware/src/vel_kb.h index ff56a0d3..16b25a67 100644 --- a/firmware/src/vel_kb.h +++ b/firmware/src/vel_kb.h @@ -39,7 +39,11 @@ typedef struct { /* (the bytes first: short offsets) */ uint8_t km[VK_NK]; /* (V10.7.10, vel.c) each key's recent strikes' mean (0: none yet): a press with no * reading of its own plays it */ uint8_t n[VK_NK]; /* (vel.c) strikes learnt since a reset (to 24) */ +#if BOARD_SMK37 + uint8_t velx[37]; /* (SMK-37: the outer ten keys too, seq.c KB_NK) */ +#else uint8_t velx[27]; /* each key's press's velocity ^ 100 (0, as zeroed: 100) */ +#endif uint8_t raw; /* (V10.7.22, seq.c tvel) the latest note's velocity as played (padding before) */ uint32_t hold; /* the keys whose press waits for its strike's window (the scan's ISR, vel.c * vel_note_on): the keys' block (seq.c) sees them pressed once let through */ diff --git a/tests/run_tests.sh b/tests/run_tests.sh index 0ff744de..d6cd5b14 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -477,8 +477,16 @@ smk_driver_guard() { # the RAM driver checks FL_GUA } run "SMK-37 flash driver: fl_erase4k_ram / fl_prog_ram refuse what FL_GUARD refuses" smk_driver_guard $CC -w -DBOARD_SMK37=1 -Ifirmware/hal -o "$OUT/smk_map_test" tests/smk_map_test.c -run "SMK-37 controls (V10.8 layout): the printed buttons, K1-K8, all 37 keys at every octave, pads, banks, wheels, pedal" \ +run "SMK-37 controls (Rhythmer's layout): the printed buttons, K1-K8, all 37 key ids through the key path, pads PLAY / STEPS, fader banks, wheels, pedal" \ "$OUT/smk_map_test" +smk_key_path() { # seq.c's key path holds the 37 keys (KB_NK) and maps the outer ten + grep -q '^#define KB_NK 37u' firmware/src/seq.c && grep -q 'n = 53 + smk_kb_off(k);' firmware/src/seq.c && + grep -q 'uint32_t cur = smk_kb_block(), ch, k;' firmware/src/seq.c && + ! grep -n 'kb_[a-z]*\[27\]' firmware/src/seq.c && grep -q 'for (k = 0; k < KB_NK; k++)' firmware/src/midi_control.c && + grep -q 'uint8_t velx\[37\]' firmware/src/vel_kb.h +} +run "SMK-37 key path: seq.c's key arrays are 37 keys (KB_NK), the outer ten mapped (smk_kb_off), the 27 from smk_kb_block" \ + smk_key_path smk_ram_only() { # RAM-only unless FELUCCA_SMK_FLASH=1: the store's and the OTA's writes refuse grep -q '^#define SMK_MAY_WRITE (FELUCCA_SMK_FLASH && flash_ok)$' firmware/src/storage_hw.c && [ "$(grep -c 'if (!SMK_MAY_WRITE)' firmware/src/storage_hw.c)" = 2 ] && @@ -488,12 +496,6 @@ smk_ram_only() { # RAM-only unless FELUCCA_SMK_ } run "SMK-37 RAM-only by default: every store / OTA erase and write refused unless FELUCCA_SMK_FLASH=1; no Bluetooth segment" \ smk_ram_only -smk_pages() { # the pads' page shortcuts (smk_map.h) are pages of the chains (ui_lens.c) - sed -n '/SMK_PAGES\[8\]/,/^};/p' firmware/src/smk_map.h | grep -o '"[A-Z0-9 ]*"' | while read -r n; do - grep -q "NV($n,\|NV([^,]*, $n," firmware/src/ui_lens.c || { echo "no page $n"; return 1; } - done -} -run "SMK-37 pads 9..16: each page shortcut is a page of its section's chain" smk_pages $CC -w -DBOARD_SMK37=1 -Ifirmware/hal -o "$OUT/smk_keys_test" tests/smk_keys_test.c run "SMK-37 keybed (hal/smk_input.h, Melodee's test): two contacts, bounces, re-strikes, outer keys, pads, curves" \ "$OUT/smk_keys_test" diff --git a/tests/smk_keys_test.c b/tests/smk_keys_test.c index 120b59b5..dbb990a6 100644 --- a/tests/smk_keys_test.c +++ b/tests/smk_keys_test.c @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: GPL-3.0-only * Copyright (C) 2026 Kerem Kilic (Ellic Studio) * (JIANT: Melodee's tests/smk_keys_test.c, unchanged but for this line and, for the V10.8 layout, the pad check - * reading SMK_PK_GRID and pad_vel; it tests hal/smk_input.h, Melodee's too) */ + * reading SMK_PK_GRID and note_vel; it tests hal/smk_input.h, Melodee's too) */ /* Host test of the SMK-37 velocity keybed (hal/smk_input.h smk__keys, smk__pad, smk_curve, smk_trim_load) against * a model of the scan and of the two contacts of a key. The scan is the TIMER5 one (fm1_input_tick): one column * every 100 us, the frame (smk__keys) after column 15; the consumer is seq.c's (keyboard_block: the level of @@ -377,7 +377,7 @@ int main(void) smk__pad(p, 30); /* the baseline settles */ for (j = 0; j < sizeof HIT / sizeof HIT[0]; j++) { smk__pad(p, HIT[j]); - if (((fm1_in.notes >> n) & 1u) && !prev) { on++; v = fm1_in.pad_vel[n]; } + if (((fm1_in.notes >> n) & 1u) && !prev) { on++; v = fm1_in.note_vel[n]; } if (!((fm1_in.notes >> n) & 1u) && prev) off++; prev = (fm1_in.notes >> n) & 1u; } diff --git a/tests/smk_map_test.c b/tests/smk_map_test.c index 130319af..9cc250cc 100644 --- a/tests/smk_map_test.c +++ b/tests/smk_map_test.c @@ -1,17 +1,19 @@ /* SPDX-License-Identifier: GPL-3.0-only * Copyright (C) 2026 Juan Ignacio Antonucci (Juan Jiant) */ -/* Host test of the SMK-37's control mapping, the V10.8 layout (docs/SMK37.md), built with -DBOARD_SMK37=1: - * firmware/src/panel.c's SMK table, hal/smk_input.h's keybed / pad / knob maps, firmware/src/smk_map.h's rules and - * firmware/src/smk_kb.c (the keybed, wheels and pedal as MIDI in) on stand-ins: +/* Host test of the SMK-37's control mapping, Rhythmer's layout on V10.8.48 (docs/SMK37.md), built with -DBOARD_SMK37=1: + * firmware/src/panel.c's SMK table, hal/smk_input.h's keybed and pad routing, firmware/src/smk_map.h's rules and + * firmware/src/smk_kb.c (the keys' block's SMK step, the outer keys, the pedal's sustain, the wheels) on stand-ins of + * seq.c's key path (kb_map / key_on / key_off, keyboard_block's loop over the 27 keys as seq.c has it): * - every FM-1 function's default control is the printed SMK control (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 SELECT, K6 PRESETS, K7 ALGORITHM, K8 MASTER ("PNS6"); - * - EVERY one of the 37 keys (ids 0..36, both ends, black and white) goes through the queue and plays a note of its - * own on the selected track, at its velocity, at every octave -8..+8 (always 0..127, never two keys the same); - * its release ends that note on the channel it started on, whatever the track and the octave are by then; - * - the pads: OFF / WHITE / STEPS / TRACKS by the page, as white keys only in WHITE, numbered 1..16; - * - the knob and fader banks' targets; the faders' pick-up; - * - the wheels: bend centred with a dead zone, both ends reached; MOD from its rest; the pedal either polarity. */ + * OCTAVE-/+ -> OCT-/+); K1 MASTER, K2 SELECT, K3 ALGORITHM, K4 PRESETS, K5..K8 KNOB 1..4 ("PNS7"); + * - EVERY one of the 37 keys (ids 0..36, both ends) through the HAL and the key path: ids 5..31 as the FM-1's keys + * 0..26 (fm1_in.notes), the outer ten through the queue as keys 27..36; each a key_on of a note of its own on the + * selected track at its velocity (MIDI 48..84 at OCT 0, moved by OCT), at OCT -3..+3 on T1..T6; each release a + * key_off of that key on the track it started on; struck again: off then on; a layer / NAME / the splash: the + * outer keys silent; the pedal holds a let-go key until it is up; + * - the wheels on genkigenki's measured ranges; the pads PLAY (white keys) / STEPS (the UI's), the change waiting + * for the pads' release; the fader banks, the track window, the pick-up. */ #include #include #include @@ -20,6 +22,8 @@ #include "../firmware/hal/smk_input.h" #undef __attribute__ #define __attribute__(x) +#define fm1__lock() 0u /* (the HAL's cli / sti: not on the host) */ +#define fm1__unlock(l) ((void)(l)) /* what panel.c needs from the rest of the firmware */ #define NPALETTES 8u #define UI_JIANT_INDEX 0u @@ -27,13 +31,42 @@ static uint8_t fx_lowcut; static uint32_t palette_from_stored(uint32_t v) { return v; } static void palette_set(uint32_t p) { (void)p; } #include "../firmware/src/panel.c" -/* what smk_kb.c needs */ -#define NPART 6 -typedef struct { int16_t p[4]; } track_t; -static track_t trk[NPART]; -static struct { uint8_t sel; int8_t octave; } song; -static uint8_t kb_velx[27], kb_boot_hold, mo_on = 1; +#include "../firmware/src/smk_map.h" +/* what smk_kb.c needs: seq.c's key path, as stand-ins that record */ +#define NTRK 6 +#define KB_NK 37u +#define KB_SILENT 255u +typedef struct { int16_t p[4]; int drum; } track_t; +static track_t trk[NTRK]; +static struct { uint8_t sel, grid; int8_t octave; } song; +static uint8_t kb_velx[KB_NK], kb_note[KB_NK], kb_trk[KB_NK], kb_boot_hold, kb_asleep, fx_lock_on, mo_on = 1; +static int8_t kb_oct[KB_NK]; +static uint8_t split_cfg[1]; +static uint32_t kb_prev, kb_mask = 1u << 10; /* (a layer's button: GLOBE) */ +static uint32_t split_track(uint32_t high) { return high; } +static int32_t split_oct(uint32_t high) { (void)high; return 0; } static int32_t clamp(int32_t v, int32_t lo, int32_t hi) { return v < lo ? lo : v > hi ? hi : v; } +static int drum_track(const track_t *t) { return t->drum; } +static uint32_t kb_map(const track_t *t, uint32_t k) /* seq.c kb_map with QUANT OFF and no engine key map */ +{ + (void)t; + return (uint32_t)clamp((k < 27u ? 53 + (int32_t)k : 53 + smk_kb_off(k)) + 12 * song.octave, 0, 127); +} +typedef struct { uint8_t on, key, trk, note, vel; } kev_t; +static kev_t kev[256]; +static uint32_t nkev; +static void key_on(uint32_t k, track_t *t) +{ + if (nkev < 256u) kev[nkev] = (kev_t){1, (uint8_t)k, (uint8_t)(t - trk), kb_note[k], (uint8_t)(kb_velx[k] ^ 100u)}; + nkev++; +} +static void key_off(uint32_t k, track_t *t) +{ + if (nkev < 256u) kev[nkev] = (kev_t){0, (uint8_t)k, (uint8_t)(t - trk), kb_note[k], 0}; + nkev++; +} +static void smk_key_up(uint32_t k, track_t *t); +static void (*key_off_fp)(uint32_t, track_t *) = smk_key_up; typedef struct { uint8_t st, ch, d1, d2; } ev_t; static ev_t ev[512]; static uint32_t nev, nout; @@ -43,21 +76,47 @@ static void midi_event(uint32_t st, uint32_t ch, uint32_t d1, uint32_t d2) nev++; } static uint32_t mo_key(const track_t *t) { (void)t; return mo_on; } -static void mo_kon(uint32_t i, uint32_t x, uint32_t v) { (void)i; (void)x; (void)v; nout++; } -static void mo_koff(uint32_t i, uint32_t x) { (void)i; (void)x; nout--; } +static void mo_send(uint32_t st, uint32_t d1, uint32_t d2) { (void)st; (void)d1; (void)d2; nout++; } #include "../firmware/src/smk_kb.c" #undef __attribute__ static int bad; static void check(const char *what, int ok) { printf("smk map: %-100s %s\n", what, ok ? "ok" : "FAIL"); bad += !ok; } -/* smk_input.h: button id -> printed name (confirmed on a unit by Melodee) */ +/* smk_input.h: button id -> printed name (confirmed on a unit, genkigenki's 01-hardware.md 5.3) */ static const char *const PRINTED[FM1_NBTN] = {"KNOB BANK", "FADER BANK", "<", ">", "OCTAVE-", "OCTAVE+", "ARP", "NOTE REPEAT", "SCALE", "CHORD", "GLOBE", "BT", "PATCH", "PARA", "FX", "SEQ", "SEQ PLAY", "SEQ REC"}; static const char *const NOTE[12] = {"C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"}; -static void block(void) { fm1_in.frames = 100; smk_kb_block(); } +/* seq.c keyboard_block on the stand-ins: smk_kb_block, then the 27 keys' edges (press: kb_note = kb_map, key_on on + * the selected track; release: key_off_fp on the track it started on), as seq.c does with no layer, grid or SCENE */ +static void block(void) +{ + uint32_t cur, ch, k; + fm1_in.frames = 100; + cur = smk_kb_block(); + ch = cur ^ kb_prev; + for (k = 0; k < 27u; k++) { + if (!((ch >> k) & 1u)) + continue; + if ((cur >> k) & 1u) { + kb_trk[k] = song.sel; + if (kb_boot_hold) { kb_note[k] = KB_SILENT; continue; } + kb_note[k] = (uint8_t)kb_map(&trk[kb_trk[k]], k); + key_on(k, &trk[kb_trk[k]]); + } else if (kb_note[k] != KB_SILENT) { + key_off_fp(k, &trk[kb_trk[k] % NTRK]); + } + } + kb_prev = cur; +} +static void hal_reset(void) +{ + fm1_in.notes = fm1_in.knotes = fm1_in.pnotes = fm1_in.notes_pressed = fm1_in.notes_retrig = 0; + fm1_in.keys = 0; + smk_extq_r = smk_extq_w = 0; +} int main(void) { @@ -69,222 +128,308 @@ int main(void) int32_t o; memset(&panel, 0, sizeof panel); panel_init(); - check("panel_init: a blank table becomes the SMK default (\"PNS6\", the V10.8 layout)", - panel.magic == PANEL_MAGIC && PANEL_MAGIC == 0x504E5336u); + check("panel_init: a blank table becomes the SMK default (\"PNS7\", Rhythmer's layout)", + panel.magic == PANEL_MAGIC && PANEL_MAGIC == 0x504E5337u); for (i = 0; i < sizeof WANT / sizeof WANT[0]; i++) { uint32_t id = panel.btn[WANT[i].label]; ok &= id < FM1_NBTN && !strcmp(PRINTED[id], WANT[i].smk) && !strcmp(B_NAME[WANT[i].label], WANT[i].smk); used |= 1u << id; } - check("the 14 FM-1 functions on their printed SMK buttons; calibration asks by that name", ok && sizeof WANT / sizeof WANT[0] == NB); + check("the 14 FM-1 functions on their printed SMK buttons (PATCH HOME, PARA EDIT, CHORD ENV, NOTE REPEAT LFO, BT SAVE)", + ok && sizeof WANT / sizeof WANT[0] == NB); check("KNOB BANK, FADER BANK, < and > carry no FM-1 function (ids 0..3)", (used & 0xFu) == 0 && panel_btn_of(SMK_BTN_KNOB_BANK) == NB && panel_btn_of(SMK_BTN_LEFT) == NB && panel_btn_of(SMK_BTN_RIGHT) == NB && panel_btn_of(SMK_BTN_FADER_BANK) == NB && panel.btn[B_OCTDN] == FM1_BTN_OCT_DOWN && panel.btn[B_OCTUP] == FM1_BTN_OCT_UP); - check("K1..K4 = KNOB 1..4 (encoders 0..3), K5 SELECT (4), K6 PRESETS (5), K7 ALGORITHM (6), clockwise +", - panel.enc[EN_K1] == 0 && panel.enc[EN_K2] == 1 && panel.enc[EN_K3] == 2 && panel.enc[EN_K4] == 3 && - panel.enc[EN_SELECT] == 4 && panel.enc[EN_PRESET] == 5 && panel.enc[EN_ALGO] == 6 && - !strcmp(E_NAME[EN_SELECT], "K5") && !strcmp(E_NAME[EN_PRESET], "K6") && !strcmp(E_NAME[EN_ALGO], "K7") && - !strcmp(E_NAME[EN_K1], "K1") && panel.dir[0] == 1 && panel.dir[6] == 1); + check("K2 SELECT (encoder 1), K3 ALGORITHM (2), K4 PRESETS (3), K5..K8 KNOB 1..4 (4..7), clockwise +", + panel.enc[EN_SELECT] == 1 && panel.enc[EN_ALGO] == 2 && panel.enc[EN_PRESET] == 3 && panel.enc[EN_K1] == 4 && + panel.enc[EN_K2] == 5 && panel.enc[EN_K3] == 6 && panel.enc[EN_K4] == 7 && !strcmp(E_NAME[EN_SELECT], "K2") && + !strcmp(E_NAME[EN_ALGO], "K3") && !strcmp(E_NAME[EN_PRESET], "K4") && !strcmp(E_NAME[EN_K1], "K5") && + !strcmp(E_NAME[EN_K4], "K8") && panel.dir[0] == 1 && panel.dir[6] == 1); for (i = 0, k = 0; i < NE; i++) k |= panel.enc[i] == SMK_ENC_MASTER; - check("K8 (encoder 7) is no panel role: the MASTER, a virtual pot from 724, 24 a detent", - !k && SMK_ENC_MASTER == 7u && smk_master == 724 && FM1_ADC_MASTER == 4); + check("K1 (encoder 0) is no panel role: the MASTER, a virtual pot from 724, 24 a detent", + !k && SMK_ENC_MASTER == 0u && smk_master == 724 && FM1_ADC_MASTER == 4); panel.btn[B_FX] = 17u; panel.btn[B_REC] = 14u; /* a calibrated table with the high ids */ panel_init(); - check("panel_init keeps a calibrated table with button ids up to 17 and knob 7", panel.btn[B_FX] == 17u && panel.enc[EN_ALGO] == 6u); + check("panel_init keeps a calibrated table with button ids up to 17 and knob 7", panel.btn[B_FX] == 17u && panel.enc[EN_K4] == 7u); panel.btn[B_FX] = 18u; panel_init(); check("... and refuses id 18 (back to the default)", panel.btn[B_FX] == 14u); panel.enc[EN_K1] = 8u; panel_init(); - check("... and knob 8", panel.enc[EN_K1] == 0u); + check("... and knob 8", panel.enc[EN_K1] == 4u); - /* ---- the keybed: all 37 keys, every octave ---- */ + /* ---- the keybed through the HAL: ids 5..31 the FM-1's keys, the outer ten the queue ---- */ for (k = 0, ok = 1; k < FM1_NKEY; k++) { - uint32_t q0 = smk_extq_w; + uint32_t c = k >= 5u && k <= 31u, bit = c ? 1u << (k - 5u) : 0u; int32_t e; + hal_reset(); smk__key_event(k, 90); - ok &= fm1_in.notes == 0u && smk_extq_w != q0; - e = smk_extkey_take(); - ok &= e == (int32_t)(k << 8 | 90u); - smk__key_event(k, 0); - e = smk_extkey_take(); - ok &= e == (int32_t)(k << 8) && smk_extkey_take() < 0 && fm1_in.notes == 0u; - } - check("hal: every key 0..36 (C3..C6, the outer 10 too) through the queue with its velocity, none an FM-1 key", (int)ok); - { - uint32_t range = 1, distinct = 1, step = 1, c3 = 1; - for (o = -8; o <= 8; o++) { - uint8_t seen[128] = {0}; - for (k = 0; k < SMK_KEYS; k++) { - uint32_t n = smk_key_note(k, o); - range &= n <= 127u; - distinct &= !seen[n & 127u]; - seen[n & 127u] = 1; - step &= !k || n == smk_key_note(k - 1u, o) + 1u; - } - if (o >= -3 && o <= 3) - c3 &= smk_key_note(0, o) == (uint32_t)(48 + 12 * o) && smk_key_note(36, o) == (uint32_t)(84 + 12 * o); + if (c) { + ok &= fm1_in.notes == bit && fm1_in.notes_pressed == bit && fm1_in.note_vel[k - 5u] == 90u && smk_extkey_take() < 0; + } else { + e = smk_extkey_take(); + ok &= fm1_in.notes == 0u && e == (int32_t)(k << 8 | 90u); } - check("smk_key_note: at OCT -8..+8 all 37 notes in 0..127, one semitone apart, never two the same", range && distinct && step); - check("... OCT -3..+3 (the FM-1's range): key 0 = C3 + 12 OCT .. key 36 = C6 + 12 OCT, no window moved", - (int)c3 && smk_key_note(0, -4) == 0u && smk_key_note(36, 4) == 127u - 36u + 36u); + ok &= (uint32_t)(fm1_in.keys >> k) == 1u && fm1_in.key_vel[k] == 90u; + smk__key_event(k, 0); + ok &= fm1_in.notes == 0u && fm1_in.keys == 0u; + if (!c) + ok &= smk_extkey_take() == (int32_t)(k << 8) && smk_extkey_take() < 0; } - { /* smk_kb_block: each key down plays its note on the selected track, each release ends it */ - uint32_t good = 1, outs = 1, vels = 1; + check("hal: ids 5..31 (F3..G5) are the FM-1's keys 0..26 (fm1_in.notes, the UI's edges, their velocity); " + "ids 0..4, 32..36 the queue", (int)ok); + { + uint32_t seen = 0, map = 1; + uint64_t all = 0; + for (k = 0; k < SMK_KEYS; k++) { + uint32_t L = smk_kb_key(k); + map &= L < SMK_KEYS && !((all >> L) & 1u) && smk_key_note(k, 0) == 48u + k; + all |= (uint64_t)1u << L; + seen += smk_kb_off(L) == (int32_t)k - 5; + } + check("smk_kb_key: the 37 ids onto keys 0..36 one to one (5..31 -> 0..26, 0..4 -> 27..31, 32..36 -> 32..36); " + "at OCT 0 id k plays MIDI 48 + k", map && seen == SMK_KEYS && all == ((uint64_t)1u << 37) - 1u && + smk_kb_key(0) == 27u && smk_kb_key(4) == 31u && smk_kb_key(5) == 0u && smk_kb_key(31) == 26u && + smk_kb_key(32) == 32u && smk_kb_key(36) == 36u && smk_kb_key(37) == 0xFFu); + } + /* ---- all 37 key ids through the key path, every octave and track ---- */ + { + uint32_t good = 1, vels = 1, offs = 1, ends = 1; + memset(&smk_kb, 0, sizeof smk_kb); + fm1_in.wheel[0] = 535; fm1_in.wheel[1] = 629; fm1_in.pedal = 985; for (o = -3; o <= 3; o++) - for (song.sel = 0; song.sel < NPART; song.sel++) { + for (song.sel = 0; song.sel < NTRK; song.sel++) { uint8_t seen[128] = {0}; song.octave = (int8_t)o; for (k = 0; k < SMK_KEYS; k++) { - uint32_t v = 1u + (k * 7u + (uint32_t)(o + 3)) % 127u; - nev = 0; + uint32_t v = 1u + (k * 7u + (uint32_t)(o + 3)) % 127u, n = smk_key_note(k, o); + nkev = 0; smk__key_event(k, v); block(); - good &= nev >= 1u && ev[0].st == 0x90u && ev[0].ch == song.sel && !seen[ev[0].d1] && - ev[0].d1 == smk_key_note(k, o); - vels &= ev[0].d2 == v; - seen[ev[0].d1] = 1; + good &= nkev == 1u && kev[0].on && kev[0].key == smk_kb_key(k) && kev[0].trk == song.sel && + kev[0].note == n && !seen[n] && n == (uint32_t)(48 + 12 * o + (int32_t)k); + vels &= kev[0].vel == v; + seen[n] = 1; } - outs &= nout == SMK_KEYS; for (k = 0; k < SMK_KEYS; k++) { - nev = 0; + nkev = 0; smk__key_event(k, 0); block(); - good &= nev >= 1u && ev[0].st == 0x80u && ev[0].ch == song.sel && ev[0].d1 == smk_key_note(k, o); + offs &= nkev == 1u && !kev[0].on && kev[0].key == smk_kb_key(k) && kev[0].trk == song.sel && + kev[0].note == smk_key_note(k, o); } - outs &= nout == 0u; + ends &= seen[48 + 12 * o] && seen[84 + 12 * o]; } - check("smk_kb_block: all 37 keys x OCT -3..+3 x T1..T6: a note-on each, on the selected track, 37 different notes", - (int)good); - check("... at the key's own velocity; each release a note-off of that note; MIDI OUT: as many offs as ons", - vels && outs); - printf("smk map: keys 0 / 36 at OCT 0: %s%d / %s%d\n", NOTE[smk_key_note(0, 0) % 12u], (int)smk_key_note(0, 0) / 12 - 1, - NOTE[smk_key_note(36, 0) % 12u], (int)smk_key_note(36, 0) / 12 - 1); + check("key path: all 37 key ids x OCT -3..+3 x T1..T6: a key_on each, on the selected track, 37 notes apart " + "(C3 + id + 12 OCT)", (int)good); + check("... at the key's own velocity; each release a key_off of that key on its track; both ends sound " + "(C3 / C6 at OCT 0)", vels && offs && ends); + printf("smk map: key ids 0 / 4 / 5 / 31 / 32 / 36 at OCT 0: %s%d %s%d %s%d %s%d %s%d %s%d\n", + NOTE[smk_key_note(0, 0) % 12u], (int)smk_key_note(0, 0) / 12 - 1, NOTE[smk_key_note(4, 0) % 12u], + (int)smk_key_note(4, 0) / 12 - 1, NOTE[smk_key_note(5, 0) % 12u], (int)smk_key_note(5, 0) / 12 - 1, + NOTE[smk_key_note(31, 0) % 12u], (int)smk_key_note(31, 0) / 12 - 1, NOTE[smk_key_note(32, 0) % 12u], + (int)smk_key_note(32, 0) / 12 - 1, NOTE[smk_key_note(36, 0) % 12u], (int)smk_key_note(36, 0) / 12 - 1); } - { /* held across a track and an octave change, struck again, under the splash */ + { /* held across a track and an octave change, struck again, layers, the splash */ uint32_t ok2; song.sel = 2; song.octave = 1; - nev = 0; + nkev = 0; smk__key_event(0, 80); + smk__key_event(20, 80); smk__key_event(36, 80); block(); song.sel = 4; song.octave = -2; - nev = 0; + nkev = 0; + smk__key_event(0, 0); + smk__key_event(20, 0); + smk__key_event(36, 0); + block(); + ok2 = nkev == 3u && kev[0].trk == 2u && kev[1].trk == 2u && kev[2].trk == 2u && !kev[0].on && !kev[1].on && + !kev[2].on; + check("keys held while the track and OCT change: each release ends the key on the track it started on (T3)", (int)ok2); + nkev = 0; + smk__key_event(10, 70); /* a central key struck again: the HAL's retrig bit */ + block(); + fm1_in.notes_retrig |= 1u << 5; + smk__key_event(10, 110); + block(); + ok2 = nkev == 2u && kev[0].on && !kev[1].on; + block(); + check("a central key struck again before a full lift (notes_retrig): off at this block, on at the next at the new " + "velocity", ok2 && nkev == 3u && kev[2].on && kev[2].vel == 110u && kev[2].key == 5u); + smk__key_event(10, 0); + block(); + nkev = 0; + smk__key_event(33, 70); + smk__key_event(33, 0); + smk__key_event(33, 110); + block(); + check("an outer key struck again (release + press in the queue): off, then on at the new velocity, in one block", + nkev == 3u && kev[0].on && !kev[1].on && kev[2].on && kev[2].vel == 110u && kev[2].key == 33u); + smk__key_event(33, 0); + block(); + nkev = 0; + fm1_in.buttons = kb_mask; /* a layer's button held */ + smk__key_event(1, 90); + block(); + smk__key_event(1, 0); + block(); + fm1_in.buttons = 0; + song.grid = 1; /* NAME / the DRUM grid */ + smk__key_event(35, 90); + block(); + smk__key_event(35, 0); + block(); + song.grid = 0; + kb_boot_hold = 1; + smk__key_event(5, 90); + smk__key_event(0, 90); + block(); + smk__key_event(5, 0); + smk__key_event(0, 0); + block(); + kb_boot_hold = 0; + check("a layer, NAME / the DRUM grid, the splash: the outer keys silent (their release too); the splash the 27's", + nkev == 0u); + trk[3].drum = 1; + song.sel = 3; + song.octave = 0; + nkev = 0; + smk__key_event(0, 90); + smk__key_event(36, 90); + block(); smk__key_event(0, 0); smk__key_event(36, 0); block(); - ok2 = nev >= 2u && ev[0].st == 0x80u && ev[0].ch == 2u && ev[0].d1 == 60u && ev[1].st == 0x80u && ev[1].ch == 2u && - ev[1].d1 == 96u; - check("a key held while the track and OCT change: its release ends the note it started (T3, C4 / C7)", (int)ok2); - nev = 0; - smk__key_event(10, 70); - smk__key_event(10, 0); - smk__key_event(10, 110); + trk[3].drum = 0; + check("a DRUM track: the outer keys sound too (seq.c kb_map gives each a lane)", nkev == 4u && kev[0].on && kev[1].on); + } + { /* the pedal: sustain */ + uint32_t ok4; + memset(&smk_kb, 0, sizeof smk_kb); + song.sel = 0; + fm1_in.pedal = 985; + block(); /* (the rest taken) */ + fm1_in.pedal = 20; /* pressed (reads low) */ + nkev = nev = 0; + smk__key_event(12, 90); + smk__key_event(2, 90); block(); - check("struck again before a full lift (release + press in the queue): off, then on at the new velocity", - nev >= 3u && ev[0].st == 0x90u && ev[1].st == 0x80u && ev[2].st == 0x90u && ev[2].d2 == 110u); - smk__key_event(10, 0); + smk__key_event(12, 0); + smk__key_event(2, 0); block(); - kb_boot_hold = 1; - nev = 0; - smk__key_event(5, 90); + ok4 = nkev == 2u && kev[0].on && kev[1].on && nev >= 1u && ev[0].st == 0xB0u && ev[0].d1 == 64u && ev[0].d2 == 127u; + smk__key_event(12, 60); /* struck again while held by the pedal: the old note ends first */ block(); - smk__key_event(5, 0); + ok4 &= nkev == 4u && !kev[2].on && kev[2].key == 7u && kev[3].on && kev[3].key == 7u; + smk__key_event(12, 0); block(); - check("under the splash (kb_boot_hold): silent, its release too", nev == 0u); - kb_boot_hold = 0; + ok4 &= nkev == 4u; + fm1_in.pedal = 985; /* up: both let go */ + block(); + check("SUSTAIN: keys let go with the pedal down keep sounding; struck again: off, on; pedal up: they end; CC64 sent", + ok4 && nkev == 6u && !kev[4].on && !kev[5].on && smk_kb.sus == 0u); } - /* ---- the wheels and the pedal ---- */ + /* ---- the wheels (genkigenki's measured ranges: PITCH rest ~535, 445..640; MOD 474..629, up = lower) ---- */ { uint32_t ok3; int32_t lo, hi; memset(&smk_kb, 0, sizeof smk_kb); song.sel = 1; - fm1_in.wheel[0] = 512; fm1_in.wheel[1] = 3; fm1_in.pedal = 1000; + fm1_in.wheel[0] = 535; fm1_in.wheel[1] = 629; fm1_in.pedal = 985; nev = 0; block(); ok3 = nev == 0u && smk_kb.cal; - fm1_in.wheel[0] = 530; + fm1_in.wheel[0] = 543; block(); - ok3 &= nev == 0u; /* (inside the dead zone) */ - fm1_in.wheel[0] = 1023; + ok3 &= nev == 0u; /* (inside the dead zone) */ + fm1_in.wheel[0] = 640; block(); hi = nev ? (int32_t)(ev[nev - 1u].d1 | ev[nev - 1u].d2 << 7) - 8192 : 0; - fm1_in.wheel[0] = 0; + fm1_in.wheel[0] = 445; block(); lo = nev ? (int32_t)(ev[nev - 1u].d1 | ev[nev - 1u].d2 << 7) - 8192 : 0; - fm1_in.wheel[0] = 512; + fm1_in.wheel[0] = 535; block(); - check("PITCH: centred at its rest (a dead zone), the top end +8191, the bottom -8192, back to 0, on T2's channel", - ok3 && hi == 8191 && lo == -8192 && ev[nev - 1u].st == 0xE0u && ev[nev - 1u].ch == 1u && + check("PITCH: centred at its rest (a dead zone), its measured travel 445..640 the full -8192..+8191, back to 0, " + "on T2's channel", ok3 && hi == 8191 && lo == -8192 && ev[nev - 1u].st == 0xE0u && ev[nev - 1u].ch == 1u && ev[nev - 1u].d1 == 0u && ev[nev - 1u].d2 == 64u); nev = 0; - fm1_in.wheel[1] = 1023; + fm1_in.wheel[1] = 474; block(); - check("MOD: CC1 from 0 at its rest to 127 at the other end", nev == 1u && ev[0].st == 0xB0u && ev[0].d1 == 1u && ev[0].d2 == 127u); + ok3 = nev == 1u && ev[0].st == 0xB0u && ev[0].d1 == 1u && ev[0].d2 == 127u; + fm1_in.wheel[1] = 629; + block(); + check("MOD: CC1 0 at its rest (629) to 127 at the top of its travel (474: up = the lower reading)", + ok3 && nev == 2u && ev[1].d2 == 0u); nev = 0; - fm1_in.pedal = 20; /* (a pedal that reads low when pressed) */ + song.sel = 3; /* another track: nothing was off centre, nothing let go */ + fm1_in.wheel[0] = 640; block(); - ok3 = nev == 1u && ev[0].d1 == 64u && ev[0].d2 == 127u; - nev = 0; - song.sel = 3; /* another track: the old one let go */ + check("another track: the wheels go to the new one", nev == 1u && ev[0].ch == 3u && ev[0].st == 0xE0u); + fm1_in.wheel[0] = 535; block(); - check("SUSTAIN: CC64 127 pressed (either polarity, from its rest); another track: T2 let go, T4 gets them", - ok3 && nev >= 4u && ev[0].ch == 1u && ev[0].st == 0xB0u && ev[1].ch == 1u && ev[1].d1 == 64u && ev[1].d2 == 0u && - ev[nev - 1u].ch == 3u && ev[nev - 1u].d1 == 64u && ev[nev - 1u].d2 == 127u); } /* ---- the pads ---- */ - check("the pads' rule: the MENU / a dialog OFF; the FM-1's keys the UI's (layer, NAME, DRUM grid, STEP FX) WHITE; " - "SEQ STEPS; else TRACKS", - smk_pads_rule(1, 1, 1) == SMK_PM_OFF && smk_pads_rule(0, 1, 1) == SMK_PM_WHITE && - smk_pads_rule(0, 1, 0) == SMK_PM_WHITE && smk_pads_rule(0, 0, 1) == SMK_PM_STEPS && - smk_pads_rule(0, 0, 0) == SMK_PM_TRACKS); - check("pad n = hardware pad n - 1 (1..8 the top row, 9..16 the bottom); 7 UNDO, 8 TAP, 9..16 pages", - smk_pad_num(0) == 1u && smk_pad_num(7) == 8u && smk_pad_num(8) == 9u && smk_pad_num(15) == 16u && - SMK_PAD_UNDO == 7u && SMK_PAD_TAP == 8u && SMK_PAD_PAGE0 == 9u && !strcmp(SMK_PAGES[0].nm, "MIXER") && - !strcmp(SMK_PAGES[7].nm, "GENERATOR 1")); { static const uint8_t WHITE[16] = {0, 2, 4, 6, 7, 9, 11, 12, 14, 16, 18, 19, 21, 23, 24, 26}; - uint32_t seen = 0; + smk_pads_t p = {SMK_PADS_PLAY, 0}; + uint32_t seen = 0, m; int32_t e; - for (i = 0; i < SMK_NPAD; i++) { - uint32_t w; - for (w = 0; w < 16u && WHITE[w] != SMK_PK_GRID[i]; w++) {} - if (w < 16u && w == i) seen |= 1u << w; - } - check("WHITE: pad n is the FM-1's n-th white key (F3 G3 .. G5: steps 1..16, the layers' keys)", - seen == 0xFFFFu && smk_pad_key == SMK_PK_NONE); - fm1_in.notes = fm1_in.pnotes = 0; + for (i = 0; i < SMK_NPAD; i++) + if (SMK_PK_GRID[i] == WHITE[i]) seen |= 1u << i; + check("pad n = hardware pad n - 1 (1..8 the top row, mux A; 9..16 the bottom); PLAY: pad n the FM-1's n-th white " + "key (F3 .. G5)", seen == 0xFFFFu && smk_pad_num(0) == 1u && smk_pad_num(15) == 16u); + hal_reset(); smk_pad_key = SMK_PK_GRID; smk__padq(0, 100); smk__padq(15, 77); - ok = fm1_in.notes == (1u << 0 | 1u << 26) && fm1_in.pad_vel[0] == 100u && fm1_in.pad_vel[26] == 77u; + ok = fm1_in.notes == (1u << 0 | 1u << 26) && fm1_in.note_vel[0] == 100u && fm1_in.note_vel[26] == 77u; + smk__key_event(5, 50); /* the keybed's F3 too: one note, two sources */ smk__padq(0, 0); + ok &= fm1_in.notes == (1u << 0 | 1u << 26); + smk__key_event(5, 0); smk__padq(15, 0); ok &= fm1_in.notes == 0u && smk_pad_take() < 0; smk_pad_key = SMK_PK_NONE; smk__padq(3, 64); e = smk_pad_take(); smk__padq(3, 0); - check("... a hit presses its white key at its velocity (pad 1 F3, pad 16 G5); STEPS / TRACKS: the UI's queue", + check("... a hit presses its white key at its velocity (a key of the keybed alongside); STEPS: the UI's queue", ok && e == (3 << 8 | 64) && smk_pad_take() == (3 << 8) && fm1_in.notes == 0u); + ok = smk_pads_white(&p); + smk_pads_toggle(&p); /* KNOB BANK with a pad down: waits */ + ok &= !smk_pads_white(&p) && !smk_pads_settle(&p, 1) && p.mode == SMK_PADS_PLAY && p.gate; + ok &= smk_pads_settle(&p, 0) && p.mode == SMK_PADS_STEPS && !p.gate && !smk_pads_white(&p); + smk_pads_toggle(&p); + ok &= smk_pads_settle(&p, 0) && p.mode == SMK_PADS_PLAY && smk_pads_white(&p); + smk_pads_toggle(&p); + smk_pads_toggle(&p); /* (pressed again while waiting: undone) */ + m = !smk_pads_settle(&p, 0) && p.mode == SMK_PADS_PLAY; + check("KNOB BANK: PLAY <-> STEPS; asked with a pad down, the change waits for the release (pads idle meanwhile)", + ok && m); } - /* ---- the banks ---- */ - ok = 1; - for (i = 0; i < 6u; i++) - ok &= SMK_MACRO[i].trk == i && SMK_MACRO[i].what == SMK_TG_CUT; - check("KNOB BANK: K1..K6 the cutoff of T1..T6, K7 the delay's MIX, K8 the reverb's SIZE", - ok && SMK_MACRO[6].trk == SMK_T_G && SMK_MACRO[6].what == SMK_TG_DMIX && SMK_MACRO[7].what == SMK_TG_RSIZE); - ok = 1; - for (i = 0; i < 4u; i++) - ok &= SMK_FADER[0][i].trk == i && SMK_FADER[0][i].what == SMK_TG_LEVEL; - check("FADER BANK A: the levels of T1..T4; B: T5, T6, the selected track's delay and reverb sends", - ok && SMK_FADER[1][0].trk == 4u && SMK_FADER[1][1].trk == 5u && SMK_FADER[1][1].what == SMK_TG_LEVEL && - SMK_FADER[1][2].trk == SMK_T_SEL && SMK_FADER[1][2].what == SMK_TG_DSEND && SMK_FADER[1][3].what == SMK_TG_RSEND); + /* ---- the faders ---- */ + { + uint32_t b = SMK_FB_LEVEL, cyc = 1, win = 1; + for (i = 0; i < 4u; i++) { + b = smk_fb_next(b); + cyc &= b == (i + 1u) % 4u; + } + for (k = 0; k < 6u; k++) + for (i = 0; i < 4u; i++) + win &= smk_fader_track(i, k) == (k < 4u ? (int)i : i < 2u ? (int)(4u + i) : -1); + check("FADER BANK: LEVEL -> PAN -> REVERB -> DELAY -> LEVEL; F1..F4 T1..T4, T5 / T6 selected: F1 F2 T5 T6, F3 F4 none", + cyc && win && SMK_FB_LEVEL == 0 && SMK_FB_PAN == 1 && SMK_FB_REVERB == 2 && SMK_FB_DELAY == 3); + check("... the pick-up's context changes with the bank and the window (re-armed), not within a window", + smk_fader_ctx(0, 0) == smk_fader_ctx(0, 3) && smk_fader_ctx(0, 3) != smk_fader_ctx(0, 4) && + smk_fader_ctx(0, 4) == smk_fader_ctx(0, 5) && smk_fader_ctx(1, 0) != smk_fader_ctx(0, 0) && + smk_fader_ctx(3, 5) == 7u); + } { smk_pick_t p; uint32_t a, b, c, d, e2, f; @@ -293,12 +438,12 @@ int main(void) b = !smk_pickup(&p, 60, 100); /* still below */ c = smk_pickup(&p, 101, 100); /* crossed it */ d = smk_pickup(&p, 90, 101); /* picked: follows */ - e2 = !smk_pickup(&p, 92, 40); /* the value moved elsewhere (a knob): lost */ + e2 = !smk_pickup(&p, 92, 40); /* the value moved elsewhere (a knob, a load): lost */ f = smk_pickup(&p, 41, 40); /* met again */ check("pick-up: a fader moves its value only once it has met it (or crossed it); lost when the value moves elsewhere", a && b && c && d && e2 && f); smk_pick_reset(&p); - check("... a first reading right at the value takes it, one far from it does not", + check("... a first reading right at the value takes it, one far from it does not (a bank / window change resets)", smk_pickup(&p, 64, 65) && (smk_pick_reset(&p), !smk_pickup(&p, 0, 127))); } printf("%s\n", bad ? "SMK MAP TEST FAILED" : "smk map test passed"); diff --git a/tools/audio_layout_smk37.txt b/tools/audio_layout_smk37.txt index 2ed713f0..605d8351 100644 --- a/tools/audio_layout_smk37.txt +++ b/tools/audio_layout_smk37.txt @@ -18,2154 +18,2152 @@ 0005a6 - fm1__p33_op 0005ee - fm1_wdt_feed 0005f8 - ota_wire_send -0006ce - mir_frame -0007a2 - scr_tap -000914 - scr_rows -000a0e - lcd_data -000a42 - lcd_window -000a98 - lcd_fill -000b44 - lcd_blit -000b96 - scr_out -000d00 - scr_fill -000d2c - fold -000d46 - glyph_at -000d80 - kern -000dce - glyph -000e12 - font_advance -000e2a - text_w -000e70 - cv_begin -000ed2 - ag -000f1c - cv_alpha_hc -0011cc - text_run -0013e2 - text_ink -0013fc - ink_in -001418 - ramp -0014fe - cv_txt_note -00155e - cv_text_flags -0015ac - cv_text -0015c8 - dc_touch -001604 - scr_blit -001630 - cv_blit -00165c - draw_text_line -0016b2 @ str_cpy -0016da - str_len -0016e8 - hexs -00170e - crash_code -001768 - fault_tail -0018da - fm1_fault_c -001ce8 @ memset -001cf4 a memcpy -001d04 - memcmp -001d1e @ sw_heard -00206e - bt_air_tap -002092 @ voice_held -0020b4 a voice_kill -0020d0 a trk_vmode -0020ee a lowest_held -00213e a voice_core_drum -002154 a shed_voice -002264 a uac_collect -002360 a uac_render_start -0025d2 a uac_in_fill -00279a a beat_samples -0027cc a div_samples -002800 a midi_out_event_at -00284a a midi_out_event -002850 a mo_send -002862 a mono_remove -002896 a trk_nvoice -0028ec a mono_pick -00292e a eng_voice_weight -00295e a load_cost_q8 -0029de a load_take -0029f0 a load_admit -002a90 a vh_pred -002ad4 a voices_load -002b0a a voice_cap0 -002b36 a voice_cap -002b56 a drum_lane_of -002bb6 a kit_faded -002bea a quiet_tail_lv -002c82 a voice_lvl -002c96 a voice_victim -002d78 a voice_room -002e20 a noise32 -002e34 a glide_sung -002e86 a trk_trans -002eae a glide_set -002f02 a voice_start -00305a a drum_fx_id -003076 a drum_chrom -00307e a drum_gm_ix -00309a a drum_lane -0030ae a drum_note_lane -0030fa a voice_begin -00322a a glide_from_trk -00324e a mono_play -003444 a voice_off_at -0034c0 a trk_note_off -0035a4 a seq_note_off -0035f2 a pfx_hush -00361e a dx_lane_muted -003650 a drum_muted_t -00365c a mo_plays -0036ae a vel_note -0036da a voices_busy -00370e a trk_note_on -0040be a seq_note_on -0041c4 a pfx_fire -004324 a pfx_block -004948 a vpol_scan -0049de a voice_soft -004cba a mo_clock_on -004ce4 a rec_on -004d6c a live_swap -004dba a fit_step_samples -004e5e a step_samples -004eaa a seq_src -004ed6 a st_micro -004ee8 a rec_len -004f28 a rec_end -005062 a rec_release -0050bc a arp_chord_off -0050ee a arp_off -005132 a seq_release -005196 a fg_release -0051bc a fg_reset -00520e a mo_flush_of -005250 a gl_step_at -00528c a srec_stop -0052fa a motion_guard -005302 a motion_restore -0053a8 a seq_stop -0054b6 a preview_owns -005500 a preview_end -00556c a step_lanes_of -0055e0 a tvel -0055fa a preview_block -005870 a kx_route -0058b4 a kx_shape -0058f4 a kx_block -005b52 a trk_all_off -005b90 a mo_koff -005be0 a latch_release -005c2c a arp_silence -005c58 a mn_get -005c7c a midi_mapped -005cc4 a mn_set -005cf8 a midi_forget_track -005d82 a midi_silence_track -005e3a a panic_block -005f7a a track_desc -00605c a mo_knobs -006160 a mo_block -006274 a click_beat_len -006280 a motion_begin -0062bc a as_mix -0062d2 a param_kept -006306 a snd_sig -006380 a snd_own -0063c0 a dx_mute_set -0063d4 a sec_apply -006616 a row_var -006644 a chain_apply -006762 a seq_start -0068d4 a cin_block -006940 a mck_reset -006950 a midi_clock_transport -0069ba a cin_begin -0069ec a midi_channel -006a10 a dxo_off -006b04 a drum_oct_of -006b36 a drum_oct_base -006b48 a midi_local_held -006ba2 a midi_note_held -006c16 a input_off -006cca a midi_release -006da0 a midi_expression -006dec a midi_route_ch14 -006e62 a trk_fade_out -006ec4 a name_of -006efe a ml_free_cc -006f3a a ml_map -006f52 a param_desc_of -006f76 a motion_param -006fda a motion_desc -006ff4 a param_fit -00701e a motion_at -00702c a motion_put -007130 a motion_set_event -007140 a motion_capture -0072b8 a midi_val_set -0072f2 a midi_cc_set -00731c a midi_learned -0073b2 a split_track -0073ca a midi_track -0073f8 a midi_targets -00744c a split_cut -00746a a split_oct -007478 a cin_keep -007542 a st_micro_set -007564 a step_lm_raw -007586 a step_ratchet -007590 a rec_repeats -00763a a step_set_lmode -007672 a rec_drum -0077cc a rec_note_at -007b70 a rec_note -007bac a input_on -007c8a a dxo_part -007cd0 a dxo_on -007f0e a midi_note_event -0080d0 a midi_expression_channel -008102 a midi_pedal_up -008126 a nrpn_g_ok -00815a a motion_djf_set -0081de a midi_nrpn -008278 a midi_cc_map -0082ee a midi_control -00849e a mod_midi -0084d4 a midi_event -008610 a mo_kon -008656 a smk_kb_block -0089b2 a mo_key -0089d8 a drum_oct_note -008a40 a key_next -008b86 a key_black -008ba2 a key_place -008bd0 a scale_mask -008bf0 a scale_snap -008c24 a kb_map -008d16 a scale_steps -008d86 a clay_strike -008eaa a clay_kb -008f92 a chord_pick -008fbe a chord_build_mode -009360 a midi_clock_pulse -00954c a lv_neutral -009578 a fg_next -0095ea a live_heads -0096d8 a live_q -009988 a trk_kit -0099bc a shift_step_pass -009a2a a seq_due -009b7a a rec_hold -009c16 a rng -009c2e a live_next -009d0e a live_adv -009e58 a shift_cond -009ec2 a shift_prepare_pass -00a074 a shift_ahead -00a0b8 a jam_in -00a11e a jam_step -00a256 a dxp_choke -00a292 a dxp_step -00a2cc a dxp_fire -00a61a a dxo_rec_hold -00a780 a hc_run -00a9aa a seq_unit -00a9ee a fill_apply -00aafc a comp_run -00b252 a step_chance -00b262 a trk_chance -00b28e a step_rolls -00b31c a motion_unlock -00b402 a motion_lin -00b41c a motion_step -00b682 a arp_owner -00b6de a step_parts -00b74c a chord_auto -00b780 a cp_order -00b7da a lm_hits -00b7f8 a lm_once -00b820 a cg_near -00b89e a hum_pm -00b8c8 a step_lmode -00b8d6 a glide_q8 -00b8f0 a seq_step -00cd2c a seq_ratchet -00cde0 a seq_lane_rat -00cf4e a fg_play -00d0da a fugue_tick -00d246 a dxo_hit -00d26a a dxo_tick -00d480 a cin_record -00d528 a arp_pick -00d654 a arp_chord -00d70e a ain_follow -00d7d0 a kx_src -00d81c a drift_noise -00d882 a mod_tsrc -00d98c a life_block -00db20 a macro_master -00dee2 a clay_step -00df3c a umul64 -00df42 a form_fexp -00df74 a form_isqrt -00df9e a clay_tick -00eef4 a dx_mot_block -00f00a a master_begin -00f084 a dx_fall -00f0da a duck_block -00f1aa a perf_avail -00f1d2 a perf_unhush -00f21a a mc_split -00f4bc a mul64_sh15 -00f4c6 a rev_state_clear -00f562 a rev_line_clear -00f58c a fx_glide -00f5be a tone_set -00f66c a db_block -00f73a a delay_zero -00f7d0 a cho_lfo -00f86a a sp_chain -00f8a2 a spring_block -00f94e a reso_block -00fbd0 a cl_spawn -00fda8 a cl_age -00fde0 a room_mod_clock -00fe6a a room_zero -00feaa a fx_gate -010056 a ms_tick -0100b8 a mod_voice_add -01013a a mod_track_desc -010182 a clay_off -0101f6 a clay_mod -0103fa a mod_begin -010780 a lfo_wave -010830 a drum_side_begin -010b32 a mul64 -010b38 a mod_voice -010cb0 a kt_cut -010cf6 a voice_half -010ed2 a voice_block -0115e8 a voice_start_rec -0116ee a drum_glue -01193e a drum_bus -011bc2 a drum_env -011d70 a track_comb -0120e8 a kt_res -012166 a tf_sides -01229a a tf_run -012726 a track_filter -0128ee a track_post -012934 a mod_end -012972 a autopan -012ada a slicer_on -012b0c a stem_pre -012b1e a duck_ramp -012b46 a mulq16 -012b54 a perf_hush_end -012b88 a perf_mute -012bf6 a drum_mix -012e02 a stem_post -012e26 a uin_mix -012f1a a mc_join -012fb4 a mc_lost -013004 a fx_trip -013100 a pfx_end -01318e a slicer_fx -0131ae a sl_pattern -0131ca a sl_enter -01346e a sl_seg_tr -0137f8 a slicer_bus_tr -013858 a stem_fx_block -0139aa a stem_slicer_bus -013a66 a djf_coef -013b12 a mac2_64 -013b1e a djf_block -013fdc a clip_block -0140b6 a lev_block -0141be a perf_len -0141dc a perf_drop_slicer -0141f6 a perf_buf_start -01431e a perf_switch -0143e0 a pb_loop -0144c4 a perf_str -014656 a pb_ring_f -0146a2 a perf_rtp -01492a a perf_buf_done -01495c a perf_buf -014b3c a master_out -014df2 a uac_tap8 -014faa a uac_tap48 -015096 a uac_tap -015158 a usb_fixed_dac -015178 a click_render -01527c a uac_render_end -01533c a load_half -01543c a shed_check -0154e8 a fm1_alnk0_irq -0156dc a smk_curve -015716 a smk__padq_ui -015754 a smk__padq -0157c2 a smk__pad -0158be a smk__key_event -015932 a smk__strike -015998 a sie_wr -0159e8 a sie_rd -015a3e a uac_squeeze -015b30 a ep4_fill -015dc2 a ep4_tx -015e10 a uin_take -015e92 a uin_rx -015eec a uac_stream -015f20 a uac_rate_set -015f68 a uin_stream -015fae a e0_chunk -01603e a e0_send -01607c a uac_ep4_reset -0160a8 a uin_ep_config -0160da a midi_enqueue -01613a a fm1_timer5_irq -0172bc - fm1_p33_read -017300 - fm1_enter_uboot -01739a - boot_lz4 -01742a - fm1_power_field -01747a - fm1_guard_enable -01756c - fm1_mc_park -0175cc - irq_save -0175d2 - fl_far -0175dc - ux_mix -01762e - palette_set -017692 - fav_rows_new -0176cc - usb_replug -0176fe - usb_serial_apply -0177d4 - og_neutral -0177f0 - og_plot -017896 - spl_disc -017952 - spl_seg -0179b2 - cv_text_on -0179c6 - cv_text_in -0179f2 - spl_lines -017a42 - spl_threads -017ba4 - heat_col -017be4 - splash_at -017d82 - hex8 -017daa - crash_log_put -017e34 - cpu_after -017e44 - cpu_boot -017f1a - dbg_boot -017f68 - cpu_clock -018098 - chain_valid -0180ca - chain_defaults -0180e8 - mx_defaults -018124 @ ly_char -018142 a ly_word -01819a a sy_norm -0181e6 a sy_isv -018208 a sy_es_tok -0183de a sy_word -01913a - sy_entry -0191aa - fm6_max -0191da - fm6_sanitize -019214 - fm6_unpack -01931a - fm6_set_patch -019366 - chain_busy -01937e - motion_rebase -0193e2 - motion_clear -019488 - motion_reset -01948c - step_clear -0194be - track_defaults_steps -019536 @ motion_enabled -019558 - motion_set_enabled -019596 - load_begin -019638 - eng_gone -019652 - tsel_p -019670 - gz_get -019692 - fm6_adopt -01974c - fm4_apply -0197a8 - motion_count -0197f8 - load_end -0198f0 - fm4_load_preset -019976 - trk_eng -019980 - trk_engp -019992 - fm6_bank_slot -01999c - fm6_load_slot -019a12 - apply_preset_to -019c20 - set_engine_of -019c86 - vel_at_route -019cbc - init_sound_of -019d86 - dx_kit_load -019e3e - steps_sig -019e50 - fm1_adc_read -019eb8 - master_lvl -019f24 - fm1_delay_ms -019f3e - usb_start -019ff0 - fm1_guard_lock_top -01a02e - draw_text_box -01a05a - fm1_input_edges -01a070 - setup_show -01a0a0 - fm1_enc_take -01a0bc - ui_say -01a112 - ui_message -01a11c - panel_setup -01a32e - fm1_mc_barred -01a34a - mod_dst_ok -01a466 - mod_dst_offer -01a4c8 - master_poll -01a504 - boot_splash -01a55c - bt_get -01a57c - bt_set -01a5c4 - cpu_off -01a5e4 - cpu_lost -01a5fc - usb_detach -01a61e - ed_eng -01a622 - ed_room -01a63e - ed_val -01a65c - ed_step_sig -01a6bc - ed_shadow -01a768 - ed_begin -01a78c - ed_b -01a7ac - ed_send -01a7c8 - lens_on -01a7fa - save_on -01a82c - fx_on -01a85e - pd_of_fam -01a892 - pd_on -01a8cc - dlg_on -01a8e8 - gen_on -01a8fc - name_on -01a90c - lz_on -01a982 - pd_cur -01a99c - lz_fam -01a9f0 - song_pg -01aa10 - sec_of_fam -01aa38 - nav_sec -01aa6e - nav_key -01aa9a - nav_mem -01aab4 - gen_page -01aac4 - nav_ch -01aad8 - str_eq -01aaf8 - eng_ok -01ab16 - trackgen_ok -01ab34 - page_visible -01ad48 - nv_page -01adc6 - nav_mem_put -01adde - nav_cur -01af9c - nav_page_name -01b082 - ed_perf -01b294 - ed_v -01b2bc - ota_frame_get -01b2e4 - ed_lm_ok -01b2fc - ed_args_ok -01b48e - ed_u28 -01b4a8 - ed_ui_state -01b508 - ed_str -01b532 - ed_rv -01b540 - favorite_has -01b588 - up_rec -01b5a6 - up_valid -01b604 - up_used -01b622 - favorite_set -01b69c - seq_counting -01b6ae - transport_busy -01b6e8 - ed_flash_stop -01b742 - mom_base -01b774 - motion_djf_value -01b790 @ fit_valid -01b79e - fm6_pack -01b8b6 - motion_base_value -01b910 - proj_mx_put -01b944 - clay_pack -01b982 - proj_master_put -01bae8 - proj_hash -01bb06 - proj_sum -01bb0e - project_capture -01be2a - proj_split_ok -01be8a - motion_valid -01bf30 - dx_kit_ok -01bf70 - proj_sc_used -01bf94 - proj_djf_events -01bfd2 - proj_mf_tracks -01c008 - proj_bits -01c01e - proj_gl_used -01c048 - proj_tp -01c0d8 - proj_eq -01c17e - proj_fg_used -01c1b2 - proj_lyr_len -01c1ca - proj_fm_kept -01c208 - param_store_def -01c21a - proj_pdef -01c21e - step_lm_any -01c22e - proj_step_empty -01c280 @ comp_any -01c296 - proj_step_x -01c354 - proj_mx_custom -01c3ba - proj_packed_size -01c6cc - proj_name_get -01c704 - proj_pack -01d2c0 - proj_ok -01d30e - params_by_count -01d348 - step_set_ratchet -01d36e - cm_one -01d6ec - comp_migrate -01d816 - proj_unpack_c -01e9ec - proj_engines_ok -01ea0a - proj_ap_clear -01ea2c - proj_fm4 -01ea66 - west_from_noise -01eaae - proj_phys_gone -01eb2a - proj_import -01ec7a - project_used -01ec92 - upf_valid -01ecb4 - ed_bk_song_obj -01ecc2 - st_sector -01ed54 - st_read -01ed9a - st_crc32_add -01edc6 - st_crc32 -01edd6 - st_head -01ee42 - st_body -01ee78 - st_current -01eefe - proj_store_len -01ef24 - ed_bk_object -01f02a - ed_bk_u32 -01f044 - ed_bk_r32 -01f060 - proj_steps -01f0ac - proj_bound -01f13a - dx_take -01f19a @ sy_tok -01f212 - lyr_set -01f332 - lfo_fade_restart -01f350 - project_restore_runtime -01fa8a - upf_empty -01fab0 - ed_bk_commit -01fd74 - ed_bk_write -01ffd6 - upf_fm6 -01fff2 - upf_tag -020018 - upf_pk_get -02004e - upf_get -02009e - fm6_neutral -0200cc - upf_pk_put -020118 - upf_set -020174 - ed_fm6_name -0201b4 - ed_fm6_handle -020490 - vel_row -0204ac - menu_n -020514 - menu_flag -020530 - scr_get -020550 - rp_get -020588 - cpu_get -0205aa - menu_get -02075e - menu_vname -020934 - rp_apply -0209ae - rp_put -0209f6 - load_put -020a12 - cpu_put -020a60 - seg_missing -020a86 - bt_start -020ab6 - menu_put -020d8a - motion_delete_event -020e22 - motion_set_lock -020e32 - motion_clear_locks -020ed0 - ed_tdesc -020ed4 - ed_desc -020f1c - ed_load_before -020f88 - set_engine -020f98 - ed_load_after -020ff0 - ml_name -02106e - ml_used -021082 - ml_code -02108e - fmt_fix -0210fa - fmt_int -021100 - ml_knob -0211d8 - mo_knob -021252 - knob_cap -021280 - excite_turn -021390 - desc_unit -0213a4 - mod_dst_scope -0213e2 - mod_dst_name -02149a - step_set_chance -0214aa - ed_step_put -021558 - ed_step_reply -0215d2 - drum_elsewhere -021608 - apply_preset -021650 - proj_err -021690 - proj_name_pack -0216ea - project_save_as -021764 - project_load -0217a8 - up_value -0217c0 - up_values -021842 - up_grid -021858 - up_name_ok -02187e - up_set_value -021896 - up_pat_norm -0218b6 - up_migrate -021950 - up_parse -021ad8 - up_put -021b7c - eng_live -021b9c - up_slot_label -021bc0 - up_auto_name -021c16 - up_set_name -021c52 - step_accents_of -021c6a - up_store -021e5e - up_load -02205a - page_flash -02207a - track_select -0220d2 - ed_known -022132 - row_src -02216e - song_stage -022894 - chain_prepare_at -02296a - ed_handle -024206 - ota_frame_done -024214 - ed_service -024576 - smk_tgt_id -0245e4 - smk_tgt_range -024690 - accel -02474c - smk_tgt_put -024880 - smk_tgt_get -0248ca - cur_page -0248ec - grid_on -024928 - keys_pg -024960 - ckeys_on -024966 - skeys_on -024982 - keys_mode -0249a2 - step_to_grid -024a16 - grid_own -024a74 - grid_hit -024b06 - smk_step_release -024bb8 - smk_step_full -024c0c - ui_preview_ok -024c68 - ui_preview -024cb0 - cursor_set -024cee - undo_ui -024dc8 - glo_tap -024e7e - nv_ok -024eb2 - confirm_open -024ece - go_home -024efa - fx_trk_k -024f2e - fx_page -024f58 - fx_mod_of -024fa0 - ev_len -024fb6 - ev_id_ok -025026 - lock_page_ok -02506a - lock_id -0250be - motion_find -025118 - ev_id_step -025152 - ev_fix -0251a8 - page_entered -025272 - nav_go -0253b2 - panel_enc -0253de - motion_lock_get -025448 - enum_order -025482 - enum_rank -0254e0 - fm6_slot_ok -0254f4 - enum_skip -025514 - param_turn -025688 - lock_turn -025754 - sc_beat -025936 - mom_ptr -02596e - mom_finish -0259a4 - mom_poll -025a64 - section_load -025b12 - chain_cut -025b74 - section_jump -025c24 - st_load -025c66 - jam_load -025cc6 - project_name -025d00 - song_name -025d34 - song_select -025e4e - eng_vis -025e66 - preset_order -025f32 - preset_rank -025f5c - user_of -025f7c - preset_all_pos -026020 - pc_shown -02604a - preset_all_at_in -0260e8 - ml_put -026106 - ml_poll -026236 - seq_is_empty -026252 - scr_wake -026270 - btn_hold -0262d4 - ly_bit -0262f2 - ly_avail -02632e - layer_allowed -02635a - ly_down -026376 - layer_held -02639a - layer_opened -0263aa - pk_row -0263d8 - pke_load -026428 - pk_load -0264ca - pke_oct -0265fc - act_cols -026692 - layer_open -0266e4 - layer_set_open -02671a - fx_macro_back -026744 - section_store -0267e2 - act_col -026822 - motion_rows -0268b2 - ev_rows -0268ca - ev_row -0268da - jam_len -026902 - nav_lv -02691c - save_level -026920 - act_ready -026b40 - kx_frame -026c0a - pk_per -026c38 @ sine_i -026c60 - pk_shape -026d10 - undo_mark -026d32 - dk_genome -026d5c - ratio_d -026d96 - bg_feat -026f8c - dk_feat -026fc2 - dk_vis_take -026fea - dice_by -027014 - part_dice -027318 - btn_used -027348 - nav_list -0273fa - nav_select -02748a - list_get -0274b4 - preset_all_at -0274be - preset_in -027510 - preset_pos -02756c - preset_at -0275be - select_engine -0275f0 - up_has_pat -02761a - up_pat_rank -02763e - preset_go -0276d6 - live_rec_sel -027720 - lock_held -0277e6 - home_level -027804 - home_set -027820 - home_life -027848 - home_param -027892 - page_desc_v -0279ce - eu_kit -027a60 - eu_anchor -027aa0 - eu_from_src -027b30 - eu_take -027cb0 - eu_of -027d02 - page_desc -028620 - mom_vp -02873c - mom_keep -0287c6 - eu_every -028824 - comp_slot -028852 - comp_type -02886a - comp_arg -02887e - comp_view -0288b4 @ motion_lock_at -028904 - cond_idx -028932 - cond_at -028978 - comp_knob -028d76 - dx_pagen -028d98 - dx_send_ix -028dbe - dx_knob -0290e8 @ sw_sv -029112 - focus_named -029146 - focus_k -029170 - focus_slot -02919e - focus_knob -029322 - ev_busy -02933c - motion_move -02943a - ev_follow -029468 - ev_knob -02964c - jam_end -02966a - take_busy -0296a0 - jam_sort -0296ea - take_pick -02971a - song_end_row -029732 - song_idx_touch -02974e - note_len -02977c - note_drop -0297aa - step_on -0297c0 - len_turn -02989c - note_edit -029bdc - jam_cur -029c0c - jam_switch -029e9c - grid_hit_of -029ec6 - grid_hit_set -029efa - grid_acc -029f86 - step_edit -02a270 - preset_step -02a2f8 - eng_rank -02a31a - list_turn -02a386 - split_field -02a3a8 - split_value -02a3d4 @ fit_span -02a3ea - fit_ui_edit -02a568 - fop_field -02a598 - fop_ok -02a5ae - fop_byte -02a5f0 - sc_setup -02a6a0 - sc_key -02a730 - sc_dice -02a828 - sc_put -02aaee - eu_turns -02ab0a - eu_hit -02ab42 - eu_vc -02ab78 - eu_rnd -02ab94 - eu_ch -02abb2 - eu_vary -02ad72 - eu_drums -02b0de - eu_key -02b312 - eu_harm -02b4b8 - eu_up -02b4f8 - seed_fuse -02b54c - eu_deg -02b576 - eu_melody -02be56 - eu_gen -02bfea - edit_param -02d40e - mom_knob -02d530 - layer_let_go -02d87c - project_recall_slot -02d8b4 - edit_recallable -02d8c0 - rec_set -02d8e8 - rl_name -02d900 - cp_say -02d948 - cp_put -02da72 - cp_keys_used -02db0a - cp_copy -02dc60 - tl_cell -02dc8c - tl_order -02dd2a - tl_shift -02dd54 - drum_lane_name -02dd64 - tl_lane -02dd7c - song_rec_toggle -02de92 - up_engine -02dea0 - up_name -02ded4 - project_cur_name -02dee0 - name_open -02e00a - layer_key -02e8cc @ perf_def -02e90c - pke_e -02e928 - pke_tgt -02e940 - pk_name -02e9d2 - trk_base4 -02e9ea - page_first -02ea06 - ly_page -02ea20 - menu_close -02eabc - name_close -02ead8 - cp_held -02ebb2 - rec_tap -02ed36 - enc_drop -02ed48 - cv_text_r -02ed78 - cv_rect -02edde - about_byte -02ee0a - menu_text -02eed4 - menu_lines -02ef62 - menu_document -02f4ec - menu_scroll_max -02f502 - menu_tab -02f524 - mtab_first -02f53e - menu_set -02f558 - mtab_rows -02f57c - menu_step -02f5d6 - nm_commit -02f5ec - nm_group -02f61a - nm_len_max -02f62c - nm_insert -02f688 - nm_black -02f6c0 - nm_do -02f72e @ sy_phrase_len -02f76c a sy_rnd -02f788 a ly_meta -02f79e a ly_pick -02f818 a sy_gen_word -02fcce - song_save_as -02fcf6 - up_ui_named -02fe30 - nav_put -02fe84 - nav_button -02ff2e - open_family -02ff3a - motion_lock_steps -02ff92 - page_tap -030066 - layer_tap -0300b0 - up_ui -0300b6 - song_erase_parts -030252 - row_copy -03030e - comp_legacy -030328 - song_draft_begin -030344 - sound_put -030496 - project_recall_sound -03051a - undo_sound -030548 - cursor_fix -030566 - panel_btn_of -030582 - chain_play_ui -0305da - rec_first -030634 - rec_clear_auto -030878 - oct_key -0309a2 - ent_message -030a96 - eu_mutate -030d06 - gen_sig -030d82 - gen_new_seed -030e6a - st_erase_raw -030eec - st_stock_release -030f28 - st_prog -030fba - song_poll -031742 - gst_put -031794 - gen_press -0319fa - gclear -031a0c - gr -031a28 - gseed -031ad4 - gch -031af2 - grr -031b12 - gpickw -031b56 - gminor -031b6a - gcolour -031c6e - gnd -031cc0 - galt -031cfa - gtone -031d14 - giv -031d2e - gtriad_ok -031d82 - gx_prog -031fb8 - gprog_ok -03206e - glatin -032094 - gq_fix -0321e6 - gsplit -0322a0 - gplan -03256c - gdrum_hit -0325e2 - gdrum_clear_region -032618 - glm -03261c - glane_rat -032636 - gidm_edit -0329e2 - gkick_of -032a24 - gen_drums_m -0336f2 - dstep_tie -033706 - gci -033748 - gchord -033760 - gbass_root -033792 - gchord_starts -0337b6 - gnote -03382c - gen_acid -033a5e - gba_vary -033b76 - gkick -033b8e - gbass_tone -033bde - gin_mode -033c12 - gpcm -033ca8 - gchord_at -034026 - gchord_root_pc -034042 - dhold -03406e - gen_riff -034254 - gchord_pcs -034260 - gpc -034298 - gl_ct -0342b4 - gl_pal -0342e0 - gl_near -034358 - gl_add -0343c6 - gl_clash -034402 - gl_pitch -03440a - gl_write -03490a - gl_cad -0349da - gen_role -037694 - trackgen_make -0386aa @ sy_norm_lang -03872a - lyric_pick -038880 - lib_scan -0388b8 - act_do -038dca - clip_launch -038ec4 - bn_set -038ef8 - page_go -038f3a - tl_keys -038f84 - black_held -038fc2 - chord_peek -038fce - ent_commit -039196 - gen_knob_bt -039394 - motion_seg -039416 - motion_thin_id -039632 - ui_input_frame -03dbda - gen_tick -03dc9c - ui_input -03debc - autosave_poll -03e138 - layer_btn -03e15c @ perf_slot -03e184 a perf_key -03e1a8 - glo_sounding -03e1e2 - rec_clearable -03e204 - padled_set -03e236 - smk_pad_rgb -03e26a - lcd_power -03e28a - scr_holes -03e2d2 - kc_w -03e2e8 - kh_ink -03e318 - cv_keycap -03e446 - cv_key_hint -03e496 - head_trk -03e4ec - graph_project_used -03e5fe - sound_name -03e648 - str_hash -03e65c - batt_shown -03e696 - head_load -03e6d0 - roll_note -03e7d8 - roll_text -03e998 - cv_pset -03e9c6 - cv_rrect -03ebd8 - text_fit -03ec5e - cv_text_fit -03ec94 - head_msg -03edba - cv_frame -03ee06 - draw_head -03f6a4 - kh_w -03f6c8 - cv_key_row -03f750 - foot_y -03f760 - foot_h -03f770 - card_y -03f780 - large_kind -03f7e0 - card_h -03f7fc - fill_around -03f912 - nav_groups -03f9a8 - nav_group_name -03f9c8 - tabs_paint -03fb02 - draw_tabs -03fcbc - fmt_frac -03fcda - heat_on -03fcf6 - card_heat -03fd28 - gauge_col -03fd52 - face_has -03fd7c - card_line -03fdd4 - ink_w -03fdee - draw_column -040a10 - gauge_column -040a2a - menu_val -040a70 - menu_short -040a96 - text_column -040aa6 - heat_bar -040b08 - lz_tile -040b6e - menu_large -040b82 - cv_clip_text -040bf0 - menu_panel -040ffa - fx_level -04101c - roll_view -041032 - page_title -0411d6 - foot_crumbs -04138a - foot_ph -0413b8 - steps_hash -04144c - foot_hint -0415c2 - foot_strip -0417b6 - draw_crumbs -041996 - draw_foot -041b98 - draw_menu -0424ae - draw_countin -0426d0 - dlg_tabs -0426ee - bg_sin -0426f4 - og_line_a -0427ec - pl_pt -042896 - bg_outline -042a5a - og_line -042a70 - bg_ring -042ad2 - being_lines -042c02 - dice_side -042c98 - dlg_card -042cba - dlg_crumb -042d3c - dlg_button -042dc2 - draw_confirm -043348 - nm_card -0433b2 - nm_draw_panel -043744 - graph_y -043764 - graph_h -043780 - draw_frame -04381e - glo_drums -04383e - drum_lane_abbr -04384e - ly_keyname -043ed0 - val_col -043efc - hot_text_column -043f16 - empty_column -043f2c - macro_cards -04401c @ vcons_q6 -04403c - param_format -04434e - rec_columns -044402 - preset_favorite -04442c - card_mot_of -044468 - hot_gauge_column -04448a - pf_column -0444c2 - sec_col -0444d4 - unit_column -0444e8 - hot_unit_column -04450a - comp_columns -044b38 - motion_lock_count -044b8c - draw_act_column -044be2 - trk_level -044bf8 - fop_bytes -044c30 - jam_card -044cd2 - note_name -044d02 - draw_columns -0470fa - layer_cards -047626 - bn_on -04765a @ pfx_rec_ok -047688 - pk_fill -047708 - ly_fx_cells -047878 - cv_text_up -04798c - hold_banner -047a7c - draw_layer -048074 - strip_kind -0480ae - track_col6 -048584 - draw_tracks -048b02 - toast_on -048b30 - gen_draw_sig -048c02 - hm_now -048c34 - seq_roll_view -048c72 - bg_energy -048d18 @ sing_view -048d42 - pr_head_step -048dc4 - pr_follow_bar -048e12 - lens_strip -048e40 - pr_geom -048e72 - pr_src -048eb6 - pr_note -048ee8 - pr_follow -0490c0 - pr_held -04913c - graph_signature -04a4ae - vx_fit -04a4c0 - vx_mt -04a4dc - vx_level -04a5fc @ sing_phon -04a614 - vx_voice_target -04a8da - vx_age -04a958 - vh_step -04ab12 - og_sin -04ab18 - og_cos -04ab22 - vh_jaw -04ab70 - vh_xf -04ac00 - vx_bez -04ad62 - vx_col -04add4 - vx_curve -04ae50 - vh_curve -04ae76 - vh_len -04ae96 - vh_along -04af66 - vx_line -04afbc - vh_poly -04aff2 - vh_line -04b00e - og_node -04b076 - vh_node -04b0b6 - vx_rnd -04b0ca - vx_voice -04bcf0 @ drum_kit_of -04bd20 - vx_fall -04bd42 - vx_blob -04be8a - vx_dot -04bee6 - vx_arc -04bf60 - vx_face -04c012 - vx_bug -04c300 - vx_kit -04c8dc @ osc_sine -04c904 - vk_heat -04c94c @ an_mode -04c962 - vx_uf -04c9a2 - fm6_alg_of -04c9e2 @ fm6_carriers -04c9f2 - vx_fm_ops -04cce6 - vx_sq -04cd06 - vx_body -04cd88 - vx_bface -04ce2a - vx_fm_bicho -04d076 - vx_text -04d0be - vx_fm6 -04d606 - vx_draw -04e518 - cv_line -04e58a - cv_line_t -04e5b8 - scope_seg -04e5f6 - scope_lod -04e664 - scope_at -04e752 - graph_scope -04e776 - graph_adsr -04ece0 - graph_lfo -04ef22 - graph_harm -04f25c - gen_radio -04f394 - song_len_txt -04f3f6 - graph_score -04f88a - lz_sec -04f8c2 - song_bars -04f8fa - graph_proj -04fcb4 - eco_bot -04fcbe - eco_swim -04fe9c - eco_step -050140 - eco_genome -050178 - eco_off -0501a2 - eco_ell -050210 - eco_face -05038a - bg_excite -050402 - eco_feat -050468 - eco_being -05059c - og_quad_a -050624 - lz_arc -0506c0 - graph_home_being -050bbe @ scn_notes -050cd6 - clay_lanes -050d98 - graph_euclid -050ff4 - note_col -051010 - lz_note -05104a - bar_cells -05131c - pr_split -051362 - graph_grid -0515da - pr_lit -051668 - pr_head_col -05168e - pr_row_y -0516b2 - pr_bars -0517b0 - comp_col -0517ec - lz_comp_mark -051850 - seq_col -051882 - pr_heads -051928 - graph_roll -052158 @ ramp_curve -0521dc - seq_overlay -052552 - graph_lz_tools -05283c - clip_dash -05289a - jam_lanes -052ab2 - lz_mini_being -052bc0 - graph_sound -052dd4 - graph_lz_presets -05309c - fx_dots -0530f8 @ softclip -05312e - tk_dist_y -053274 - fxg_en -05329a - fxg_label -0532ce - fxg_dist -05351e - fxg_mod -05476a - graph_fx_lz -054b44 - graph_being_at -054bfa - graph_sound_lz -054cca @ ft_of -054cd8 - ed_resp -054d74 - ed_cap -054d8e - lfo_cap -054e4a - graph_lfodest -05504c - graph_key -055304 - chord_label -055522 - chord_ivl -055584 - graph_chord -055a78 - graph_system -055c5e @ pd_setup -055d60 - morph_tri -055d78 @ pd_wave -055e9c a osc_pulse -055f2a a an_osc -055fca a an_morph -055ffa - graph_morph -056370 - fop_dec -0563b8 - vx_fm6_page -05663c - vx_ring -056674 - vx_fm6env -056c02 @ lofi_float -05797e - dx_wave_draw -057a0c - vx_kit_page -057ad0 - graph_colony -057cfe - sing_up -057d36 - graph_sing -05826e - tk -0582b4 - toast_clear -058306 - dc_cell -058378 - dc_send -058434 - cv_blit_cells -05867a - panel_send -0586d4 - draw_graph -05ae96 - page_flash_draw -05b03c - ui_draw_body -05b8fe - fm1_main -05df26 - fm1_cstart -05e41a @ analog_note_on -05e43c a an_mpos -05e48c a analog_morph -05ed64 a an_pw -05eda4 a analog_ext -05fa28 a analog_render -0600e8 a analog_dispatch -060170 a analog_desc -06018e a fm4_gone_note_on -060190 a fm4_gone_render -060192 a phase_note_on -0601aa a phase_render -0604dc a lofi_note_on -060504 a lofi_sync -060552 a lofi_mut -0605d0 a lofi_float_render -060994 a lofi_byte -060eea a lofi_byte_render -06129c a lofi_render -0613cc a lofi_desc -061420 a phys_gone_note_on -061422 a phys_gone_render -061424 a formant_note_on -0614ba a fmt_sung -061522 a fmt_ratio -06157a a mul64_us -06158c a fres_coef -061650 a fmt_glot -0616b8 a formant_word_render -06205c a vowel_at -0620e0 a formant_render -06285e a formant_amp -0628c4 a formant_desc -0628e4 a sy_voices -0629d2 a sy_reset -0629ea a sy_take_entry -062a04 a sy_word_next -062c2c a sy_seek -062d40 a ph_fric -062d54 a sy_ms -062d62 a sy_enter -062e5a a sy_tick -0633ba a formant_block -063836 a drw_part -063854 a wheel_note_on -063912 a drw_dust -0639ca a wheel_render -063d90 a drw_level -063dd4 a drw_dust_pick -063dfe a wheel_block -064066 a str_line -0640a2 a pitch_inc -0640c6 a str_period -064108 a str_exc -064192 a string_note_on -0643aa a str_exp2n -0643da a str_gain -064418 a string_render -064a76 a string_amp -064a90 a string_desc -064aae a string_block -064ac2 a string_done -064ad4 a dx_choke -064ae2 a drum_note_on -064cde a dx_pow2 -064d0e a dx_hands_step -064e50 a dx_fm_env -064e9e a dx_sq -064eca a dx_fm_lim -064f0a a dx_frt_q12 -064f38 a dx_layer -065132 a dx_scrape -065196 a dx_run_fx -065f04 a punch_gain -065f56 a drum_side_of -066018 a drum_side_ramp -0660ca a drum_render -066544 a drum_amp -066588 a drum_keys -06659c a west_note_on -0665f8 a west_exp2n -066628 a west_F -066672 a west_render -066eee a fm6_note_of -066f36 a fm6_sync -0672a4 a vel_sound -0672fe a fm6_env_advance -0673b6 a fm6_penv_advance -06740c a fm6_note_on -0676f0 a fm6_op_fb -06778e a fm6_op_run -0678e4 a fm6_render -0680a0 a fm6_block -0681cc a fm6_done -0682aa a add_note_on -068302 a add_render -0687b2 a animal_init -06883a a animal_note_on -06885a a an_inc -0688d8 a an_exp2n -068910 a animal_render -0697ee a animal_amp -069cc8 a animal_desc -069cf6 a ain_note_on -069d22 a ain_fill -06a030 a ain_render -06a0fe a input_desc -06a11a a ain_block -06a146 a mc_job -06af8c a tape_block -06b3fe a eq_gain -06b42c a eq_block -06b5a0 a scene_follow_off -06b5f2 a sc_track -06b768 a scene_follow -06b804 a scene_drum_tick -06b914 a perf_press -06b972 a perf_kpress -06baaa a pk_press -06bb40 a scene_key -06bc80 a key_off -06bd8e a seq_anchor -06bf0e a ramp_run -06c164 a dly_rev_set -06c1d0 a sw_rand -06c1e8 a sw_step -06c4e6 a sw_note -06c562 a sw_prep -06d20e a ain_swarm -06d496 a pk_step -06d532 a mix_spread -06d606 a life_mod -06d8f6 a ain_thru -06d92a a track_follow_peak -06da60 a fx_gates -06db10 a rev_gated -06dbe0 a rev_spring_side -06dc4e a rev_room_mod -06dfc2 a perf_frz -06e010 - vx_x2 -06e042 - vx_anb -06e08c - vx_an_wave -06e544 - vx_pl -06e5ba - vx_hash -06e5da - vx_analog -06ea10 - vx_wheel -06f0d0 - vx_poly -06f124 - vx_wv -06f1d8 - vx_west -06f5a0 - vx_pd -06f6b6 - vx_pdw -06f71c - vx_rs -06f732 - vx_whorl -06f7e4 - vx_phase -06febc - vx_lofi -070740 - vx_string -070a90 r ENGINES -070ad0 r ENG_ANALOG -070b88 r ENG_FM4_GONE -070c40 r ENG_PHASE -070cf8 r ENG_LOFI -070db0 r ENG_GONE -070e68 r ENG_FORMANT -070f20 r ENG_WHEEL -070fd8 r ENG_DRUM -071090 r ENG_WEST -071148 r ENG_FM6 -071200 r ENG_ANIMAL -0712b8 r ENG_INPUT -071370 r N_ANALOG_WAVE -071394 r ANALOG_PRESETS -071698 r R_VELKEY -071818 r PITCH_OCT -071b18 r SVF_G -071c18 r SINE -07241a r TANH_Q15 -07261c r AN_INT3_DESC -07262c r N_PD_WAVE -07264c r N_PD_WAVE2 -072670 r N_PD_LINE -072678 r PHASE_PRESETS -0728c6 r R_VELCUT -0728e4 r N_CHIP -0728f4 r N_RWAVE -072910 r LOFI_PRESETS -072aec r LOFI_MOTN -072afc r LOFI_ALGO -072b0c r LOFI_FALGB -072b1c r LOFI_FALGO -072b2c r LOFI_FDCY -072b3c r LOFI_FMRPH -072b4c r N_BYTE -072c10 r N_FLOAT -072cd4 r FORMANT_PRESETS -072ebe r R_ATSHP -072ef4 r ENV_LIN -0730f4 r VOWEL_F -073112 r VOWEL_B -073124 r SEMI_Q16 -073158 r FMT_WDESC -0731d8 r N_THEME -0731fc r N_LOOP -073214 r LOOP_N -07321c r SY_EXT_WORDS -073234 r SCAT_ES -0732d0 r LY_BANK -073300 r SCAT_EN -073338 r SCAT_JA -0733e4 r TPL_ES -073408 r TPL_EN -073428 r TPL_JA -073440 r VOCABLE -07344c r SY_EXT_WORD_0 -0734aa r SY_EXT_WORD_1 -073504 r SY_EXT_WORD_2 -073560 r SY_EXT_WORD_3 -0735a4 r SY_EXT_WORD_4 -073601 r SY_EXT_WORD_5 -07365e r LY_ES_TXT -073b28 r LY_ES_OFF -073b50 r LY_ES_META -073bea r LY_ES_GRP -073c56 r LY_EN_TXT -074028 r LY_EN_OFF -07404a r LY_EN_META -0740d0 r LY_EN_GRP -07413c r LY_JA_TXT -0743c2 r LY_JA_OFF -0743d8 r LY_JA_META -07442e r LY_JA_GRP -07449a r sy_ja.JV -07449f r SY_RULES -074667 r sy_ext.letters -074682 r PHON -074908 r N_DRW_REG -074948 r N_DRW_PERC -074964 r N_DRW_ROTR -074970 r WHEEL_PRESETS -074a88 r R_ROTOR -074aa3 r R_WDRIVE -074ad4 r DRW_FOLD_LIM -074af8 r DRW_LV -074b0c r DRW_ROT_SPD -074b24 r DRW_REG -074bc4 r R_PLUCKED -074c60 r DRUM_PRESETS -074dcc r R_KIT -074e09 r DRUM_GM -074e68 r DX_EXT_FX -074e80 r DX_NRM -074ea2 r DX_FRT -074ed4 r N_WEST_RATIO -074f54 r WEST_PRESETS -0751c8 r R_STRUCK -0751d5 r R_WFOLD -075208 r NOISE_SEQ -0752c8 r N_FM6_ALG -075350 r N_FM6_PATCH -0753f8 r FM6_PRESETS -075672 r fm6_sync.SPREAD -075678 r FM6_LFO_DELTA -075808 r FM6_LEVELLUT -07581c r FM6_EXPSCALE -07583d r FM6_VELDATA -075880 r FM6_STATICS -0759b4 r FM6_DETUNE -075ab4 r FM6_COARSE -075b34 r FM6_FINE -075cc4 r FM6_PENV_TAB -075d28 r FM6_PENV_RATE -075d8c r FM6_EXP2 -076590 r FM6_ALG -076708 r N_ANIMAL_MODE -07671c r N_AN_GROUP -07675c r ANIMAL_PRESETS -076a88 r R_CALL -076bdc r LFO_INC -076ddc r AN_LW -076dee r AN_DMAP -076e18 r AN_DESC -076f18 r N_AIN_SRC -076f2c r N_AIN_PLAY -076f4c r INPUT_PRESETS -07709c r SW_FULL -077194 r SW_DESC -077214 r UAC_FIR0 -077334 r UAC_FIR3S -077364 r UAC_FIR4 -077a84 r SC_PAT -077ad4 r chord_build_mode.DIA -077ae8 r chord_build_mode.SST -077b04 r chord_build_mode.SETS -077b27 r chord_build_mode.SHP -077b3f r chord_build_mode.T3 -077b43 r chord_build_mode.F5 -077b46 r chord_build_mode.F5M -077b49 r chord_build_mode.S7 -077b4c r chord_build_mode.S7D -077b4e r chord_build_mode.S9 -077b50 r chord_build_mode.S2 -077b52 r chord_build_mode.S4 -077b54 r GP -078024 r NONE_DESC -078034 r SIMG_DESC -078044 r DKEYMODE_DESC -078054 r VLANG_DESC -078064 r VLYR_DESC -078074 r VCONS_DESC -078084 r LOFI_RTRG -078094 r TRK_CHANCE -0780a4 r MORPH_DESC -0780b4 r CLEN_DESC -0780c4 r DXIMG_DESC -0780d4 r CHORD_DESC -078104 r HUM_DESC -078134 r ENV2_DESC -078174 r RECQ_DESC -078184 r DRIFT_DESC -078194 r TVEL_DESC -0781a4 r WROT_DESC -0781c4 r TP -078974 r N_DKEYMODE -07899c r N_LANG -0789c4 r N_LYRIC -078a2c r N_CLEN -078b34 r N_CHRD -078b7c r N_CVOI -078b90 r N_LWAVE6 -078ba8 r N_AMODE -078be8 r N_DIV -078c10 r N_ORDER -078c18 r N_SCALE -078c58 r N_QUANT -078c68 r N_VOICE -078c78 r N_GLMODE -078c80 r N_PRIO -078c8c r N_ALLOC -078c94 r N_LWAVE -078ca8 r N_APSYNC -078cb0 r N_MSRC -078d18 r N_MDST -078da8 r N_DTYPE -078dc0 r N_FTYPE -078dd4 r N_CLOCK -078de0 r N_DTIME -078eec r N_MIDI_INPUT -078ef4 r N_ROUTE -078efc r N_GO -078f04 r N_ENGNAME -078f44 r N_RTYPE -078f58 r N_SLCR -078f64 r N_SLDIV -078f7c r N_SLPQ -078f84 r N_DLYTYPE -078f94 r N_PFXRES -078fa0 r N_DRTIM -078fbc r N_HPROG -079048 r N_HLEN -07905c r N_HSKIP -079078 r PERF_KP -07907c r PK_PRESS -079080 r perf_def.BK -079085 r kb_map.DEGREE -079091 r CLAY_KMAP -0790ac r CLAY_KPG -0790b2 r CLAY_HIT -079112 r MIDI_CC_MAP -079140 r FG_DEN -07914c r FG_NUM -079158 r seq_anchor_fp -07915c r RAMP_RUN -079160 r LV_RN -079169 r LV_RD -079172 r shift_step_pass.rest -07918a r jam_step.Q -079190 r DXP_TOM -079196 r fill_apply.DK -0791d6 r fill_apply.DR -079216 r CP_RATES -07921c r CT_DIVS -079222 r DIV_DEN -079228 r DLY_REV_SET -07922c r AIN_SWARM -079230 r sw_prep.SELF_ID -079238 r SW_RT -079244 r SW_SLOT -07924e r SW_XM -079258 r sw_step.SINW -079260 r CLAY_RES -079328 r CLAY_EUK -07935c r FORM_ARP -07936e r clay_eval.R -079375 r FORM_CH -079389 r clay_eval.R2 -079390 r dx_mot_block.Q8 -07939c r PERF_PK -0793a0 r PF_SVF -079520 r PF_DEN -079524 r LEVEL_Q12 -079624 r TRACK_FOLLOW -079628 r LIFE_MOD -07962c r mod_param.ID -079638 r CLAY_MD -07964e r life_mod.LD -079654 r AIN_THRU -079658 r track_lfo_tick.U -079674 r ENV_EXP -079774 r drum_bus.GN -07978e r mix_spread.A -0797b2 r REV_LITE -0797c2 r DTIME_MS -079834 r dly_rate.RN -07983b r dly_rate.RD -079842 r HB_Q -079860 r GR_RATIO -0798c4 r semi_q16.R -0798dc r SL_DEN -0798e4 r SL_RATIO -0799a8 r perf_buf_start.BM -0799c2 r CLICK_GAIN -0799c8 r fm1_input_tick.CH -0799cb r SMK_PK_NONE -0799db r SMK_KEYC -079a25 r SMK_BTNC -079a37 r SMK_LEDC -079a4a r ep0_service.zero2 -079a4c r ep0_service.RATE -079a4f r ep0_service.RATE48 -079a52 r DEV_DESC_STIN -079a64 r DEV_DESC_PLAIN8 -079a76 r DEV_DESC_DUP -079a88 r DEV_DESC_PLAIN -079a9a r CFG_DESC_STIN -079b93 r CFG_DESC_PLAIN8 -079c42 r CFG_DESC_DUP -079d3e r CFG_DESC_PLAIN -079df0 r STR0 -079df4 r STR1 -079e0a r STR_PROD -079e24 r sysex_byte.UBOOT_KEY -07a25a n fm1_fault.L -07a290 n AF_M -07a2bc n AF_S -07a2e8 n AF_M_DATA -07ac94 n AF_M_KI -07ad26 n AF_M_KP -07b084 n AF_M_EX -07b08d n AF_S_DATA -07b6a8 n AF_S_KI -07b73a n AF_S_KP -07b8d8 n AF_S_EX -07b8e4 n persist_saved -07bb20 n st_crc32_add.T -07bb60 n UI_PAL_STORED -07bb67 n UI_PAL_READ -07bb73 n UI_PALETTE_MIGRATE -07bb87 n FM6_INIT -07bc07 n clay_v2_def -07bc25 n EV_AB -07bc41 n CP_TRIGS -07bc59 n CP_WRATES -07bc65 n mx_defaults.D -07bc71 n CLAY_EU_OLD -07bc8a n TRK_OLD -07bc9c n UI_PALETTES -07bd60 n UI_KNOBS -07bd98 n ux_mix.MK -07bd9b n LCD_SEQ -07bdaf n SIG_PTS -07c024 n TRK_COL -07c030 n SPL_E -07c048 n heat_col.H -07c058 n SPLASH_LINES -07c060 n smk_trim_defaults.P -07c06a n smk_trim_defaults.K -07c074 n fm6_max.OPMAX -07c089 n fm6_max.VMAX -07c09c n TRK_DEF -07c0ae n init_sound_of.ENVP -07c0b4 n FM6_FACTORY_Z -07c315 n DX_KITS -07c7f8 n B_NAME -07c830 n E_NAME -07c84c n AF_L -07c878 n AF_L_DATA -07d142 n AF_L_KI -07d196 n AF_L_KP -07d1a6 n AF_L_EX -07d1ce n macro_dice.DST -07d1df n ED_TIDS -07d1e4 n PAGES -07d718 n CHAINS -07d7b4 n NAV_DEF -07d7c4 n CE_HOME -07d848 n CG_HOME -07d868 n CE_SYN -07d8e0 n CG_SYN -07d900 n CE_SEQ -07d9d8 n CG_SEQ -07da18 n CE_FX -07dafc n CG_FX -07db3c n CE_GLO -07db84 n CG_GLO -07db94 n CE_ENV -07dbb8 n CG_ENV -07dbc0 n CE_LFO -07dc08 n CG_LFO -07dc20 n CE_SCL -07dc50 n CG_SCL -07dc70 n CE_ARP -07dc88 n CG_ARP -07dc90 n CE_SAVE -07dccc n CG_SAVE -07dce4 n CE_FM6 -07dd50 n CG_FM6 -07dd70 n CE_DRM -07dddc n CG_DRM -07ddf4 n SEC_FAM -07ddfe n ED_BK_IDS -07de21 n ED_MENU -07de64 n MTAB_NAME -07de74 n MI_NAME -07df00 n MI_TAB -07df24 n VEL_ROW -07df78 n MENU_FLAGS -07dfd8 n SCOPEOPT_N -07dfe0 n SPK_EQ -07dfec n USBLVL_N -07e004 n USBOUT_N -07e01c n HOLD_N -07e02c n CLICK_N -07e038 n CLKLVL_N -07e044 n COUNTIN_N -07e050 n MIDIOUT_N -07e060 n OCTBEND_N -07e080 n SCROFF_N -07e094 n LEDS_NAME -07e0a4 n USB_GAIN -07e0ae n SCR_CODE -07e0b4 n desc_unit.U -07e0c4 n FAM_BTN -07e0db n SMK_PK_GRID -07e0ec n smk_tgt_say.NM -07e104 n SMK_PAGES -07e16c n ENGINE_PC_ORDER -07e178 n ENGINE_ORDER -07e184 n MATH_ORDER -07e190 n ANIMAL_ORDER -07e1ad n ANALOG_ORDER -07e1c7 n VOICE_ORDER -07e1d6 n STRING_ORDER -07e1e6 n ADD_ORDER -07e1f6 n PHASE_ORDER -07e206 n WEST_ORDER -07e21a n FM6_ORDER -07e229 n WHEEL_ORDER -07e233 n LOFI_PC -07e248 n LAYERS -07e368 n pk_row.R -07e36e n PD_MD -07e38c n fx_trk_k.FX_TRK -07e398 n FX_MHEAD -07e3b0 n FX_MN -07e3b6 n LANE_G_HOME -07e3bd n GENOME -07e3fc n DIV_ORDER -07e406 n SLDIV_ORDER -07e40c n DTIME_ORDER -07e44f n SEMI_OK -07e458 n drum_lane_name.N -07e478 n tl_fill.E -07e493 n PK_SH -07e4ff n PK_MD -07e514 n pk_name.BN -07e528 n PF_NAME -07e564 n PD_NM -07e684 n LY_SCL -07e690 n LY_SEQ -07e69c n BP_P -07e777 n BP_O -07e788 n ABOUT_PROJECT_PACK -07e87a n ABOUT_CREDITS_PACK -07eb60 n ABOUT_QR -07ebd4 n ABOUT_PAIRS -07ec90 n mc_status.LOST -07eca0 n NM_ABC -07ece0 n sc_key.MD -07ece6 n sc_key.MW -07ecec n drum_oct_label.names -07ed08 n drum_oct_name.N -07ed24 n ENT_RES -07ed34 n eu_kit.KT -07ed74 n eu_mutate.MX -07ed7a n eu_melody.MT -07ed7f n eu_melody.NEAR -07ed86 n eu_key.TRY -07ed8d n eu_key.NEWS -07ed93 n gcolour.AEOL -07ed9a n GX_ARPS -07eda2 n GX_LEADS -07edaa n GSUB_MT -07edb2 n gx_prog.QW -07edbe n gx_prog.FL -07edc3 n gx_prog.FW -07edc8 n gx_prog.MV -07edce n gx_prog.MW -07edf8 n DRUM_MAP_I -07ef50 n HAT_POOL_I -07ef58 n OH_POOL_I -07ef5e n RS_POOL_I -07ef66 n CB_POOL_I -07ef6c n TM_POOL_I -07ef72 n GM_LANE_Z -07f219 n BA_STEP_Z -07f417 n gen_acid.W -07f41e n gen_pads.AT -07f424 n gen_pads.CP -07f42a n gen_pads.BR -07f430 n gen_lead.W -07f435 n gen_lead.TPL -07f44d n gen_lead.ARCH -07f465 n gen_lead.W.1782 -07f46f n gl_cad.FULL -07f472 n gl_cad.HALF -07f476 n TIME_MS_X10 -07f576 n SFX_NM -07f646 n lvk_keys.KR -07f649 n LVK_NM -07f6a4 n page_desc.TGAIN_DESC -07f6b4 n page_desc.GATE_DESC -07f6c4 n page_desc.CMIX_DESC -07f6d4 n page_desc.DNZ_DESC -07f6e4 n TRKS_DESC -07f6f4 n page_desc.GLUE_DESC -07f704 n page_desc.GAIN_DESC -07f714 n LOAD_DESC -07f724 n RESO_PITCH -07f734 n RESO_FOLW -07f744 n REV_AIR -07f754 n REV_PRE -07f764 n AP_BEAT -07f774 n N_TRKS -07f77c n MX_DESC -07f7bc n LFO_MODE_DESC -07f7cc n LFO_PHASE_DESC -07f7dc n N_MXM -07f7ec n N_LMODE -07f7f4 n N_RFOLW -07f810 n eu_desc.LN -07f834 n eu_desc.MD -07f854 n eu_desc.CT -07f870 n eu_desc.MO -07f884 n eu_desc.RO -07f894 n sc_desc.ONOFF -07f8b8 n sc_desc.TN -07f8d0 n sc_desc.KR -07f8d8 n SC_ROLE -07f8f0 n SC_PN -07f950 n clay_desc.BASE -07f9a8 n clay_desc.EN -07f9c8 n CL_MODN -07f9dc n CL_ONN -07f9e8 n CLAY_RESN -07fa54 n CL_RUNN -07fa68 n CLAY_SHN -07fb48 n CLAY_EU -07fbb4 n N_APDIV -07fbd4 n LIFE_DESC -07fc14 n FG_ORD -07fc20 n TL_SC -07fc26 n CP_RATE_ORD -07fc2c n FO_PAGE -07fc38 n FO_OFF -07fc42 n clay_defaults.D -07fc60 n MX_DST_FULL -07fcf0 n MX_SRC_FULL -07fd58 n UI_OFF -07fd5b n UI_ON -07fd5e n SCR_MIN -07fd64 n ui_draw_page.R -07fd7c n KC -07fe5c n KC_DATA -080776 n KC_HC -0807ac n AF_X -0807d8 n ROLL_EASE -0807ec n layer_head.H -080810 n draw_menu.KH -080820 n AF_V -08084c n AF_V_DATA -080c61 n AF_V_EX -080c70 n CARD_ICO_OF -080d68 n CARD_ICO -080dca n menu_short.SH -080e56 n name_draw.R -080e90 n dlg_tabs.DN -080e9c n nm_draw_panel.FN -080eb0 n GLO_GROUP -080ec0 n PK_BLK -080ecb n B_NOTE -080ed8 n TL_NAME -080f08 n pke_cards_bt.TG -080f2c n PK_TM -080f64 n param_format.SEMI -080f74 n LFO_HZ_X100 -081074 n N_LSYNC -0810ac n CUTOFF_HZ -0811ac n N_NOTE -0811dc n ly_fx_cells.BK -0811e8 n track_col6.SN -0811f4 n vx_swarm.SRC -081200 n VA_MID -081206 n vx_animal.SC -08120c n vx_animal.HT -081212 n vx_analog.SC -081218 n vx_phase.C2 -081228 n graph_adsr.L4 -081238 n RN7 -081254 n NN12 -081290 n ECO_PX -08129c n ECO_PY -0812a8 n eco_being.SC -0812ae n graph_euclid.EV -0812d0 n graph_lz_tools.WHAT -0812e8 n graph_lz_tools.ON -081300 n eng_abbr.A -081388 n FX_MOD -0813a0 n fxg_sends.N -0813b0 n graph_filter_lz.FX -0813bc n KT_N -0813cc n graph_key.BX -0813d4 n SCL_LONG -081414 n graph_chord.WK -08141b n graph_chord.BK -081420 n graph_chord.BX -081425 n chord_label.LQ -08149d n chord_label.SQ -0814e8 n chord_ivl.IV -08150c n graph_arp.TRI -081510 n graph_system.LD -08151c n graph_morph.WHAT -081530 n vx_fm6_page.A -081540 n vx_fm6env.A -081550 n LANE_G -081588 n graph_sing.VREF -08158d n PH_NAME -081618 n JAM_Q_N -081630 n N_FGRATE -081660 n N_FGDIR -081670 n draw_columns.SC -081684 n draw_columns.AC -08169c n draw_columns.labels -0816bc n GRID_HIT -0816dc n draw_columns.TIME_N -0816e8 n draw_columns.FLAG_N -0816f8 n draw_columns.BUS_CARD -081708 n sw_ui_cards_bt.LB -081720 n dx_cards.BUS -081730 n dx_cards.RT -081754 n dx_cards.SH -081768 n DX_LANE_ABBR -081788 n dx_cards.PM -081798 n dx_cards.W -0817a8 n dx_cards.F -0817b8 n CA_NAMES -0817fc n CC_NAMES -081830 n comp_vname.ORD -081840 n comp_vname.DEC -08184c n comp_vname.HIT -081858 n comp_vname.DB -081878 n comp_vname.SB -081898 n comp_vname.CRV -0818b0 n comp_vname.FR -0818c8 n rate_name.BASE -0818d4 n TG_ROLE -0818e4 n fop_card.STG -0818f4 n fop_card.HZ -081918 n FAM_CRUMB -081944 n foot_crumbs.LN -081968 n SEC_NAME -081990 n act_name.UP_GO -08199c n act_name.actions -0819b4 n draw_confirm.PART -079fa4 c sw_timbre.KR -079fa8 c DXO_VEL -079fac c DXO_DEC -079fb0 c DXO_TON -079fb4 c NRPN_CC -079fb8 c DXO_RAT -079fbc c CP_DEGS -079fe4 c SW_FAM -079ff4 c FM6_AMSENS -07a004 c pfx_fire.FILL -07a014 c MIDI_CC_ENG -07a024 c cl_spawn.PITCH -07a034 c SMK_ENCC -07a184 c lofi_float.R -07a18c c lofi_float.H -07a194 c DXG_LANE -07a19c c DX_RATIO -07a1a4 c FM6_PMS -07a1ac c pfx_note.R -07a1b4 c DRUM_LANE_NOTE -07a1bc c fill_apply.UP -07a1c4 c GFX_ID -07a1cc c SW_WT -07a1d4 c SW_WF -07a1dc c dx_img_pan.F -07a1e4 c voice_block.VP -07a1ec c AP_SIXT -07a1f4 c rev_room_mod.RV_BH -07a1fc c SMK_PADMUX -07a2e0 c BYTE_T0 -07a300 c WEST_RATIO -07a320 c fm6_carriers.CARRIER_MASK -07a340 c AN_GROUP -07a360 c SCALE_MASK -07a380 c FVM_EU -07a3a0 c SL_PAT +0006d8 - mir_frame +0007ac - scr_tap +00091e - scr_rows +000a18 - lcd_data +000a4c - lcd_window +000aa0 - lcd_fill +000b4c - lcd_blit +000b9e - scr_out +000d08 - scr_fill +000d34 - fold +000d4e - glyph_at +000d88 - kern +000dd6 - glyph +000e1a - font_advance +000e32 - text_w +000e78 - cv_begin +000eda - ag +000f24 - cv_alpha_hc +0011d4 - text_run +0013ea - text_ink +001404 - ink_in +001420 - ramp +001520 - cv_txt_note +001580 - cv_text_flags +0015ce - cv_text +0015ea - dc_touch +001626 - scr_blit +001652 - cv_blit +00167e - draw_text_line +0016d4 @ str_cpy +0016fc - str_len +00170a - hexs +001730 - crash_code +00178a - fault_tail +0018fc - fm1_fault_c +001d0a @ memset +001d16 a memcpy +001d26 - memcmp +001d40 @ sw_heard +002090 - bt_air_tap +0020b4 @ voice_held +0020d6 a voice_kill +0020f2 a trk_vmode +002110 a lowest_held +002160 a voice_core_drum +002176 a shed_voice +002286 a uac_collect +00237e a uac_render_start +0025d4 a uac_in_fill +0027a0 a beat_samples +0027d0 a div_samples +002804 a smk_mo_len +00288c a midi_out_event_at +0029a8 a midi_out_event +0029ae a mo_send +0029c0 a mono_remove +0029f4 a trk_nvoice +002a4a a mono_pick +002a8c a eng_voice_weight +002abc a load_cost_q8 +002b3c a load_take +002b4e a load_admit +002bee a vh_pred +002c32 a voices_load +002c68 a voice_cap0 +002c94 a voice_cap +002cb4 a drum_lane_of +002d14 a kit_faded +002d48 a quiet_tail_lv +002de0 a voice_lvl +002df4 a voice_victim +002ed6 a voice_room +002f7e a noise32 +002f92 a glide_sung +002fe4 a trk_trans +00300c a glide_set +003060 a voice_start +0031b8 a drum_fx_id +0031d4 a drum_chrom +0031dc a drum_gm_ix +0031f8 a drum_lane +00320c a drum_note_lane +003258 a voice_begin +003388 a glide_from_trk +0033ac a mono_play +0035a2 a voice_off_at +00361e a trk_note_off +003702 a seq_note_off +003750 a pfx_hush +00377c a dx_lane_muted +0037ae a drum_muted_t +0037ba a mo_plays +00380c a vel_note +003838 a voices_busy +00386c a trk_note_on +004218 a seq_note_on +00431e a pfx_fire +00447e a pfx_block +004a9a a vpol_scan +004b30 a voice_soft +004e0c a mo_clock_on +004e34 a rec_on +004eb4 a live_swap +004f02 a fit_step_samples +004fa6 a step_samples +004ff2 a seq_src +00501e a st_micro +005030 a rec_len +005070 a rec_end +0051aa a rec_release +005204 a arp_chord_off +005236 a arp_off +00527a a seq_release +0052de a fg_release +005304 a fg_reset +005356 a mo_flush_of +005398 a gl_step_at +0053d4 a srec_stop +005442 a motion_guard +00544a a motion_restore +0054ec a seq_stop +0055f2 a preview_owns +00563c a preview_end +0056a8 a step_lanes_of +00571c a tvel +005736 a preview_block +00599c a kx_route +0059e0 a kx_shape +005a20 a kx_block +005c7e a trk_all_off +005cbc a mo_koff +005d0c a latch_release +005d58 a arp_silence +005d84 a mn_get +005da8 a midi_mapped +005df0 a mn_set +005e24 a midi_forget_track +005eae a midi_silence_track +005f5e a panic_block +0060a4 a track_desc +006186 a mo_knobs +006288 a mo_block +006394 a click_beat_len +0063a0 a motion_begin +0063dc a as_mix +0063f2 a param_kept +006426 a snd_sig +0064a0 a snd_own +0064e0 a dx_mute_set +0064f4 a sec_apply +00673c a row_var +00676a a chain_apply +006890 a seq_start +006a06 a cin_block +006a72 a mck_reset +006a82 a midi_clock_transport +006af0 a cin_begin +006b22 a midi_channel +006b46 a dxo_off +006c3e a drum_oct_of +006c70 a drum_oct_base +006c82 a midi_local_held +006cdc a midi_note_held +006d50 a input_off +006e04 a midi_release +006eda a midi_expression +006f26 a midi_route_ch14 +006f9c a trk_fade_out +006ffe a name_of +007038 a drum_oct_note +0070a0 a key_off +0071e0 a smk_sus_end +00723c a scale_mask +00725c a scale_snap +007290 a kb_map +0073a0 a scale_steps +007410 a clay_strike +007534 a clay_kb +007618 a chord_pick +007644 a chord_build_mode +0079e6 a st_micro_set +007a08 a step_lm_raw +007a2a a step_ratchet +007a34 a rec_repeats +007ade a step_set_lmode +007b16 a rec_drum +007c70 a rec_note_at +008014 a rec_note +008050 a cin_keep +008116 a input_on +0081f4 a dxo_part +00823a a dxo_on +008474 a mo_key +00849a a mo_kon +0084e0 a key_next +008622 a key_on +00880c a ml_free_cc +008848 a ml_map +008860 a param_desc_of +008884 a motion_param +0088e8 a motion_desc +008902 a param_fit +00892c a motion_at +00893a a motion_put +008a44 a motion_set_event +008a54 a motion_capture +008bc0 a midi_val_set +008bfa a midi_cc_set +008c24 a midi_learned +008cb6 a split_track +008cce a midi_track +008cf6 a midi_targets +008d4a a split_cut +008d68 a split_oct +008d76 a midi_note_event +008f34 a midi_expression_channel +008f66 a midi_pedal_up +008f8a a nrpn_g_ok +008fbe a motion_djf_set +00903e a midi_nrpn +0090d8 a midi_cc_map +00914e a midi_control +0092fe a mod_midi +009334 a midi_event +00946e a smk_send +0094dc a smk_kb_block +0099c8 a key_black +0099e4 a key_place +009a12 a midi_clock_pulse +009bfe a lv_neutral +009c2a a fg_next +009c9c a live_heads +009d8a a live_q +00a030 a trk_kit +00a064 a shift_step_pass +00a0d2 a seq_due +00a222 a rec_hold +00a2ba a rng +00a2d2 a live_next +00a3b2 a live_adv +00a4fc a shift_cond +00a566 a shift_prepare_pass +00a718 a shift_ahead +00a75c a jam_in +00a7c2 a jam_step +00a8fa a dxp_choke +00a936 a dxp_step +00a970 a dxp_fire +00acbe a dxo_rec_hold +00ae26 a hc_run +00b050 a seq_unit +00b094 a fill_apply +00b1a2 a comp_run +00b8f8 a step_chance +00b908 a trk_chance +00b934 a step_rolls +00b9c2 a motion_unlock +00baae a motion_lin +00bac8 a motion_step +00bd2a a arp_owner +00bd86 a step_parts +00bdf4 a chord_auto +00be28 a cp_order +00be82 a lm_hits +00bea0 a lm_once +00bec8 a cg_near +00bf46 a hum_pm +00bf70 a step_lmode +00bf7e a glide_q8 +00bf98 a seq_step +00d3d4 a seq_ratchet +00d488 a seq_lane_rat +00d5f6 a fg_play +00d782 a fugue_tick +00d8ee a dxo_hit +00d912 a dxo_tick +00db20 a cin_record +00dbc8 a arp_pick +00dcf4 a arp_chord +00ddae a ain_follow +00de70 a kx_src +00debc a drift_noise +00df22 a mod_tsrc +00e02c a life_block +00e1c0 a macro_master +00e582 a clay_step +00e5dc a umul64 +00e5e2 a form_fexp +00e614 a form_isqrt +00e63e a clay_tick +00f58c a dx_mot_block +00f69e a master_begin +00f718 a dx_fall +00f76e a duck_block +00f83e a perf_avail +00f866 a perf_unhush +00f8ae a mc_split +00fb50 a mul64_sh15 +00fb5a a rev_state_clear +00fbf4 a rev_line_clear +00fc1e a fx_glide +00fc50 a tone_set +00fcfe a db_block +00fdcc a delay_zero +00fe62 a cho_lfo +00fefc a sp_chain +00ff34 a spring_block +00ffe0 a reso_block +010262 a cl_spawn +010438 a cl_age +01046c a room_mod_clock +0104f6 a room_zero +010536 a fx_gate +0106e2 a ms_tick +010744 a mod_voice_add +0107c6 a mod_track_desc +01080e a clay_off +010882 a clay_mod +010a86 a mod_begin +010e0c a lfo_wave +010ebc a drum_side_begin +0111be a mul64 +0111c4 a mod_voice +011340 a kt_cut +011386 a voice_half +011562 a voice_block +011c7a a voice_start_rec +011d80 a drum_glue +011fd0 a drum_bus +012254 a drum_env +012402 a track_comb +01277a a kt_res +0127f8 a tf_sides +01292c a tf_run +012db8 a track_filter +012f80 a track_post +012fc6 a mod_end +013008 a autopan +01316c a slicer_on +01319a a stem_pre +0131ac a duck_ramp +0131d4 a mulq16 +0131e2 a perf_hush_end +013216 a perf_mute +013284 a drum_mix +013490 a stem_post +0134b4 a uin_mix +0135a6 a mc_join +013640 a mc_lost +013698 a fx_trip +013794 a pfx_end +013822 a slicer_fx +013842 a sl_pattern +01385e a sl_enter +013ae6 a sl_seg_tr +013e1c a slicer_bus_tr +013e74 a stem_fx_block +013fc6 a stem_slicer_bus +014082 a djf_coef +01412e a mac2_64 +01413a a djf_block +0145f8 a clip_block +0146d2 a lev_block +0147da a perf_len +0147f8 a perf_drop_slicer +01480a a perf_buf_start +014932 a perf_switch +0149f4 a pb_loop +014ad8 a perf_str +014c6a a pb_ring_f +014cb6 a perf_rtp +014f3e a perf_buf_done +014f70 a perf_buf +015150 a master_out +015406 a uac_tap8 +0155b4 a uac_tap48 +015696 a uac_tap +015742 a usb_fixed_dac +015762 a click_render +015866 a uac_render_end +015916 a load_half +015a16 a shed_check +015ac2 a fm1_alnk0_irq +015cb6 a smk_curve +015cf0 a smk__padq_ui +015d2e a smk__padq +015da0 a smk__pad +015e9c a smk__key_event +015f3c a smk__strike +015fb2 a sie_wr +016006 a sie_rd +016060 a uac_squeeze +016152 a ep4_fill +0163c0 a ep4_tx +0163fe a uin_take +016480 a uin_rx +0164da a uac_stream +01650c a uac_rate_set +016546 a uin_stream +01658c a e0_chunk +016628 a e0_send +016666 a uac_ep4_reset +016692 a uin_ep_config +0166c4 a midi_enqueue +016724 a fm1_timer5_irq +017b44 - fm1_p33_read +017b88 - fm1_enter_uboot +017c22 - boot_lz4 +017cb2 - fm1_power_field +017d02 - fm1_guard_enable +017df4 - fm1_mc_park +017e54 - irq_save +017e5a - fl_far +017e64 - ux_mix +017eb6 - palette_set +017f1a - fav_rows_new +017f54 - usb_replug +017f8c - usb_serial_apply +018056 - og_neutral +018072 - og_plot +018118 - spl_disc +0181d4 - spl_seg +018234 - cv_text_on +018248 - cv_text_in +018274 - spl_lines +0182c4 - spl_threads +018426 - heat_col +018466 - splash_at +018604 - hex8 +01862c - crash_log_put +0186b6 - cpu_after +0186c6 - cpu_boot +01879c - dbg_boot +0187ea - cpu_clock +01891a - chain_valid +01894c - chain_defaults +01896a - mx_defaults +0189ae @ ly_char +0189cc a ly_word +018a24 a sy_norm +018a70 a sy_isv +018a92 a sy_es_tok +018c68 a sy_word +0199c4 - sy_entry +019a34 - fm6_max +019a64 - fm6_sanitize +019a9e - fm6_unpack +019ba4 - fm6_set_patch +019bf0 - chain_busy +019c12 - motion_rebase +019c72 - motion_clear +019d1c - motion_reset +019d20 - step_clear +019d52 - track_defaults_steps +019dc8 @ motion_enabled +019dea - motion_set_enabled +019e28 - load_begin +019eca - eng_gone +019ee4 - tsel_p +019efe - gz_get +019f20 - fm6_adopt +019fda - fm4_apply +01a036 - motion_count +01a086 - load_end +01a17e - fm4_load_preset +01a204 - trk_eng +01a20e - trk_engp +01a220 - fm6_bank_slot +01a22a - fm6_load_slot +01a2a0 - apply_preset_to +01a4ae - set_engine_of +01a514 - vel_at_route +01a54a - init_sound_of +01a614 - dx_kit_load +01a6cc - steps_sig +01a6de - fm1_adc_read +01a732 - master_lvl +01a796 - fm1_delay_ms +01a7b0 - usb_start +01a866 - fm1_guard_lock_top +01a8a4 - draw_text_box +01a8d0 - fm1_input_edges +01a8e6 - setup_show +01a916 - fm1_enc_take +01a932 - ui_say +01a988 - ui_message +01a992 - panel_setup +01aba4 - fm1_mc_barred +01abc0 - mod_dst_ok +01acdc - mod_dst_offer +01ad3e - master_poll +01ad7a - boot_splash +01add2 - bt_get +01adf2 - bt_set +01ae3a - cpu_off +01ae5a - cpu_lost +01ae72 - usb_detach +01ae9a - ed_eng +01ae9e - ed_room +01aeba - ed_val +01aeda - ed_step_sig +01af3a - ed_shadow +01afe2 - ed_begin +01b006 - ed_b +01b026 - ed_send +01b042 - lens_on +01b074 - save_on +01b0a6 - fx_on +01b0d8 - pd_of_fam +01b10c - pd_on +01b146 - dlg_on +01b162 - gen_on +01b176 - name_on +01b186 - lz_on +01b1fc - pd_cur +01b216 - lz_fam +01b26a - song_pg +01b28a - sec_of_fam +01b2b2 - nav_sec +01b2e8 - nav_key +01b314 - nav_mem +01b32e - gen_page +01b33e - nav_ch +01b352 - str_eq +01b372 - eng_ok +01b390 - trackgen_ok +01b3ae - page_visible +01b5c2 - nv_page +01b640 - nav_mem_put +01b658 - nav_cur +01b816 - nav_page_name +01b8fc - ed_perf +01bb0a - ed_v +01bb32 - ota_frame_get +01bb5a - ed_lm_ok +01bb72 - ed_args_ok +01bd04 - ed_u28 +01bd1e - ed_ui_state +01bd7e - ed_str +01bda8 - ed_rv +01bdb6 - favorite_has +01bdfe - up_rec +01be1c - up_valid +01be7a - up_used +01be98 - favorite_set +01bf12 - seq_counting +01bf24 - transport_busy +01bf5a - ed_flash_stop +01bfae - mom_base +01bfe0 - motion_djf_value +01bffc @ fit_valid +01c00a - fm6_pack +01c122 - motion_base_value +01c17c - proj_mx_put +01c1b2 - clay_pack +01c1f0 - proj_master_put +01c356 - proj_hash +01c374 - proj_sum +01c37c - project_capture +01c690 - proj_split_ok +01c6f0 - motion_valid +01c796 - dx_kit_ok +01c7d6 - proj_sc_used +01c7fa - proj_djf_events +01c838 - proj_mf_tracks +01c86e - proj_bits +01c884 - proj_gl_used +01c8ae - proj_tp +01c93e - proj_eq +01c9e4 - proj_fg_used +01ca18 - proj_lyr_len +01ca30 - proj_fm_kept +01ca6e - param_store_def +01ca80 - proj_pdef +01ca84 - step_lm_any +01ca94 - proj_step_empty +01cae6 @ comp_any +01cafc - proj_step_x +01cbba - proj_mx_custom +01cc22 - proj_packed_size +01cf34 - proj_name_get +01cf6c - proj_pack +01db28 - proj_ok +01db76 - params_by_count +01dbb0 - step_set_ratchet +01dbd6 - cm_one +01df54 - comp_migrate +01e07e - proj_unpack_c +01f254 - proj_engines_ok +01f272 - proj_ap_clear +01f294 - proj_fm4 +01f2ce - west_from_noise +01f316 - proj_phys_gone +01f392 - proj_import +01f4e2 - project_used +01f4fa - upf_valid +01f51c - ed_bk_song_obj +01f52a - st_sector +01f5bc - st_read +01f602 - st_crc32_add +01f62e - st_crc32 +01f63e - st_head +01f6aa - st_body +01f6e0 - st_current +01f766 - proj_store_len +01f78c - ed_bk_object +01f892 - ed_bk_u32 +01f8ac - ed_bk_r32 +01f8c8 - proj_steps +01f914 - proj_bound +01f9a2 - dx_take +01fa02 @ sy_tok +01fa7a - lyr_set +01fb9a - lfo_fade_restart +01fbb8 - project_restore_runtime +0202f0 - upf_empty +020316 - ed_bk_commit +0205da - ed_bk_write +02083c - upf_fm6 +020858 - upf_tag +02087e - upf_pk_get +0208b4 - upf_get +020904 - fm6_neutral +020932 - upf_pk_put +02097e - upf_set +0209da - ed_fm6_handle +020cf6 - vel_row +020d12 - menu_n +020d7a - menu_flag +020d96 - scr_get +020db6 - rp_get +020dee - cpu_get +020e10 - menu_get +020fc4 - menu_vname +02119a - rp_apply +021214 - rp_put +02125c - load_put +021278 - cpu_put +0212c6 - seg_missing +0212ec - bt_start +02131c - menu_put +0215ec - motion_delete_event +021684 - motion_set_lock +021694 - motion_clear_locks +021732 - ed_tdesc +021736 - ed_desc +02177a - ed_load_before +0217e2 - set_engine +0217f2 - ed_load_after +02184a - ml_name +0218c8 - ml_used +0218dc - ml_code +0218e8 - fmt_fix +021954 - fmt_int +02195a - ml_knob +021a32 - mo_knob +021aac - knob_cap +021ada - excite_turn +021be6 - desc_unit +021bfa - mod_dst_scope +021c38 - mod_dst_name +021cf0 - step_set_chance +021d00 - ed_step_put +021dae - ed_step_reply +021e28 - drum_elsewhere +021e5e - apply_preset +021ea6 - proj_err +021ee6 - proj_name_pack +021f40 - project_save_as +021fba - project_load +021ffe - up_value +022016 - up_values +022098 - up_grid +0220ae - up_name_ok +0220d4 - up_set_value +0220ec - up_pat_norm +02210c - up_migrate +0221a6 - up_parse +02232e - up_put +0223d2 - eng_live +0223f2 - up_slot_label +022416 - up_auto_name +02246c - up_set_name +0224a8 - step_accents_of +0224c0 - up_store +0226b4 - up_load +0228ac - page_flash +0228cc - track_select +022920 - ed_known +02297c - row_src +0229b8 - song_stage +0230de - chain_prepare_at +0231bc - ed_handle +024a40 - ota_frame_done +024a4e - ed_service +024db4 - smk_bank_say +024e0a - step_to_grid +024e7e - grid_own +024edc - grid_hit +024f6e - smk_step_release +025028 - smk_steps_off +025068 - smk_step_full +0250bc - cur_page +0250de - ui_preview_ok +025132 - ui_preview +025176 - cursor_set +0251b4 - panel_enc +0251e0 - lock_page_ok +025224 - lock_id +025278 - accel +025334 - motion_lock_get +02539e - enum_order +0253d8 - enum_rank +025436 - fm6_slot_ok +02544a - enum_skip +02546a - param_turn +0255de - lock_turn +0256aa - sc_beat +02588c - mom_ptr +0258be - mom_finish +0258f4 - mom_poll +0259b4 - section_load +025a62 - chain_cut +025ac0 - section_jump +025b70 - st_load +025bb2 - jam_load +025c12 - project_name +025c4c - song_name +025c80 - song_select +025d9a - eng_vis +025db2 - preset_order +025e7e - preset_rank +025ea8 - user_of +025ec8 - preset_all_pos +025f6c - pc_shown +025f96 - preset_all_at_in +026034 - ml_put +026052 - ml_poll +026182 - seq_is_empty +02619e - scr_wake +0261bc - btn_hold +026220 - ly_bit +02623e - ly_avail +02627a - layer_allowed +0262a6 - ly_down +0262c2 - layer_held +0262e6 - layer_opened +0262f6 - pk_row +026324 - pke_load +026374 - pk_load +026416 - pke_oct +026548 - act_cols +0265de - layer_open +026630 - layer_set_open +026666 - fx_macro_back +026690 - section_store +02672e - act_col +02676e - motion_rows +0267fe - ev_rows +026812 - ev_row +026822 - ev_id_ok +026892 - jam_len +0268ba - nav_lv +0268d4 - save_level +0268d8 - act_ready +026af0 - confirm_open +026b0c - kx_frame +026bd2 - pk_per +026c00 @ sine_i +026c28 - pk_shape +026cd8 - nv_ok +026d0c - go_home +026d32 - fx_trk_k +026d66 - fx_page +026d90 - fx_mod_of +026dd8 - ev_len +026dee - motion_find +026e48 - ev_id_step +026e82 - ev_fix +026ed8 - page_entered +026f9e - nav_go +0270da - undo_mark +0270fc - dk_genome +027126 - ratio_d +02715e - bg_feat +027354 - dk_feat +02738a - dk_vis_take +0273b2 - dice_by +0273dc - part_dice +0276dc - btn_used +02770c - nav_list +0277ba - nav_select +02784a - list_get +027874 - preset_all_at +02787e - preset_in +0278d0 - preset_pos +02792c - preset_at +02797e - select_engine +0279b0 - up_has_pat +0279da - up_pat_rank +0279fe - preset_go +027a96 - grid_on +027ad2 - live_rec_sel +027b10 - lock_held +027bd2 - home_level +027bf0 - home_set +027c0c - home_life +027c34 - home_param +027c7e - page_desc_v +027db6 - eu_kit +027e48 - eu_anchor +027e84 - eu_from_src +027f14 - eu_take +028094 - eu_of +0280e6 - page_desc +0289f0 - mom_vp +028b0c - mom_keep +028b96 - eu_every +028bec - comp_slot +028c1a - comp_type +028c32 - comp_arg +028c46 - comp_view +028c7c @ motion_lock_at +028ccc - cond_idx +028cfa - cond_at +028d40 - comp_knob +02913e - dx_pagen +029160 - dx_send_ix +029186 - dx_knob +0294b0 @ sw_sv +0294da - focus_named +02950e - focus_k +029538 - focus_slot +029566 - focus_knob +0296ea - ev_busy +029704 - motion_move +029802 - ev_follow +029830 - ev_knob +029a14 - jam_end +029a32 - take_busy +029a68 - jam_sort +029ab2 - take_pick +029ae2 - song_end_row +029afa - song_idx_touch +029b16 - note_len +029b44 - note_drop +029b72 - step_on +029b88 - len_turn +029c64 - note_edit +029fa4 - jam_cur +029fd4 - jam_switch +02a260 - grid_hit_of +02a28a - grid_hit_set +02a2be - grid_acc +02a34a - step_edit +02a630 - preset_step +02a6b8 - eng_rank +02a6da - list_turn +02a746 - split_field +02a768 - split_value +02a794 @ fit_span +02a7aa - fit_ui_edit +02a928 - fop_field +02a958 - fop_ok +02a96e - fop_byte +02a9b0 - sc_setup +02aa60 - sc_key +02aaf0 - sc_dice +02abe8 - sc_put +02aeae - eu_turns +02aeca - eu_hit +02af02 - eu_vc +02af38 - eu_rnd +02af54 - eu_ch +02af72 - eu_vary +02b132 - eu_drums +02b49e - eu_key +02b6d2 - eu_harm +02b878 - eu_up +02b8b8 - seed_fuse +02b90c - eu_deg +02b936 - eu_melody +02c216 - eu_gen +02c3aa - edit_param +02d7b2 - mom_knob +02d8d4 - undo_ui +02d9a8 - layer_let_go +02dd00 - project_recall_slot +02dd38 - edit_recallable +02dd44 - rec_set +02dd6c - rl_name +02dd84 - cp_say +02ddcc - cp_put +02def6 - cp_keys_used +02df8e - cp_copy +02e0e4 - tl_cell +02e110 - tl_order +02e1ae - tl_shift +02e1d8 - drum_lane_name +02e1e8 - tl_lane +02e200 - song_rec_toggle +02e310 - up_engine +02e31e - up_name +02e352 - project_cur_name +02e35e - name_open +02e488 - layer_key +02ede0 @ perf_def +02ee20 - pke_e +02ee3c - pke_tgt +02ee54 - pk_name +02eee6 - trk_base4 +02eefa - page_first +02ef16 - ly_page +02ef30 - keys_pg +02ef68 - ckeys_on +02ef6e - skeys_on +02ef8a - keys_mode +02efaa - menu_close +02f046 - name_close +02f062 - cp_held +02f130 - rec_tap +02f296 - enc_drop +02f2a8 - cv_text_r +02f2d8 - cv_rect +02f33e - about_byte +02f36a - menu_text +02f434 - menu_lines +02f4c2 - menu_document +02fa4c - menu_scroll_max +02fa62 - menu_tab +02fa84 - mtab_first +02fa9e - menu_set +02fab8 - mtab_rows +02fadc - menu_step +02fb36 - nm_commit +02fb4c - nm_group +02fb7a - nm_len_max +02fb8c - nm_insert +02fbe8 - nm_black +02fc20 - nm_do +02fc8e @ sy_phrase_len +02fccc a sy_rnd +02fce8 a ly_meta +02fcfe a ly_pick +02fd78 a sy_gen_word +03022e - song_save_as +030256 - up_ui_named +03038c - nav_put +0303e0 - nav_button +03048a - open_family +030496 - motion_lock_steps +0304ee - page_tap +0305ba - layer_tap +030604 - up_ui +03060a - song_erase_parts +0307a6 - row_copy +030862 - comp_legacy +03087c - song_draft_begin +030898 - sound_put +0309ea - project_recall_sound +030a6e - undo_sound +030a9c - cursor_fix +030aba - panel_btn_of +030ad6 - chain_play_ui +030b2e - rec_first +030b88 - rec_clear_auto +030dcc - oct_key +030ef2 - ent_message +030fe6 - eu_mutate +031252 - gen_sig +0312ce - gen_new_seed +0313b6 - song_poll +031a48 - gst_put +031a9a - gen_press +031cf8 - gclear +031d0a - gr +031d26 - gseed +031dd8 - gch +031df6 - grr +031e16 - gpickw +031e5a - gminor +031e72 - gcolour +031f7c - gnd +031fd2 - galt +03200c - gtone +032026 - giv +032040 - gtriad_ok +032098 - gx_prog +0322f6 - gprog_ok +0323b0 - glatin +0323da - gq_fix +032530 - gsplit +0325f6 - gplan +0328fe - gdrum_hit +032974 - gdrum_clear_region +0329aa - glm +0329ae - glane_rat +0329c8 - gidm_edit +032d78 - gkick_of +032dba - gen_drums_m +033a98 - dstep_tie +033aac - gci +033af4 - gchord +033b0c - gbass_root +033b3e - gchord_starts +033b64 - gnote +033bda - gen_acid +033e0e - gba_vary +033f28 - gkick +033f40 - gbass_tone +033f90 - gin_mode +033fca - gpcm +034060 - gchord_at +0343de - gchord_root_pc +0343fa - dhold +034426 - gen_riff +034610 - gchord_pcs +03461c - gpc +034658 - gl_ct +034674 - gl_pal +0346a4 - gl_near +03471c - gl_add +03478a - gl_clash +0347c6 - gl_pitch +0347ce - gl_write +034cce - gl_cad +034d9e - gen_role +037b16 - trackgen_make +038b16 @ sy_norm_lang +038b96 - lyric_pick +038ce8 - lib_scan +038d20 - act_do +03921e - clip_launch +03930c - bn_set +039340 - page_go +039382 - tl_keys +0393cc - black_held +03940a - chord_peek +039416 - ent_commit +0395de - gen_knob_bt +0397dc - motion_seg +03985e - motion_thin_id +039a7a - ui_input_frame +03dd54 - gen_tick +03de0e - ui_input +03e026 - autosave_poll +03e2a2 - layer_btn +03e2c6 @ perf_slot +03e2ee a perf_key +03e312 - glo_sounding +03e34c - rec_clearable +03e36e - padled_set +03e3a0 - smk_pad_rgb +03e3d4 - lcd_power +03e3f4 - scr_holes +03e43c - kc_w +03e452 - kh_ink +03e482 - cv_keycap +03e5b0 - cv_key_hint +03e600 - head_trk +03e656 - graph_project_used +03e76c - sound_name +03e7b6 - str_hash +03e7ca - batt_shown +03e80c - head_load +03e846 - roll_note +03e94e - roll_text +03eb0e - cv_pset +03eb3c - cv_rrect +03ed4e - text_fit +03edd4 - cv_text_fit +03ee0a - head_msg +03ef30 - cv_frame +03ef7c - draw_head +03f802 - kh_w +03f826 - cv_key_row +03f8ae - foot_y +03f8be - foot_h +03f8ce - card_y +03f8de - large_kind +03f93e - card_h +03f95a - fill_around +03fa70 - nav_groups +03fb06 - nav_group_name +03fb26 - tabs_paint +03fc60 - draw_tabs +03fe1a - fmt_frac +03fe38 - heat_on +03fe54 - card_heat +03fe86 - gauge_col +03feb0 - face_has +03feda - card_line +03ff32 - ink_w +03ff4c - draw_column +040b62 - gauge_column +040b7c - menu_val +040bc2 - menu_short +040be8 - text_column +040bf8 - heat_bar +040c5a - lz_tile +040cc0 - menu_large +040cd4 - cv_clip_text +040d42 - menu_panel +04114e - fx_level +041170 - roll_view +041186 - page_title +04132a - foot_crumbs +0414de - foot_ph +041508 - steps_hash +04159c - foot_hint +041712 - foot_strip +041902 - draw_crumbs +041ade - draw_foot +041cdc - draw_menu +0425cc - draw_countin +0427ee - dlg_tabs +04280c - bg_sin +042812 - og_line_a +04290a - pl_pt +0429b4 - bg_outline +042b78 - og_line +042b8e - bg_ring +042bf0 - being_lines +042d20 - dice_side +042db6 - dlg_card +042dd8 - dlg_crumb +042e5a - dlg_button +042ee0 - draw_confirm +043468 - nm_card +0434d2 - nm_draw_panel +043864 - graph_y +043884 - graph_h +0438a0 - draw_frame +04393e - glo_drums +04395e - drum_lane_abbr +04396e - ly_keyname +043fee - val_col +04401a - hot_text_column +044034 - empty_column +04404a - macro_cards +04413a @ vcons_q6 +04415a - param_format +04446c - rec_columns +044520 - preset_favorite +04454a - card_mot_of +044586 - hot_gauge_column +0445a8 - pf_column +0445e0 - sec_col +0445f2 - unit_column +044606 - hot_unit_column +044628 - comp_columns +044c56 - motion_lock_count +044caa - draw_act_column +044d00 - trk_level +044d16 - fop_bytes +044d4e - jam_card +044dec - note_name +044e1c - draw_columns +047276 - layer_cards +0477a2 - bn_on +0477d6 @ pfx_rec_ok +047800 - pk_fill +047880 - ly_fx_cells +0479f0 - cv_text_up +047b04 - hold_banner +047bf4 - draw_layer +0481ec - strip_kind +048226 - track_col6 +0486fc - draw_tracks +048c6e - toast_on +048c9c - gen_draw_sig +048d76 - hm_now +048da8 - seq_roll_view +048de6 - bg_energy +048e8c @ sing_view +048eb6 - pr_head_step +048f30 - pr_follow_bar +048f7a - lens_strip +048fa8 - pr_geom +048fda - pr_src +04901e - pr_note +049050 - pr_follow +049220 - pr_held +049298 - graph_signature +04a5be - vx_fit +04a5d0 - vx_mt +04a5ec - vx_level +04a70c @ sing_phon +04a724 - vx_voice_target +04a9ea - vx_age +04aa68 - vh_step +04ac22 - og_sin +04ac28 - og_cos +04ac32 - vh_jaw +04ac80 - vh_xf +04ad10 - vx_bez +04ae72 - vx_col +04aee4 - vx_curve +04af60 - vh_curve +04af86 - vh_len +04afa6 - vh_along +04b076 - vx_line +04b0cc - vh_poly +04b102 - vh_line +04b11e - og_node +04b186 - vh_node +04b1c6 - vx_rnd +04b1da - vx_voice +04be00 @ drum_kit_of +04be30 - vx_fall +04be52 - vx_blob +04bf9a - vx_dot +04bff6 - vx_arc +04c070 - vx_face +04c122 - vx_bug +04c410 - vx_kit +04c9ec @ osc_sine +04ca14 - vk_heat +04ca5c @ an_mode +04ca72 - vx_uf +04cab2 - fm6_alg_of +04caf2 @ fm6_carriers +04cb02 - vx_fm_ops +04cdf6 - vx_sq +04ce16 - vx_body +04ce98 - vx_bface +04cf3a - vx_fm_bicho +04d186 - vx_text +04d1ce - vx_fm6 +04d716 - vx_draw +04e628 - cv_line +04e69a - cv_line_t +04e6c8 - scope_seg +04e706 - scope_lod +04e774 - scope_at +04e862 - graph_scope +04e886 - graph_adsr +04edf0 - graph_lfo +04f032 - graph_harm +04f36a - gen_radio +04f49e - song_len_txt +04f500 - graph_score +04f9aa - lz_sec +04f9e2 - song_bars +04fa1a - graph_proj +04fdf4 - eco_bot +04fdfe - eco_swim +04ffdc - eco_step +050292 - eco_genome +0502ca - eco_off +0502f4 - eco_ell +050362 - eco_face +0504dc - bg_excite +050554 - eco_feat +0505ba - eco_being +0506ee - og_quad_a +050776 - lz_arc +050812 - graph_home_being +050d0c @ scn_notes +050e24 - clay_lanes +050ee2 - graph_euclid +051134 - note_col +051150 - lz_note +05118a - bar_cells +051458 - pr_split +05149e - graph_grid +051712 - pr_lit +0517a0 - pr_head_col +0517c6 - pr_row_y +0517ea - pr_bars +0518e8 - comp_col +051924 - lz_comp_mark +051988 - seq_col +0519ba - pr_heads +051a60 - graph_roll +05228c @ ramp_curve +052310 - seq_overlay +052686 - graph_lz_tools +052970 - clip_dash +0529ce - jam_lanes +052be2 - lz_mini_being +052cf0 - graph_sound +052efc - graph_lz_presets +0531c4 - fx_dots +05321c @ softclip +053252 - tk_dist_y +053398 - fxg_en +0533ba - fxg_label +0533ee - fxg_dist +053636 - fxg_mod +054856 - graph_fx_lz +054c30 - graph_being_at +054ce6 - graph_sound_lz +054db6 @ ft_of +054dc4 - ed_resp +054e60 - ed_cap +054e7a - lfo_cap +054f36 - graph_lfodest +055138 - graph_key +0553f0 - chord_label +05560e - chord_ivl +055670 - graph_chord +055b64 - graph_system +055d4a @ pd_setup +055e4c - morph_tri +055e64 @ pd_wave +055f88 a osc_pulse +056016 a an_osc +0560b6 a an_morph +0560e6 - graph_morph +05645c - fop_dec +0564a4 - vx_fm6_page +056728 - vx_ring +056760 - vx_fm6env +056cee @ lofi_float +057a6a - dx_wave_draw +057af8 - vx_kit_page +057bbc - graph_colony +057dea - sing_up +057e22 - graph_sing +05835a - tk +0583a0 - toast_clear +0583f2 - dc_cell +058464 - dc_send +058520 - cv_blit_cells +058766 - panel_send +0587c0 - draw_graph +05af72 - page_flash_draw +05b112 - ui_draw_body +05b9d4 - fm1_main +05de66 - fm1_cstart +05e35a @ analog_note_on +05e37c a an_mpos +05e3cc a analog_morph +05eca4 a an_pw +05ece4 a analog_ext +05f968 a analog_render +060028 a analog_dispatch +0600b0 a analog_desc +0600ce a fm4_gone_note_on +0600d0 a fm4_gone_render +0600d2 a phase_note_on +0600ea a phase_render +06041c a lofi_note_on +060444 a lofi_sync +060492 a lofi_mut +060510 a lofi_float_render +0608d4 a lofi_byte +060e2a a lofi_byte_render +0611dc a lofi_render +06130c a lofi_desc +061360 a phys_gone_note_on +061362 a phys_gone_render +061364 a formant_note_on +0613fa a fmt_sung +061462 a fmt_ratio +0614ba a mul64_us +0614cc a fres_coef +061590 a fmt_glot +0615f8 a formant_word_render +061f9c a vowel_at +062020 a formant_render +06279e a formant_amp +062804 a formant_desc +062824 a sy_voices +062912 a sy_reset +06292a a sy_take_entry +062944 a sy_word_next +062b6c a sy_seek +062c80 a ph_fric +062c94 a sy_ms +062ca2 a sy_enter +062d9a a sy_tick +0632fa a formant_block +063772 a drw_part +063790 a wheel_note_on +06384e a drw_dust +063906 a wheel_render +063ccc a drw_level +063d10 a drw_dust_pick +063d3a a wheel_block +063fa2 a str_line +063fde a pitch_inc +064002 a str_period +064044 a str_exc +0640ce a string_note_on +0642e6 a str_exp2n +064316 a str_gain +064354 a string_render +0649b2 a string_amp +0649cc a string_desc +0649ea a string_block +0649fe a string_done +064a10 a dx_choke +064a1e a drum_note_on +064c1a a dx_pow2 +064c4a a dx_hands_step +064d8c a dx_fm_env +064dda a dx_sq +064e06 a dx_fm_lim +064e46 a dx_frt_q12 +064e74 a dx_layer +06506e a dx_scrape +0650d2 a dx_run_fx +065e40 a punch_gain +065e92 a drum_side_of +065f54 a drum_side_ramp +066006 a drum_render +066480 a drum_amp +0664c4 a drum_keys +0664d8 a west_note_on +066534 a west_exp2n +066564 a west_F +0665ae a west_render +066e2a a fm6_note_of +066e72 a fm6_sync +0671e0 a vel_sound +06723a a fm6_env_advance +0672f2 a fm6_penv_advance +067348 a fm6_note_on +067626 a fm6_op_fb +0676c4 a fm6_op_run +06781a a fm6_render +067fd6 a fm6_block +0680fa a fm6_done +0681d8 a add_note_on +068230 a add_render +0686e0 a animal_init +068768 a animal_note_on +068788 a an_inc +068806 a an_exp2n +06883e a animal_render +06971c a animal_amp +069bf6 a animal_desc +069c24 a ain_note_on +069c50 a ain_fill +069f5c a ain_render +06a02a a input_desc +06a046 a ain_block +06a072 a mc_job +06aeba a tape_block +06b32c a eq_gain +06b35a a eq_block +06b4ce a scene_follow_off +06b520 a sc_track +06b696 a scene_follow +06b732 a scene_drum_tick +06b83e a perf_press +06b89c a perf_kpress +06b9d4 a pk_press +06ba6a a scene_key +06bbaa a smk_key_up +06bbda a seq_anchor +06bd5a a ramp_run +06bfac a dly_rev_set +06c018 a sw_rand +06c030 a sw_step +06c32e a sw_note +06c3aa a sw_prep +06d052 a ain_swarm +06d2da a pk_step +06d372 a mix_spread +06d448 a life_mod +06d73e a ain_thru +06d772 a track_follow_peak +06d8a8 a fx_gates +06d956 a rev_gated +06da26 a rev_spring_side +06da94 a rev_room_mod +06de08 a perf_frz +06de56 - vx_x2 +06de88 - vx_anb +06ded2 - vx_an_wave +06e38a - vx_pl +06e400 - vx_hash +06e420 - vx_analog +06e856 - vx_wheel +06ef16 - vx_poly +06ef6a - vx_wv +06f01e - vx_west +06f3e6 - vx_pd +06f4fc - vx_pdw +06f562 - vx_rs +06f578 - vx_whorl +06f62a - vx_phase +06fd02 - vx_lofi +070586 - vx_string +0708d0 r ENGINES +070910 r ENG_ANALOG +0709c8 r ENG_FM4_GONE +070a80 r ENG_PHASE +070b38 r ENG_LOFI +070bf0 r ENG_GONE +070ca8 r ENG_FORMANT +070d60 r ENG_WHEEL +070e18 r ENG_DRUM +070ed0 r ENG_WEST +070f88 r ENG_FM6 +071040 r ENG_ANIMAL +0710f8 r ENG_INPUT +0711b0 r N_ANALOG_WAVE +0711d4 r ANALOG_PRESETS +0714d8 r R_VELKEY +071658 r PITCH_OCT +071958 r SVF_G +071a58 r SINE +07225a r TANH_Q15 +07245c r AN_INT3_DESC +07246c r N_PD_WAVE +07248c r N_PD_WAVE2 +0724b0 r N_PD_LINE +0724b8 r PHASE_PRESETS +072706 r R_VELCUT +072724 r N_CHIP +072734 r N_RWAVE +072750 r LOFI_PRESETS +07292c r LOFI_MOTN +07293c r LOFI_ALGO +07294c r LOFI_FALGB +07295c r LOFI_FALGO +07296c r LOFI_FDCY +07297c r LOFI_FMRPH +07298c r N_BYTE +072a50 r N_FLOAT +072b14 r FORMANT_PRESETS +072cfe r R_ATSHP +072d34 r ENV_LIN +072f34 r VOWEL_F +072f52 r VOWEL_B +072f64 r SEMI_Q16 +072f98 r FMT_WDESC +073018 r N_THEME +07303c r N_LOOP +073054 r LOOP_N +07305c r SY_EXT_WORDS +073074 r SCAT_ES +073110 r LY_BANK +073140 r SCAT_EN +073178 r SCAT_JA +073224 r TPL_ES +073248 r TPL_EN +073268 r TPL_JA +073280 r VOCABLE +07328c r SY_EXT_WORD_0 +0732ea r SY_EXT_WORD_1 +073344 r SY_EXT_WORD_2 +0733a0 r SY_EXT_WORD_3 +0733e4 r SY_EXT_WORD_4 +073441 r SY_EXT_WORD_5 +07349e r LY_ES_TXT +073968 r LY_ES_OFF +073990 r LY_ES_META +073a2a r LY_ES_GRP +073a96 r LY_EN_TXT +073e68 r LY_EN_OFF +073e8a r LY_EN_META +073f10 r LY_EN_GRP +073f7c r LY_JA_TXT +074202 r LY_JA_OFF +074218 r LY_JA_META +07426e r LY_JA_GRP +0742da r sy_ja.JV +0742df r SY_RULES +0744a7 r sy_ext.letters +0744c2 r PHON +074748 r N_DRW_REG +074788 r N_DRW_PERC +0747a4 r N_DRW_ROTR +0747b0 r WHEEL_PRESETS +0748c8 r R_ROTOR +0748e3 r R_WDRIVE +074914 r DRW_FOLD_LIM +074938 r DRW_LV +07494c r DRW_ROT_SPD +074964 r DRW_REG +074a04 r R_PLUCKED +074aa0 r DRUM_PRESETS +074c0c r R_KIT +074c49 r DRUM_GM +074ca8 r DX_EXT_FX +074cc0 r DX_NRM +074ce2 r DX_FRT +074d14 r N_WEST_RATIO +074d94 r WEST_PRESETS +075008 r R_STRUCK +075015 r R_WFOLD +075048 r NOISE_SEQ +075108 r N_FM6_ALG +075190 r N_FM6_PATCH +075238 r FM6_PRESETS +0754b2 r fm6_sync.SPREAD +0754b8 r FM6_LFO_DELTA +075648 r FM6_LEVELLUT +07565c r FM6_EXPSCALE +07567d r FM6_VELDATA +0756c0 r FM6_STATICS +0757f4 r FM6_DETUNE +0758f4 r FM6_COARSE +075974 r FM6_FINE +075b04 r FM6_PENV_TAB +075b68 r FM6_PENV_RATE +075bcc r FM6_EXP2 +0763d0 r FM6_ALG +076548 r N_ANIMAL_MODE +07655c r N_AN_GROUP +07659c r ANIMAL_PRESETS +0768c8 r R_CALL +076a1c r LFO_INC +076c1c r AN_LW +076c2e r AN_DMAP +076c58 r AN_DESC +076d58 r N_AIN_SRC +076d6c r N_AIN_PLAY +076d8c r INPUT_PRESETS +076edc r SW_FULL +076fd4 r SW_DESC +077054 r UAC_FIR0 +077174 r UAC_FIR3S +0771a4 r UAC_FIR4 +0778c4 r SC_PAT +077914 r chord_build_mode.DIA +077928 r chord_build_mode.SST +077944 r chord_build_mode.SETS +077967 r chord_build_mode.SHP +07797f r chord_build_mode.T3 +077983 r chord_build_mode.F5 +077986 r chord_build_mode.F5M +077989 r chord_build_mode.S7 +07798c r chord_build_mode.S7D +07798e r chord_build_mode.S9 +077990 r chord_build_mode.S2 +077992 r chord_build_mode.S4 +077994 r GP +077e64 r NONE_DESC +077e74 r SIMG_DESC +077e84 r DKEYMODE_DESC +077e94 r VLANG_DESC +077ea4 r VLYR_DESC +077eb4 r VCONS_DESC +077ec4 r LOFI_RTRG +077ed4 r TRK_CHANCE +077ee4 r MORPH_DESC +077ef4 r CLEN_DESC +077f04 r DXIMG_DESC +077f14 r CHORD_DESC +077f44 r HUM_DESC +077f74 r ENV2_DESC +077fb4 r RECQ_DESC +077fc4 r DRIFT_DESC +077fd4 r TVEL_DESC +077fe4 r WROT_DESC +078004 r TP +0787b4 r N_DKEYMODE +0787dc r N_LANG +078804 r N_LYRIC +07886c r N_CLEN +078974 r N_CHRD +0789bc r N_CVOI +0789d0 r N_LWAVE6 +0789e8 r N_AMODE +078a28 r N_DIV +078a50 r N_ORDER +078a58 r N_SCALE +078a98 r N_QUANT +078aa8 r N_VOICE +078ab8 r N_GLMODE +078ac0 r N_PRIO +078acc r N_ALLOC +078ad4 r N_LWAVE +078ae8 r N_APSYNC +078af0 r N_MSRC +078b58 r N_MDST +078be8 r N_DTYPE +078c00 r N_FTYPE +078c14 r N_CLOCK +078c20 r N_DTIME +078d2c r N_MIDI_INPUT +078d34 r N_ROUTE +078d3c r N_GO +078d44 r N_ENGNAME +078d84 r N_RTYPE +078d98 r N_SLCR +078da4 r N_SLDIV +078dbc r N_SLPQ +078dc4 r N_DLYTYPE +078dd4 r N_PFXRES +078de0 r N_DRTIM +078dfc r N_HPROG +078e88 r N_HLEN +078e9c r N_HSKIP +078eb8 r PERF_KP +078ebc r PK_PRESS +078ec0 r perf_def.BK +078ec5 r kb_map.DEGREE +078ed1 r CLAY_KMAP +078eec r CLAY_KPG +078ef2 r CLAY_HIT +078f52 r MIDI_CC_MAP +078f80 r FG_DEN +078f8c r FG_NUM +078f98 r seq_anchor_fp +078f9c r RAMP_RUN +078fa0 r LV_RN +078fa9 r LV_RD +078fb2 r shift_step_pass.rest +078fca r jam_step.Q +078fd0 r DXP_TOM +078fd6 r fill_apply.DK +079016 r fill_apply.DR +079056 r CP_RATES +07905c r CT_DIVS +079062 r DIV_DEN +079068 r DLY_REV_SET +07906c r AIN_SWARM +079070 r sw_prep.SELF_ID +079078 r SW_RT +079084 r SW_SLOT +07908e r SW_XM +079098 r sw_step.SINW +0790a0 r CLAY_RES +079168 r CLAY_EUK +07919c r FORM_ARP +0791ae r clay_eval.R +0791b5 r FORM_CH +0791c9 r clay_eval.R2 +0791d0 r dx_mot_block.Q8 +0791dc r PERF_PK +0791e0 r PF_SVF +079360 r PF_DEN +079364 r LEVEL_Q12 +079464 r TRACK_FOLLOW +079468 r LIFE_MOD +07946c r mod_param.ID +079478 r CLAY_MD +07948e r life_mod.LD +079494 r AIN_THRU +079498 r track_lfo_tick.U +0794b4 r ENV_EXP +0795b4 r drum_bus.GN +0795ce r mix_spread.A +0795f2 r REV_LITE +079602 r DTIME_MS +079674 r dly_rate.RN +07967b r dly_rate.RD +079682 r HB_Q +0796a0 r GR_RATIO +079704 r semi_q16.R +07971c r SL_DEN +079724 r SL_RATIO +0797e8 r perf_buf_start.BM +079802 r CLICK_GAIN +079808 r fm1_input_tick.CH +07980b r SMK_PK_NONE +07981b r SMK_KEYC +079865 r SMK_BTNC +079877 r SMK_LEDC +07988a r ep0_service.zero2 +07988c r ep0_service.RATE +07988f r ep0_service.RATE48 +079892 r DEV_DESC_STIN +0798a4 r DEV_DESC_PLAIN8 +0798b6 r DEV_DESC_DUP +0798c8 r DEV_DESC_PLAIN +0798da r CFG_DESC_STIN +0799d3 r CFG_DESC_PLAIN8 +079a82 r CFG_DESC_DUP +079b7e r CFG_DESC_PLAIN +079c30 r STR0 +079c34 r STR1 +079c4a r STR_PROD +079c64 r sysex_byte.UBOOT_KEY +07a09a n fm1_fault.L +07a0d0 n AF_M +07a0fc n AF_S +07a128 n AF_M_DATA +07aad4 n AF_M_KI +07ab66 n AF_M_KP +07aec4 n AF_M_EX +07aecd n AF_S_DATA +07b4e8 n AF_S_KI +07b57a n AF_S_KP +07b718 n AF_S_EX +07b724 n persist_saved +07b960 n st_crc32_add.T +07b9a0 n UI_PAL_STORED +07b9a7 n UI_PAL_READ +07b9b3 n UI_PALETTE_MIGRATE +07b9c7 n FM6_INIT +07ba47 n clay_v2_def +07ba65 n EV_AB +07ba81 n CP_TRIGS +07ba99 n CP_WRATES +07baa5 n mx_defaults.D +07bab1 n CLAY_EU_OLD +07baca n TRK_OLD +07badc n UI_PALETTES +07bba0 n UI_KNOBS +07bbd8 n ux_mix.MK +07bbdb n LCD_SEQ +07bbef n SIG_PTS +07be64 n TRK_COL +07be70 n SPL_E +07be88 n heat_col.H +07be98 n SPLASH_LINES +07bea0 n smk_trim_defaults.P +07beaa n smk_trim_defaults.K +07beb4 n fm6_max.OPMAX +07bec9 n fm6_max.VMAX +07bedc n TRK_DEF +07beee n init_sound_of.ENVP +07bef4 n FM6_FACTORY_Z +07c155 n DX_KITS +07c638 n B_NAME +07c670 n E_NAME +07c68c n AF_L +07c6b8 n AF_L_DATA +07cf82 n AF_L_KI +07cfd6 n AF_L_KP +07cfe6 n AF_L_EX +07d00e n macro_dice.DST +07d01f n ED_TIDS +07d024 n PAGES +07d558 n CHAINS +07d5f4 n NAV_DEF +07d604 n CE_HOME +07d688 n CG_HOME +07d6a8 n CE_SYN +07d720 n CG_SYN +07d740 n CE_SEQ +07d818 n CG_SEQ +07d858 n CE_FX +07d93c n CG_FX +07d97c n CE_GLO +07d9c4 n CG_GLO +07d9d4 n CE_ENV +07d9f8 n CG_ENV +07da00 n CE_LFO +07da48 n CG_LFO +07da60 n CE_SCL +07da90 n CG_SCL +07dab0 n CE_ARP +07dac8 n CG_ARP +07dad0 n CE_SAVE +07db0c n CG_SAVE +07db24 n CE_FM6 +07db90 n CG_FM6 +07dbb0 n CE_DRM +07dc1c n CG_DRM +07dc34 n SEC_FAM +07dc3e n ED_BK_IDS +07dc61 n ED_MENU +07dca4 n MTAB_NAME +07dcb4 n MI_NAME +07dd40 n MI_TAB +07dd64 n VEL_ROW +07ddb8 n MENU_FLAGS +07de18 n SCOPEOPT_N +07de20 n SPK_EQ +07de2c n USBLVL_N +07de44 n USBOUT_N +07de5c n HOLD_N +07de6c n CLICK_N +07de78 n CLKLVL_N +07de84 n COUNTIN_N +07de90 n MIDIOUT_N +07dea0 n OCTBEND_N +07dec0 n SCROFF_N +07ded4 n LEDS_NAME +07dee4 n USB_GAIN +07deee n SCR_CODE +07def4 n desc_unit.U +07df04 n FAM_BTN +07df1b n SMK_PK_GRID +07df2c n SMK_FB_NM +07df3c n ENGINE_PC_ORDER +07df48 n ENGINE_ORDER +07df54 n MATH_ORDER +07df60 n ANIMAL_ORDER +07df7d n ANALOG_ORDER +07df97 n VOICE_ORDER +07dfa6 n STRING_ORDER +07dfb6 n ADD_ORDER +07dfc6 n PHASE_ORDER +07dfd6 n WEST_ORDER +07dfea n FM6_ORDER +07dff9 n WHEEL_ORDER +07e003 n LOFI_PC +07e018 n LAYERS +07e138 n pk_row.R +07e13e n PD_MD +07e15c n fx_trk_k.FX_TRK +07e168 n FX_MHEAD +07e180 n FX_MN +07e186 n LANE_G_HOME +07e18d n GENOME +07e1cc n DIV_ORDER +07e1d6 n SLDIV_ORDER +07e1dc n DTIME_ORDER +07e21f n SEMI_OK +07e228 n drum_lane_name.N +07e248 n tl_fill.E +07e263 n PK_SH +07e2cf n PK_MD +07e2e4 n pk_name.BN +07e2f8 n PF_NAME +07e334 n PD_NM +07e454 n LY_SCL +07e460 n LY_SEQ +07e46c n BP_P +07e547 n BP_O +07e558 n ABOUT_PROJECT_PACK +07e64a n ABOUT_CREDITS_PACK +07e930 n ABOUT_QR +07e9a4 n ABOUT_PAIRS +07ea60 n mc_status.LOST +07ea70 n NM_ABC +07eab0 n sc_key.MD +07eab6 n sc_key.MW +07eabc n drum_oct_label.names +07ead8 n drum_oct_name.N +07eaf4 n ENT_RES +07eb04 n eu_kit.KT +07eb44 n eu_mutate.MX +07eb4a n eu_melody.MT +07eb4f n eu_melody.NEAR +07eb56 n eu_key.TRY +07eb5d n eu_key.NEWS +07eb63 n gcolour.AEOL +07eb6a n GX_ARPS +07eb72 n GX_LEADS +07eb7a n GSUB_MT +07eb82 n gx_prog.QW +07eb8e n gx_prog.FL +07eb93 n gx_prog.FW +07eb98 n gx_prog.MV +07eb9e n gx_prog.MW +07ebc8 n DRUM_MAP_I +07ed20 n HAT_POOL_I +07ed28 n OH_POOL_I +07ed2e n RS_POOL_I +07ed36 n CB_POOL_I +07ed3c n TM_POOL_I +07ed42 n GM_LANE_Z +07efe9 n BA_STEP_Z +07f1e7 n gen_acid.W +07f1ee n gen_pads.AT +07f1f4 n gen_pads.CP +07f1fa n gen_pads.BR +07f200 n gen_lead.W +07f205 n gen_lead.TPL +07f21d n gen_lead.ARCH +07f235 n gen_lead.W.1770 +07f23f n gl_cad.FULL +07f242 n gl_cad.HALF +07f246 n TIME_MS_X10 +07f346 n SFX_NM +07f416 n lvk_keys.KR +07f419 n LVK_NM +07f474 n page_desc.TGAIN_DESC +07f484 n page_desc.GATE_DESC +07f494 n page_desc.CMIX_DESC +07f4a4 n page_desc.DNZ_DESC +07f4b4 n TRKS_DESC +07f4c4 n page_desc.GLUE_DESC +07f4d4 n page_desc.GAIN_DESC +07f4e4 n LOAD_DESC +07f4f4 n RESO_PITCH +07f504 n RESO_FOLW +07f514 n REV_AIR +07f524 n REV_PRE +07f534 n AP_BEAT +07f544 n N_TRKS +07f54c n MX_DESC +07f58c n LFO_MODE_DESC +07f59c n LFO_PHASE_DESC +07f5ac n N_MXM +07f5bc n N_LMODE +07f5c4 n N_RFOLW +07f5e0 n eu_desc.LN +07f604 n eu_desc.MD +07f624 n eu_desc.CT +07f640 n eu_desc.MO +07f654 n eu_desc.RO +07f664 n sc_desc.ONOFF +07f688 n sc_desc.TN +07f6a0 n sc_desc.KR +07f6a8 n SC_ROLE +07f6c0 n SC_PN +07f720 n clay_desc.BASE +07f778 n clay_desc.EN +07f798 n CL_MODN +07f7ac n CL_ONN +07f7b8 n CLAY_RESN +07f824 n CL_RUNN +07f838 n CLAY_SHN +07f918 n CLAY_EU +07f984 n N_APDIV +07f9a4 n LIFE_DESC +07f9e4 n FG_ORD +07f9f0 n TL_SC +07f9f6 n CP_RATE_ORD +07f9fc n FO_PAGE +07fa08 n FO_OFF +07fa12 n clay_defaults.D +07fa30 n MX_DST_FULL +07fac0 n MX_SRC_FULL +07fb28 n UI_OFF +07fb2b n UI_ON +07fb2e n SCR_MIN +07fb34 n ui_draw_page.R +07fb4c n KC +07fc2c n KC_DATA +080546 n KC_HC +08057c n AF_X +0805a8 n ROLL_EASE +0805bc n layer_head.H +0805e0 n draw_menu.KH +0805f0 n AF_V +08061c n AF_V_DATA +080a31 n AF_V_EX +080a40 n CARD_ICO_OF +080b38 n CARD_ICO +080b9a n menu_short.SH +080c26 n name_draw.R +080c60 n dlg_tabs.DN +080c6c n nm_draw_panel.FN +080c80 n GLO_GROUP +080c90 n PK_BLK +080c9b n B_NOTE +080ca8 n TL_NAME +080cd8 n pke_cards_bt.TG +080cfc n PK_TM +080d34 n param_format.SEMI +080d44 n LFO_HZ_X100 +080e44 n N_LSYNC +080e7c n CUTOFF_HZ +080f7c n N_NOTE +080fac n ly_fx_cells.BK +080fb8 n track_col6.SN +080fc4 n vx_swarm.SRC +080fd0 n VA_MID +080fd6 n vx_animal.SC +080fdc n vx_animal.HT +080fe2 n vx_analog.SC +080fe8 n vx_phase.C2 +080ff8 n graph_adsr.L4 +081008 n RN7 +081024 n NN12 +081060 n ECO_PX +08106c n ECO_PY +081078 n eco_being.SC +08107e n graph_euclid.EV +0810a0 n graph_lz_tools.WHAT +0810b8 n graph_lz_tools.ON +0810d0 n eng_abbr.A +081158 n FX_MOD +081170 n fxg_sends.N +081180 n graph_filter_lz.FX +08118c n KT_N +08119c n graph_key.BX +0811a4 n SCL_LONG +0811e4 n graph_chord.WK +0811eb n graph_chord.BK +0811f0 n graph_chord.BX +0811f5 n chord_label.LQ +08126d n chord_label.SQ +0812b8 n chord_ivl.IV +0812dc n graph_arp.TRI +0812e0 n graph_system.LD +0812ec n graph_morph.WHAT +081300 n vx_fm6_page.A +081310 n vx_fm6env.A +081320 n LANE_G +081358 n graph_sing.VREF +08135d n PH_NAME +0813e8 n JAM_Q_N +081400 n N_FGRATE +081430 n N_FGDIR +081440 n draw_columns.SC +081454 n draw_columns.AC +08146c n draw_columns.labels +08148c n GRID_HIT +0814ac n draw_columns.TIME_N +0814b8 n draw_columns.FLAG_N +0814c8 n draw_columns.BUS_CARD +0814d8 n sw_ui_cards_bt.LB +0814f0 n dx_cards.BUS +081500 n dx_cards.RT +081524 n dx_cards.SH +081538 n DX_LANE_ABBR +081558 n dx_cards.PM +081568 n dx_cards.W +081578 n dx_cards.F +081588 n CA_NAMES +0815cc n CC_NAMES +081600 n comp_vname.ORD +081610 n comp_vname.DEC +08161c n comp_vname.HIT +081628 n comp_vname.DB +081648 n comp_vname.SB +081668 n comp_vname.CRV +081680 n comp_vname.FR +081698 n rate_name.BASE +0816a4 n TG_ROLE +0816b4 n fop_card.STG +0816c4 n fop_card.HZ +0816e8 n FAM_CRUMB +081714 n foot_crumbs.LN +081738 n SEC_NAME +081760 n act_name.UP_GO +08176c n act_name.actions +081784 n draw_confirm.PART +079dd4 c sw_timbre.KR +079dd8 c DXO_VEL +079ddc c DXO_DEC +079de0 c DXO_TON +079de4 c NRPN_CC +079de8 c DXO_RAT +079dec c CP_DEGS +079df0 c smk_mo_poll.CC +079e1c c SW_FAM +079e2c c FM6_AMSENS +079e3c c pfx_fire.FILL +079e4c c MIDI_CC_ENG +079e5c c cl_spawn.PITCH +079e6c c SMK_ENCC +079f9c c lofi_float.R +079fa4 c lofi_float.H +079fac c DXG_LANE +079fb4 c DX_RATIO +079fbc c FM6_PMS +079fc4 c pfx_note.R +079fcc c DRUM_LANE_NOTE +079fd4 c fill_apply.UP +079fdc c GFX_ID +079fe4 c SW_WT +079fec c SW_WF +079ff4 c dx_img_pan.F +079ffc c voice_block.VP +07a004 c AP_SIXT +07a00c c rev_room_mod.RV_BH +07a014 c SMK_PADMUX +07a0f0 c BYTE_T0 +07a110 c WEST_RATIO +07a130 c fm6_carriers.CARRIER_MASK +07a150 c AN_GROUP +07a170 c SCALE_MASK +07a190 c FVM_EU +07a1b0 c SL_PAT