Commit Graph
5 Commits
Author SHA1 Message Date
Claude 9b31527da3 FMini-1 v1.7.2: the editor shows all 100 preset names and follows a drag without lag
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
2026-10-20 20:26:36 -03:00
Claude 232264d571 FMini-1 v1.7.1: fmug is now fmini everywhere (files, identifiers, engine name, editor, docs)
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
2026-10-20 19:35:44 -03:00
Claude 4ac7794ec4 FMini-1 v1.7.0: the Minimoog ladder filter (4 tanh stages + the feedback lag pole, zero-delay feedback), the dials, 100 presets converted
- filter: eng_fmug.c renders a trapezoidal ZDF ladder with a saturating stage each and the lag pole of the circuit; it self-oscillates as a
  sine when EMPHASIS passes 8 (singing pitch = 1.578 x the corner, exact), tracks the keyboard 1 V/oct at KBD 127 (0 V at F), and its
  passband loss and resonance peak follow the hardware. Fixed point (Q8 states so quiet ladders start singing), no 64-bit in the sample loop.
  Laws and tables come from tools/fmug_filter.py (eng_fmug_filter.h, generated); constants from the CA-72 circuit notes (CREDITS.md)
- knobs: CUTOFF reads the dial -5.0 .. +5.0 (fmt MCUT), EMPHASIS 0.0 .. 10.0 (MEMP); FILT page draws the filter's real response and where it sings
- presets: all 100 matched to the old filter by their log-magnitude responses (tools/fmug_retune.py; bank cutoff= is the -3 dB corner at middle C,
  emph= the dial); levels re-trimmed (tools/fmug_levels.json); goldens of the 100 FMUG renders registered
- tests: fmug_filter_test (singing pitch / THD / 1 V/oct over the keys / KBD 0 / dial positions / passband loss and peak / no runaway),
  fmug_app_test and editor_test fixed (stale cutoffs, a 1-byte overflow), target budget fmug_render 170 -> 227
- web: editor shows the dials, protocol doc (fmt 14, 15; patches made before 1.7.0 keep their raw numbers), site texts, screenshots
- v1.7.0 emulator and installer rebuilt

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-20 10:10:51 -03:00
Claude d79b5e2bef FMini-1 v1.6.1: editor library (U01-U32), A/B compare, randomize, factory bank export; FMUG_GET of user presets, the octave, FMUG_PRESET (84)
- firmware: FMUG_GET target 3 (a user preset's patch), the octave on 82 / 83, cmd 84 (tempo, octave and FX globals a preset keeps), INFO tag 48 01 01
- web/editor_fmini.html: LIBRARY tab (save / load / export / erase per slot, export and import the whole library as a file, export the factory bank), Randomize with an amount, A/B compare, OCTAVE control; sound files keep every parameter, the octave and the FX settings
- tests: editor_test (user preset patch, octave, FMUG_PRESET), test_editor_fmini.py (library, files, A/B, randomize, factory bank against the real C handler)
- protocol doc, v1.6.1 emulator and installer rebuilt

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-20 08:08:42 -03:00
Claude 663a1ffea8 FMini-1 v1.6.0: web patch editor (editor/ on the site) and the FMUG patch commands (82, 83)
- firmware: editor_fmug.c, FMUG_GET / FMUG_PUT (the 32-byte patch of a track or a factory patch), INFO tag 47 01 32
- web/editor_fmini.html: one self-contained page (Web MIDI + SysEx): CTRL OSC MIX FILT F.ENV A.ENV FX ARP, patch list, save / open sound files, polling of changes made on the FM-1
- tests: editor_test (fmug_patches), tests/editor_bridge.c + web/test_editor_fmini.py (the page in Chromium against the real C handler)
- site: Editor link in the nav; Installer workflow publishes editor/; protocol doc; v1.6.0 emulator and installer rebuilt

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-19 22:44:08 -03:00