- ota: the official update loader's packages are accepted whatever the head of the device: flash.bin of 0x93000 (V15) or
0xA9000 (V16). The -5 head comparison is removed for the official loader only; the own loader keeps -15 for another board
- Live check with the official V16 package (not in the repo): the staged loader, the record and the commit pass; only the
request count of the bigger official loader (44) was outside the own loader's bound, now 10..60
- Web: the stock restore warns that it erases projects and samples on the FM-1 (back up first); the claim "back at any time" is gone
- CLAUDE.md / DEVELOPING.md: suite version
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
- GLOBAL: the line is MIDI CLOCK, OFF (internal clock), USB or TRS, as the Felucca CLK. It sets the global clock directly,
no longer tied to MIDI IN. With USB or TRS, the ARP and SEQ follow that input's clock; Start, Stop and Continue come from
that input only (the engine's own path, now covered by the app test)
- Stored as 0xC0 | clock in the settings record (an erased byte reads OFF)
- Tests: app test covers the three values, the saved setting and Start / Stop / Continue per input
- Web: GLOBAL description (pt, en), emulator, installer, splash; CLAUDE.md / DEVELOPING.md suite version
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
- GLOBAL: new line MIDI TEMPO SYNC after MIDI CC, default OFF. ON makes the ARP and the SEQ run on the MIDI clock:
the global CLK becomes USB (MIDI IN USB or ALL) or TRS (MIDI IN MIDI)
- The setting is kept in the flash settings record (favorites.factory row 9, marked 0x5A so an erased byte reads off)
- Tests: fmini_app_test covers the default, the clock follow, the off switch and the saved setting
- Web: emulator, installer page, splash screenshot, GLOBAL description (pt, en), CLAUDE.md / DEVELOPING.md suite version
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
- ARP button: with the arpeggiator on and the ARP pop-up closed, a tap only opens the pop-up (it no longer turns the arpeggiator off)
- ARP pop-up: no 4 s timeout; it stays open until closed
- REC: a tap arms / disarms as before; HOLD REC TO CLEAR (700 ms) empties the 16 SEQ steps (instruction on the SEQ pop-up)
- TAP TEMPO pop-up: opened by ALGORITHM on the ARP TEMPO row and on the SEQ pop-up; big BPM, "TAP TEMPO: button EDIT";
EDIT taps (250..1500 ms between taps, 40..240 BPM) and its lamp blinks at the tempo; SELECT, a knob or any other button closes it
- Firmware, UI, tests: fmini_app_test covers the ARP tap, the timeout removal, TAP TEMPO and HOLD REC TO CLEAR
- Web: emulator, installer page and site screenshots (ARP, SEQ, splash) regenerated
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
The loop over the pending CC bits, for (b = 0; pend[w] >> b; b++), had no bound. With bit 31 set, the shift by 32 is undefined
in C; on a target that masks the shift count it never reaches zero, and fm_cc_rx was read past its 128 bytes. The loop now stops
at 32: for (b = 0; b < 32u && pend[w] >> b; b++).
Reproduced on the host (the real fa_cc_poll): CC 30 and 126 return, CC 31, 63, 95 and 127 segfault. The new test in
tests/fmini_app_test.c polls every CC from 0 to 127 alone and checks its pending bit is cleared; it segfaults on 1.8.0 and passes
on 1.8.1. The chip's own behaviour for a shift by 32 was not measured here.
Version FMINI_VERSION v1.8.1; docs/emu, docs/index.html and the splash pictures rebuilt. Host suite: the same seven sections fail
as before. 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
- The "n/7" at the bottom right of every page is gone. In its place: a horizontal battery of four bars (fa_batt / fa_battery in
fmini_app.c). The level uses the ADC thresholds the firmware always had (531 / 561 / 591): 4, 3, 2 bars, and 1 bar below 531 drawn
in red (FA_BATT_LOW, the stock "empty"). USB power (configured, not suspended) puts a bolt over the bars: there is no charger
status line to read, so "charging" means powered from USB. Before the first ADC read (raw 0: the emulator) it shows full.
- tests/fmini_app_test.c checks the four states by pixel (bars lit, red, bolt), and fails when the expectations are wrong.
- Site and README pictures: the footer of the site screenshots and the splash/README art redrawn with the icon.
- Not calibrated on a device: the red threshold is the stock empty level, not a measured 15 %; DEVELOPING.md says how to move it.
Host suite: the same seven sections fail as before (the browser editor test failed once under load and passed twice alone).
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
Bug report: with the oscillators off, EMPHASIS full and CONTOUR 0, a note struck at velocity 112 or more sang a different pitch
from one struck softer; the cutoff followed the amplitude envelope in every stage.
Cause: voice.c has Felucca's "accent" for its own engines: a note-on above 110 (a key, MIDI, the arp, a step accented at 127) added
the loudness contour to the cutoff (m.cutoff += envq15 * 24 >> 7, about 1.7 octaves at full level) before e->render. FMINI read
that value like any other cutoff modulation. A Minimoog-style ladder wants velocity as loudness only. The accent now skips
ENG_FMINI; Felucca's other engines keep it (their goldens do not move).
Measured (tests/fmini_filter_test.c, new section 3a: mixer silent, CUTOFF 64, EMPHASIS 127, CONTOUR 0, A.ENV attack 30, decay 60,
sustain 90, KBD 0 and 127): velocity 100 sang 1109.8 Hz and velocities 111 to 127 sang 2566.3 Hz (+1451 cents); with the fix the
change from velocity 20 to 127 is 0.0 cents. The test fails on the old code.
Goldens: tests/regress.c plays a note at velocity 120 in every preset, so the 100 FMINI lines of tests/golden.txt move (only
those: the 76 stale ones of the other engines are untouched, before and after). A patch played above velocity 110 is darker than
on 1.7.2 and older. Nothing stored changes meaning; the target budget is unchanged. Notes: web/EDITOR_PROTOCOL.md (1.7.3),
CLAUDE.md (rule), DEVELOPING.md (gotcha).
Site: docs/emu and docs/index.html rebuilt for v1.7.3; the splash pictures show the new version.
Host suite: the same seven sections fail as before (fm4, ui_render, three regress, union_test, web pages) with the same counts
(regress 76 / 117 / 76). 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
Two problems of the web editor, found by the owner:
- Names stopped at preset 72. The firmware's reply buffer (ed_out) held 664 bytes and the NAMES reply of FMINI (100 names, 1326
bytes) was cut there without an error. The buffer is 1408 bytes now. tests/editor_test.c (names_complete) checks every
engine's NAMES reply whole, in the default, the one-core and the ASan builds. The editor tells when a firmware (up to 1.7.1)
sent fewer names than it counts ("update available").
- The device answered late when a control was moved. The editor queued a request per change (every ~30 ms) behind the device,
which takes one request per pass of its main loop, so a drag piled up requests and the device followed old positions for
seconds after the mouse stopped. Now one round is in flight at a time and carries the latest value of every control changed
meanwhile (queue / flush in editor_fmini.html). web/test_editor_fmini.py drags for 2 s against a device that answers in 70 ms:
the last value arrived 547 ms after the release before, about one round trip (75 to 110 ms) now.
No change to the sound, the stored data or the commands. Reply buffer: pool 348840 B of 368640 (was 348096).
Docs: EDITOR_PROTOCOL.md (NAMES row, 1.7.2 note), DEVELOPING.md (two gotchas), CLAUDE.md (suite heading).
Site: docs/emu and docs/index.html rebuilt for v1.7.2; the splash pictures show the new version.
Host suite: the same seven sections fail as before (fm4, ui_render, three regress, union_test, web pages) and nowhere else.
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
The project's first name, FMUG, is gone. Nothing about the sound or the stored data changes.
- Files: eng_fmini.c, fmini_app.c, ui_fmini.c, editor_fmini.c, eng_fmini_filter.h, eng_fmini_presets.h, the tests, the
tools (fmini_bank.py, fmini_filter.py, fmini_retune.py, fmini_levels.json, gen_fmini_presets.py) and
web/make_fmini_installer.py.
- Identifiers: fmug_ / FMUG_ / FELUCCA_FMUG_ONLY became fmini_ / FMINI_ / FELUCCA_FMINI_ONLY; the editor commands are
FMINI_GET / FMINI_PUT / FMINI_PRESET (numbers 82-84 unchanged). The engine reports the name "FMINI" (was "FMUG") on the
device and in the editor's engine list; the editor still accepts "FMUG" from firmware up to 1.7.0.
- Short forms fmg_ / GR_FMG0..6 and FG_* are left as they are.
- Tables: tests/golden.txt and tests/target_budget.txt only had their keys renamed.
- Docs: CLAUDE.md and DEVELOPING.md say there is one branch (main) and record the rename; the test-suite notes now describe
the second regress section (FELUCCA_CPU2=0: 41 FMINI patches differ from the golden, as on 1.7.0).
- Site: docs/emu and docs/index.html rebuilt for v1.7.1; the splash pictures show the new version.
Checked: the firmware's instructions are identical to 1.7.0 (only the addresses of string literals move); the 100 FMINI golden
hashes are unchanged; every screen of the README shots is pixel-identical except the splash; the preset lab's metrics for the
100 patches are identical; the host suite fails in the same seven sections as before (fm4, ui_render, three regress, union_test,
web pages) and nowhere else. 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
Written from the sources at v1.7.0 so a new session, or a new firmware built from this base (a tonewheel organ is the first candidate:
the WHEEL engine in firmware/engines is the reference), starts with what was learned here: the build and test commands, the one-unit
firmware and its order, the fixed-point lessons of the ladder, the bank pipeline, the release routine, and the seven suite sections
that fail independently of the filter.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94