Commit Graph
11 Commits
Author SHA1 Message Date
Claude aacd82d096 FMini-1 web editor: the footer's site link points to the site
The footer's "Site do FMini-1" was a relative "./", which the published
editor (at /editor/) resolved to the editor's own folder. It is now
https://ruppert.github.io/fmini-1/.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-30 08:31:48 -03:00
Claude fb160c04a8 FMini-1 1.14.0: backup and restore of the presets (protocol 4)
Backup: the web editor reads all 200 presets (cmd 85, the whole record)
and saves them in one .bkp file (JSON, records in hex).

Restore: cmd 87 asks the device first. The device shows OVERWRITE ALL 200
PRESETS? with NO selected: ALGORITHM turns it to YES, SAVE accepts; SAVE
on NO or any page button refuses; no answer for 60 s refuses. Only then
does cmd 86 write each record (rc 2 before the YES and after the end).

The restore question sits above the other pop-ups; the preset and tempo
pop-ups stay hidden under it. Protocol 4: the web editor needs it.
tests/editor_test.c walks the handshake and the record round trip;
tests/fmini_app_test.c drives the question on the panel and renders it;
web/test_editor_fmini.py backs up, restores a changed file and puts the
original back (the bridge answers the question: FM_RESTORE_ANSWER).

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-30 08:25:00 -03:00
Claude f660562679 FMini-1 1.14.0: the web editor's PRESETS tab shows the device's 200 slots
The LIBRARY tab (U01-U32, UP_* commands) is gone from the FMini editor:
FMini-1 has no U bank. The tab lists the 200 slots (NAMES) and loads them
(PRESET); SAVE is on the device. The factory bank export stays.

PRESET takes the preset number as two 7-bit bytes (low first) when it is
128 or more, so the page reaches slots 128..199; the one-byte form still
works. MIDI Program Change reaches 0..127 only (documented).

The web test drives the new tab (200 cards, load 007 and 150, no save or
erase); tests/editor_test.c passes; firmware 1.14.0 builds; installer
regenerated.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-29 22:21:45 -03:00
Claude cc4389534d FMini-1 1.14.0: one preset table for slots 0..199, no U bank
The 200 slots are the presets, all handled the same way: a RAM table of
200 preset_t (fmini_pre) built at power-on from the records (names and
knob bytes), pointed to by the FMINI engine with npresets 200 (fits the
uint8_t count). PRESETS walks 0..199 and loads the slot's patch from
flash; the extras (arpeggiator, LFO, FX, octave) come from the slot's
record (fb_extra). SAVE writes the playing sound into the slot being
played (fa_save_slot -> fb_write) and updates the RAM entry. The U bank
is no longer used by FMini.

apply_preset_to sets SLOT from the preset index for FMINI, so the
generic browse path and the PRESETS knob load the same way. Categories:
INIT slots (100..199) are OTHER.

Editor protocol 3: NAMES count as two 7-bit bytes (200 does not fit in
one), reply buffer 2816 bytes. Web: 200 names, 3-digit labels, the
factory export stops at slot 99.

Tests: fmini_app_test, editor_test, ui_test, editor_bridge and the web
test follow the 200-slot behaviour. Host builds keep saved records in
RAM (no flash).

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-29 18:36:35 -03:00
Claude aef71b7365 FMini: SLOT 0..255 with OWN at 256 (step 1 of the 256-slot bank)
The factory table stays at 100; the slots 100..255 are the INIT
records. A slot's patch comes from its record (fmini_slot_patch, over
fb_read), so the engine loads any of the 256. OWN is 256. fmini_slot
is 16 bits (it was 8). fmini_adopt keeps an INIT slot whose patch it
still holds; the match against the factory tables is unchanged.

Protocol 3: the track's SLOT in FMINI_GET is two 7-bit bytes (low
first), before the octave, which is now the last byte (the web editor
reads it there). The web test expects OWN as 256 and the octave at
its new place. The fmini_rec and fmini_bank modules have include
guards (the host tests include them more than once).

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-29 17:08:10 -03:00
Claude f33b9ec26a Editor protocol 3: INFO tag 0x56 and the old-firmware notice
INFO carries tag 0x56 (version 1) with the editor protocol number (3),
between NTRK and CHAIN_ROWS, so the offsets counted from the end of the
reply are unchanged. The web editor refuses a device that answers with
a lower number and shows a notice with the link to the current
installer.

Not yet pushed: the editor would refuse every 1.13 device until 1.14.0
is on the installer.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-29 11:47:40 -03:00
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