As before 24 of 1023 a detent (about 2.3 of the pop-up's 0..100), linear; a detent 150 ms
or more after the last one moves exactly one value instead, so every value 0..100 can be
reached.
Everything is behind BOARD_SMK37: the FM-1 build is main's v2.5.1, byte for byte.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
The stock decoder wanted each quadrature state to hold two frames (3.2 ms) and three valid
states in a row: a quick spin (above ~75 states a second) lost whole detents, or all of
them. Now a plain state machine: every new state counts at once (bounce cancels), a missed
state counts two the way the knob was going, four counts make a detent, and back at the
rest state the remainder rounds so the count stays on the clicks.
tests/smk_encoder_test.c (registered): slow, fast, missed states, bounce, half a detent.
Everything is behind BOARD_SMK37: the FM-1 build is main's v2.5.1, byte for byte.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
- Pads: notes 36..43 (bottom row) and 44..51 (top row) on channel 10, with velocity and
note-off (smk_input.h queues the UI-owned pads' hits and releases); they still pick
presets.
- K1..K8: CC 102..109, faders: CC 110..113, on MIDI OUT CH, fixed whatever the control
does in FMini-1. The encoders keep a value 0..127 each (from 64); K1 sends the MASTER.
- The main loop's messages reach midi_out_event through a queue drained by the audio
ISR (its one producer). The keys already went out with the octave.
- tests/smk_midi_out_test.c: the knob CCs and the pad notes.
Everything is behind BOARD_SMK37: the FM-1 build is byte-identical.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
- The pitch wheel bends by the preset's PITCH BEND range (fm_bend_mode), the same
path as an incoming MIDI bend (midi_expression).
- MIDI OUT on the TRS jack (UART1 TX on PC7): hal/smk_uart_tx.h and src/smk_midi_out.c,
the fm1-to-smk37 kit's pattern (USB-MIDI packets to bytes, a ring of whole messages,
one byte a TIMER5 tick, quiet after 4 bytes not gone). Not yet tried on a unit.
- GLO > MIDI SETTINGS on the SMK-37: MIDI OUT (ALL, USB, TRS), MIDI OUT CH (1..16,
default 1), MIDI IN CH (ANY, 1..16), MIDI IN CC, MIDI CLOCK (OFF, USB), MIDI IN
MONITOR. MIDI IN is always USB (no row).
- The screen's hints name the SMK knobs: K2 (PRESETS), K3 (SELECT), K4 (ALGO);
HARDWARE CALIBRATION asks for the SMK's printed knob and button names.
- tests/smk_midi_out_test.c (registered in run_tests.sh).
Everything is behind BOARD_SMK37: the FM-1 build is byte-identical.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
The owner's mapping (smk37-port.yaml), in fmini_app.c behind BOARD_SMK37:
- Pads: the UI owns them (smk_input.h smk_pad_ui: a hit plays no note). A
preset picker: the 16 presets of the page that holds the loaded one, in
their category's colour (the loaded one bright), a pad loads its preset (in
the SAVE dialog: the slot it writes). In the SEQ pop-up they show 16 of its
64 slots in the pop-up's colours (the page of the step that plays, or of
the slot a take writes next).
- FADER BANK: A the A.ENV knobs, B the F.ENV knobs, C the MIX knobs, and the
screen shows that page; a fader takes over once it moves (fa_ctl_apply,
absolute as a CC); main.c's smk_faders hands the faders to FMini-1.
- < / >: preset -1 / +1; held 1 s, five a second.
- Knobs: K1 MASTER, K2 PRESETS, K3 SELECT, K4 ALGORITHM, K5..K8 KNOB 1..4
(panel.c, PANEL_MAGIC "FNS1"); the on-screen "K1-K4" hints read K5-K8 and
SCL reads SCALE on the SMK.
- Buttons at the FM-1's places (the layer's map; PATCH is HOME, FILT; power-on
on FILT as ever); KNOB BANK free; the mod wheel is CC1 as on the FM-1.
- SMK37.md (models, controls, build, install, the way back, safety), one
README line, CREDITS (genkigenki's board layer and kit).
- Installer page: make_fmini_installer.py embeds this version's SMK-37
packages beside the FM-1's when they are in build/; the page reads the
connected device's model and installs that model's package (a picked .fwsc
stays as it is); a note says so. The Installer workflow builds the three
SMK packages before the FM-1 (last) and publishes them for download.
The FM-1 build is byte-identical to 2.5.0. Untested on hardware; the pad,
fader and button mapping has no host test yet (only the build and the board
layer's tests cover the SMK).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
The SMK-37 target from github.com/genkigenki/Felucca branch smk37 (commit
b67312c on Felucca 1.6.1, = hugelton/Felucca#237; the fm1-to-smk37 kit's
Felucca layer), applied to FMini-1, whose firmware/hal and firmware/loader are
Felucca 1.6.1's:
- BOARD=smk37 / MODEL=pro|elite|mke (tools/build.py, build.sh), the SMK flash
map with its protected ranges (fm1_flash_map.h), the update path and its
size checks (ota.c, ldr_core.c), the SMK input HAL, LCD and pad LEDs, the
owner tag of the store, installers and tests.
- Conflicts resolved for FMini-1: packages fmini-1-fm1-<version>.fwsc and
fmini-1-smk37[-elite|-mke]-<version>.fwsc; FL_JEDEC_OK keeps the UC25HQ80
(0xB36014) on the FM-1 and accepts it on the SMK too; the official V16
length stays FM-1 only; the sample slots stay gone (FMini-1 has no SAMPLE
engine: the layer's eng_sample.c and editor sample hunks are not taken);
main.c keeps FMini-1's UI_* hooks with the SMK calls around them.
- The FM-1 build is byte-identical to 2.5.0 (app, package and loader
hashes). The SMK build does not link yet: FMini-1's preset objects need
places in the SMK store, and fmini_app.c's LED code is FM-1 sized.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
Some FM-1 units sold recently (mostly AliExpress) carry a UC25HQ80 1 MiB
SPI NOR with JEDEC ID 0xB36014. Same size and plain SPI NOR commands as the
Puya part, but persist_boot only accepted 0x856014, so those units stayed
RAM-only ("flash error").
FL_JEDEC_OK(id) accepts both IDs; persist_boot uses it. The update loader
does not read the JEDEC ID anywhere in this tree (its flash access goes
through fl_read_ram / fl_erase4k_ram / fl_prog_ram), so nothing changed there.
Host tests persistence_test, backup_test and fm6bank_test pass (they stub the
ID to 0). Not tested on a real FM-1.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
MENU > LARGE keeps one size per knob (#251): each knob shows all its
values in the size its longest value fits, so a value no longer jumps
between sizes while it is turned. No new fonts.
Updates check the package's size on the device: the update entry and the
update loader take only a package whose firmware area is exactly the
FM-1's. Another device's package is refused before anything is erased
(the update screen shows FAILED -15; the loader answers -14).
Second core (beta, PR #247): MENU > SYSTEM > 2ND CORE, OFF by default.
ON (BETA) applies from the next power-on: the second core renders some
of the four parts of each block, bit for bit the one-core sound. A unit
whose second core misreads goes on with one core and sets it back to
OFF. FELUCCA_CPU2=0 builds none of it. Start, mailbox and guards from
X0X (with Melodee's dual-core findings), the split and hardening after
Jangada.
Felucca-Engines: ANALOG, LOFI, TRIO, WHEEL and NOISE, the engine
interface, the shared DSP helpers and their table generator move to
https://github.com/hugelton/Felucca-Engines under the MIT licence,
included as the git submodule firmware/engines. The firmware stays
GPL-3.0-only; clone with --recurse-submodules. The sound is unchanged
(the same golden renders); the engines' own tests run with Felucca's.
Co-authored-by: Кирилл Сапфиров <gospodindilly@gmail.com>