Commit Graph
49 Commits
Author SHA1 Message Date
Claude c3617fc30d FMini-1 screens: no K1..K4 labels under the knobs
The knob columns and the FX pop-up knobs drop their K1..K4 captions; the
FX page keeps its MIX / GAIN captions (the parameter each knob sets).
Emulator regenerated (docs/emu2).

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-04 11:54:10 -03:00
Claude 296fd6c3c3 FMini-1 OSC tab: the OSC 1..3 knob labels 6 px lower
Only the three labels; the knobs, DET 2 and DET 3 stay. Emulator regenerated (docs/emu2).

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-04 11:29:50 -03:00
Claude dcefb5ec89 FMini-1 FX page: no bars or EDIT buttons; the knobs lower; a hint under them
The bars between the four sections and the four EDIT buttons are gone
(the FX button still opens the pop-ups). The knobs and their labels sit
10 px lower on the FX page, and "Press FX to edit effects." is written
under them. Screenshot checked on the host (fmini_app_test).
Emulator regenerated (docs/emu2).

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-04 11:25:08 -03:00
Claude 4246bb6d26 FMini-1 GLO: TUNING and TRANSPOSE redraw as they change
fa_signature did not include them, so the list kept the old value until
the highlight moved. Both now enter the signature, with a test for each.
docs/emu2 rebuilt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-03 21:19:53 -03:00
Claude 089d1d3cd3 FMini-1 GLOBAL: TUNING (410..470 Hz) and TRANSPOSE (-12..+12)
- GLO list: TUNING and TRANSPOSE below PITCH BEND, ABOUT last (8 rows,
  17 px apart). ALGORITHM changes them; TUNING is 1 Hz a click.
- Global, not in the preset: every note (keys, MIDI, SEQ, ARP) goes
  through trk_note_on / trk_note_off (voice.c), TRANSPOSE applies there
  and a note outside 0..127 is dropped (on and off alike); TUNING adds
  its cents from A 440 to the pitch (eng_fmini.c). A change of TRANSPOSE
  is a panic, so no note hangs.
- Settings: two new bytes after the record's last one (no shift of the
  older bytes; the magic is unchanged); erased bytes read as 440 Hz and 0.
- tests: the GLO list, the limits, the transposed out-of-range note.
  docs/emu2 rebuilt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-03 21:13:57 -03:00
Claude 75db13e004 FMini-1 MIXER: the five buttons raised
The four switches and the noise colour button move up a little (the
switch row 146 -> 136, the noise button 180 -> 170). docs/emu2 rebuilt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-03 21:03:53 -03:00
Claude 0135206e17 FMini-1 MIXER: noise colour button, no K / name labels, ON light / OFF dark
- MIXER: no K1..K4 under the knobs, no names above the four switches.
- The switches are raised; ON text light, OFF text dark.
- A ninth MIXER control under NOISE: PINK or WHITE (FS_PINK in FG_SW1),
  its text always in the ON colour.
- MIDI CC: the new control answers to CC 63 by default. The settings
  record moves to magic 0xA7 0x50, so an older record reads as defaults
  once (its MIDI source, channel and CC map are reset).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-03 19:26:24 -03:00
Claude bdaf268570 FMini-1 1.23.0: GLO held opens ABOUT
- UI: holding GLO for 0.5 s opens ABOUT (the splash with the version) from
  anywhere: the other pop-ups close (SEQ, its REC too), the list's cursor
  goes to ABOUT, so GLO or an encoder goes back to the list on that line.
  A GLO tap is unchanged (the list, one level back, closed).
- Tests: fmini_app_test, tap vs hold (0.4 s still the list, 0.5 s ABOUT,
  the release keeps it), ABOUT back to the list, the hold over the SEQ
  pop-up with REC armed, an encoder back.
- Web: editor FW_LATEST 1.23.0, emulator and installer rebuilt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-02 19:32:58 -03:00
Claude 1719657108 FMini-1 1.22.0: SEQ recording takes rests (SELECT)
- SEQ: while REC records, SELECT right leaves a rest (the slot stays empty,
  the take goes on; trailing rests count in the length, a pause before the
  loop comes round) and SELECT left goes back one slot and empties it (a
  note or a rest taken back). A rest also starts a fresh take (the old one
  goes, as a first note does); back before anything is played keeps the old
  take. An empty step plays as a rest (seq.c: released, nothing sounds).
- Grid: the take's rests in a dark red (not the empty slots' grey); while
  REC is armed the hint reads SELECT: REST / BACK. The SEQ comment says 64
  slots (it said 16).
- Site (pt, en): the sequencer's line mentions the rests.
- Tests: fmini_app_test, rests, back over notes and rests, past the start,
  a fresh take (back keeps it, a rest starts it), SELECT with REC off.
- Web: editor FW_LATEST 1.22.0, emulator and installer rebuilt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-02 19:01:33 -03:00
Claude 24f992affd FMini-1 1.21.0: HOME opens FILT
- UI: the HOME button opens FILT (the filter page, as EDIT) and closes the
  pop-ups; power-on starts on FILT too. LFO still opens CTRL. The HOME LED
  lights with FILT (with EDIT's). A preset change keeps the page (1.18.0).
- fmini_app.c: FA_HOME_PAGE; the header comment's button list corrected
  (EDIT is FILT, SCL OSC then MIX, GLO the global pop-up).
- Site (pt, en): FILT is the home page (HOME or EDIT); CTRL is the LFO
  button's.
- Tests: fmini_app_test, HOME -> FILT, and HOME closes GLO on the way.
- Web: editor FW_LATEST 1.21.0, emulator and installer rebuilt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-02 17:51:40 -03:00
Claude 214a020624 FMini-1 1.18.2: the preset name pop-up shows for 1 s (was 1.5 s)
- firmware: fa_pp_until = 1000 ms for a preset change (PRESETS, Program Change, a saved one loaded).
- web: FW_LATEST 1.18.2; the emulator and the installer page regenerated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-01 20:00:02 -03:00
Claude afcf340f83 FMini-1 1.18.1: the idle light show no longer restarts after every key
- firmware: the FMini-1 screen has its own input (fa_input), which never refreshed the screen's idle timer (ui.c scrn.idle):
  once 60 s had passed, every key release started the idle animation again. fa_input now refreshes it on any key, button or
  knob (panel_took_moved clears the knob flag the screen never cleared before).
- tests: fmini_app_test: the idle light show starts after 60 s, stops with a key and stays off for 60 s after it (the check
  fails without the fix: the show came back 2 s after the key up).
- web: FW_LATEST 1.18.1; the emulator and the installer page regenerated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-01 19:37:53 -03:00
Claude b91b579b41 FMini-1 1.18.0: a preset change keeps the screen (no return to HOME)
- firmware: changing the preset (the knob, a Program Change, a saved one) no longer goes to CTRL; the page and the open
  pop-up stay as they are.
- tests: fmini_app_test: the preset change keeps the page (PRESETS from every page, a Program Change on page 4, the
  edit cases on their own page).
- web: FW_LATEST 1.18.0; the emulator and the installer page regenerated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-01 19:14:38 -03:00
Claude 8f8a0167a9 FMini-1 1.16.0: "Warning: CPU High" pop-up when the synth overloads and cuts voices
- firmware: audio.c counts the overloads (cpu_crit, bumped where shed_check sheds); the FMINI screen shows the pop-up for 0.3 s
  when an overload starts, and not again until 0.3 s without one (one per episode, not a flicker while it lasts).
- tests: ui_test.c provides cpu_crit to the screen tests, as it does felucca_dbg.
- web: FW_LATEST 1.16.0; the emulator and the installer page regenerated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-01 12:21:47 -03:00
Claude 02a27e0612 FMini-1 diagnostic: show the MIDI channel of the wheel and of the note
Diagnostic builds only (FMINI_DIAG). The pop-up now shows the channel
of the last pitch-bend message and of the last note-on, to check
whether the wheel and the keys are on different channels.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-31 23:17:52 -03:00
Claude 4a9b988212 FMini-1: the FMINI_DIAG readout is a pop-up panel (diagnostic only)
The readout moves from three text lines over the scene to a framed panel like SAVE's,
and the screen redraws when its counters change. Still behind #ifdef FMINI_DIAG.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-31 21:02:36 -03:00
Claude 2bd0b3129e FMini-1: FMINI_DIAG build flag shows the pitch-bend path on the screen (diagnostic only)
Adds counters and a three-line readout (WHEEL MSG, NOTE, TGT / Q8 / RUN) behind
#ifdef FMINI_DIAG. The flag is not defined in any release build, so the firmware
is unchanged; it is used to see where a bend message is lost on a real device.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-31 19:37:30 -03:00
Claude d16c5d9842 FMini-1 1.14.25: the tempo is the patch's (bytes 22..23); 015 ACID LEAD: CUTOFF -2.5, EMPHASIS 8, contour 3.8, ARP 1/8 OCT 1, reverb mix 0, 162 BPM
The TEMPO is now part of the FMINI patch (two 7-bit bytes, 40..240 BPM, 0 = none: a
loaded patch keeps the song's tempo). Loading a patch with a tempo sets the song's BPM
for the selected track; changing the tempo in ARP, SEQ or TAP TEMPO writes it back into
the patch. The ARP, the SEQ and the delay share it. Factory patches carry 120; 015 carries
162. The patch is 24 bytes now (FG_NUM 24); the editor protocol notes the new bytes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-31 17:22:59 -03:00
Claude 0503abc789 FMini-1 1.14.12: DET 2 / 3 in 1-cent steps (-700 .. +700), the MIDI law unchanged
- The knob sets the detune in cents, -700 .. +700, one cent a step with the
  usual acceleration; 0.00 at the middle. The screen shows +4.05 style.
- The cents are stored in patch bytes 18..21 (DET 2 at 18..19, DET 3 at 20..21),
  as sign and magnitude in two 7-bit bytes (the patch travels as 7-bit sysex).
  No SW2 bit: a zero byte is 0 cents.
- A CC still sets the coarse byte (64 = 0, 11 cents a step), and the cents to
  (value - 64) * 11, so MIDI gets the coarse law: -704 .. +693.
- The coarse byte follows the knob's cents to the nearest step, for the editor.
- The factory bank writes the cents of its coarse bytes, so every factory
  patch sounds as before (goldens unchanged). The bank's stamp changes, so the
  saved slots are cleared at the first boot, as 1.14.9 does.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-31 01:23:33 -03:00
Claude e74adc78ff FMini-1 1.14.11: DET 2 / 3 read -7.0 .. +7.0 on the screen
The knob's number was the 0.0 .. 10.0 ratio of its byte. DET 2 / 3 now show the
signed semitones of the coarse law: -7.0 at the bottom, 0.0 at the middle (byte
64 = 0 cents), +7.0 at the top; the pointer is centred on 0.0.

Goldens: unchanged (display only).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-31 01:09:47 -03:00
Claude d16e68e04a FMini-1 1.14.10: DET 2 / 3 back to the coarse law (the fine law is removed)
The fine law of 1.10 and 1.11 (SW2 value 4, a code 0..180, the encoder's
steps of 0.1 and 0.05 semitone) is removed. DET 2 / 3 are the coarse law again
(64 = 0, 11 cents a step, +-7 semitones), with the encoder's acceleration as
before 1.11, and a CC is written as it is. The sanitiser keeps SW2 up to 3 and
clears the old bit; patches saved with it sound with the coarse law.

The other 1.11.0 changes (SEQ pop-up, MIDI CC scroll bar and learn, idle light
show, key LEDs) stay.

Goldens: unchanged (no factory patch uses the fine law).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-31 00:52:58 -03:00
Claude 983901a72c FMini-1 1.14.3: a confirmed preset reset reloads the track's preset
The reset wrote the factory record to flash only; the FMINI track that shows
that preset kept the old values in RAM until another preset was selected.
After YES on the device, the track is loaded again when it is on the reset
preset (or on any preset after RESET ALL). Version 1.14.3.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-30 11:09:11 -03:00
Claude 52c3abceb6 FMini-1 1.14.2: the device reports its version; the editor warns when it is old
INFO carries the firmware version (tag 0x49, three bytes, 5 bytes before the
FMINI patch-size block). The version now lives in firmware/src/core.h
(FMINI_VER_MAJ/MIN/PATCH and FMINI_VERSION); build.py, build_wasi.sh and the
installer workflow read it from there.

The web editor reads the version on connect. When the device runs an older
firmware (or one without the tag), it opens a pop-up that links to the
installer on the site. FW_LATEST in editor_fmini.html must match core.h.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-30 11:07:31 -03:00
Claude 52638a78dd Bump FMINI firmware to v1.14.1
Version bump after the device-side confirmation of single and
all-factory preset restores. Rebuilds docs/emu and docs/index.html.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-30 10:40:39 -03:00
Claude 9074eff61a FMini-1: the factory resets are confirmed on the device (one preset and all of them)
The editor asks the device, as the backup restore does: RESTORE 0 with a slot
(0, lo, hi) for one preset, RESTORE 3 for every factory preset. The panel shows
"RESET / PRESET nnn?" or "RESET ALL / 200 FACTORY?" (ALGO: YES / NO, SAVE: OK);
at YES the device does the reset itself (fb_rs_apply), so the editor only waits
for the answer and then ends the question (RESTORE 2). No browser confirm any more.

Protocol 4 unchanged in its commands; RESTORE takes the new argument forms.
Host checks in editor_test; the bridge's test answer does the reset as the panel does.
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-30 10:37:35 -03:00
Claude 38311e3c96 FMini-1: presets 100-199 are factory patches (200 in all)
The second hundred of the factory bank, in the same ten groups as the first
(110-119 hard leads, 120-129 soft leads, 130-139 basses with OCT-1, 140-149
pads, 150-159 brass, 160-169 plucks, 170-179 keys, 180-189 atmospheres,
190-199 effects; 100-109 showcase). About a quarter with the arpeggiator on
(55 of 200). Nothing is INIT now: the saved slots are unchanged.

- eng_fmini: FMINI_NFACTORY 200; generated header 200 patches (the first 100
  byte-identical).
- editor: a factory GET takes the index in two 7-bit bytes past 127 (3 bytes:
  reply target, lo, hi, rc, patch). Web editor: FACTORY RESET covers 200.
- regress: job table 1024; hostsim sets P_E7 for FMINI (the preset's SLOT is
  int8 in the engine, so 128+ wrapped to silence). 100 golden lines added.

Not tested on a real FM-1. Presets 100-199 use the default LEVEL (not calibrated).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-30 09:41:32 -03:00
Claude a6e0f39e5d FMini-1 1.14.0: the PRESETS knob moves one preset per detent
The knob counted the detents of a frame as one step: a fast turn of 25
detents in a few frames moved 3 or 4 presets. Now the preset moves by the
detents received (signed, round over the 200 slots), loaded once.

tests/fmini_app_test.c: 25 detents at once move 25 presets; a turn back
of 30 wraps; the wrap below 0 is checked.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-30 09:03:22 -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 3aa588acc3 FMini-1 1.14.0: undo the PRESETS knob acceleration
Revert of 86ce0f5: the PRESETS knob steps one preset per detent again,
whatever the speed of the turn. Test and emulator/installer regenerated.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-30 08:03:19 -03:00
Claude 54720dc57a FMini-1 1.14.0: SAVE dialog with bigger text and an OVERWRITE question
The SAVE dialog uses the large font for the slot, the name and the title
(its box is bigger; each letter's cell is as wide as the letter). SAVE
opens a YES / NO question, NO selected by default: ALGORITHM turns it to
YES, SAVE on YES writes the slot, SAVE on NO goes back to the name. Any
page button still cancels. The pop-up's text is drawn on the pop-up's
own background.

tests/fmini_app_test.c walks the question (SAVE, SAVE on NO, SAVE, YES,
SAVE) and renders the three screens.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-29 22:35:38 -03:00
Claude 86ce0f558e FMini-1 1.14.0: the PRESETS knob accelerates
A slow turn steps one preset per detent; a fast one jumps further. The step
comes from the time between the detents: 1 at 120 ms or more, 3 at 60 ms,
8 at 35 ms, 15 at 20 ms, 25 below that (several detents in one frame share
the interval). The SAVE dialog's slot still moves one at a time.

tests/fmini_app_test.c: slow turns step by one, a fast turn jumps and wraps.
Firmware rebuilt, emulator and installer regenerated.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-29 22:27:33 -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 bc37507129 FMini-1 v1.14.0: version string
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-29 18:11:48 -03:00
Claude 68c770672f Revert "FMini: the knob cursor's orange frame 3 px wider on each side"
This reverts commit 75d3d0d.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-29 11:37:51 -03:00
Claude 75d3d0dc38 FMini: the knob cursor's orange frame 3 px wider on each side
The frame under the highlighted knob (fa_knob_col) was 50 px wide round
a 44 px bar; now 56 px, 3 px more on each side. Horizontal only.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-29 11:36:42 -03:00
Claude 0006fd81ce FMini-1 v1.13.0: retire the SAMPLE, GRAIN and SLICE engines
The three engines and their 126 KB of factory IMA samples are gone, with the
sample slots (80 KiB x 3 in flash), the SLICES page, the sample waveform, the
web editor's sample protocol and the slice store. Their engine numbers stay
(4, 8, 13): a track, a project or a user preset that names one is silent and
is never offered, through a stub like DIGITAL's (ENG_RETIRED, engines.c).

Image 536.6 KB -> 394.9 KB; RAM .data+.bss 65.9 KB -> 60.1 KB. The sample
flash region 0xA0000..0xDBFFF is free for user presets.

Protocol: SMP_BEGIN/WRITE/END/ERASE (11..14) get no reply; SMP_INFO answers 0
slots so the editor hides its Samples tab; backup ids 32..34 are gone. The
PERC conversion (SAMPLE PERC -> DRUM) stays. See web/EDITOR_PROTOCOL.md.

Tests: sample_test, slice_test, fuzz_smp removed; the others follow. Golden
renders of the retired engines removed; target budgets for their functions
removed and the ISR / mix_part costs updated on purpose.

Known, unchanged failures: fm4, union_test, the regress hashes of Felucca's
engines (66 changed at 1.12 too), web mock tables.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-28 14:03:21 -03:00
Claude 399f6fbbce FMini-1 v1.12.0: SEQ opens on press; hold inside the grid opens the settings
- Outside the sequencer, a press of SEQ (not its release) opens the grid with
  the word SEQUENCER for 0.5 s; holding adds nothing.
- Inside the grid, a tap (decided on release) closes it, and a hold of 450 ms
  opens the settings pop-up (MODE, RATE, GATE, TEMPO).
- On the settings pop-up, a press of SEQ goes back to the grid.
- Test updated to the new flow; emulator and installer regenerated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-28 12:29:14 -03:00
Claude 0b5a06a15a FMini-1 v1.12.0: smoother TAP TEMPO, SEQ settings pop-up (MODE, RATE, GATE, TEMPO)
- TAP TEMPO (ARP and SEQ): the tempo is the mean beat of the last five taps
  (the first two taps set it); bounces under 250 ms are ignored, a pause over
  1500 ms starts a new measurement.
- SEQ held (450 ms, as ARP's HOLD): the settings pop-up. MODE is the order the
  steps play (FWD as before, BWD, PING): new parameter P_SMODE before P_E0
  (P_COUNT 112). RATE is the DIV, GATE the GATE, TEMPO opens TAP TEMPO.
- SEQ tap still opens and closes the grid; the tap is decided on release.
- Tests: TAP TEMPO smoothing, SEQ hold and settings, MODE order, BWD playback.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-10-28 09:35:06 -03:00
Claude b8ac216736 FMini-1 v1.11.0: DET 2/3 fine law, SEQ full-height pop-up, MIDI CC scroll bar and learn, idle light show, dim keys
- DET 2 / 3: one encoder detent is one step of a fine law (0.1 semitone,
  0.05 from 4 to 6, 0.1 from 6 to 7), no acceleration. The law is SW2 value 4
  (FT_DETFINE): a patch saved before 1.11 keeps its coarse law until a DET
  knob or CC is turned; the factory bank is unchanged. The sanitiser keeps
  the fine codes (up to 180) and SW2 up to 7. Display: +4.05 ST.
- SEQ: the pop-up is the width of the other pop-ups and the full height of
  the screen; 8x8 rounded squares with a wider gap; no title. Opening SEQ
  shows the word SEQUENCER for 0.5 s.
- MIDI CC: a scroll bar in place of the n/total counter. MIDI LEARN: the
  line listens for the next free CC (reserved ones are refused); a CC the
  other lines had is moved off them.
- Idle light show (MENU > ANIM IDLE, ui_input.c idle_leds) on at boot:
  after a minute with no input the key LEDs run the power-on show.
- Key LEDs: all 27 keys glow dimly, as the buttons do.
- Tests: fmini_app_test covers the DET law and encoder steps, MIDI LEARN,
  pitch bend and mod wheel from USB and TRS, and the take of 64.
- web/EDITOR_PROTOCOL.md: the fine law and its switch value. The web editor
  still shows DET as the coarse law: check SW2 value 4 before trusting it.

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-28 08:45:10 -03:00
Claude 8dd0ab9662 FMini-1 v1.10.0: SEQ with 64 notes on an 8x8 grid; installer without the return to official firmware
- firmware: the SEQUENCER records up to 64 notes (NSTEP); the pop-up shows
  them as an 8x8 grid of squares: dark gray empty, red recorded, orange the
  step playing now, cream blinking on the next slot while REC is armed.
  The 4x4 note-name grid and fa_note_name are gone. The patch signature
  covers all 64 steps. Version v1.10.0.
- tests: the take of 16 becomes a take of 64 (ends by itself at 64, step 63
  is note 113); HOLD REC TO CLEAR checks all 64 steps.
- web: the installer no longer offers to return to the official firmware
  (the stock block, its texts and handlers are removed; the fm1*.js
  libraries and their tests stay). Site text says 64 notes. Splash, SEQ
  screenshots and the emulator/installer are regenerated.
- docs: CLAUDE.md suite heading now 1.10.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
2026-10-27 17:03:29 -03:00
Claude bcf101a0f3 FMini-1 v1.9.2: official V15 / V16 restore accepted (no boot-area compare for the official loader)
- 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
2026-10-27 15:23:19 -03:00
Claude 885dc3ee97 FMini-1 v1.9.1: MIDI CLOCK OFF / USB / TRS (replaces MIDI TEMPO SYNC)
- 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
2026-10-27 13:26:03 -03:00
Claude 625d4b5587 FMini-1 v1.9.0: MIDI TEMPO SYNC (ARP and SEQ follow the MIDI clock)
- 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
2026-10-27 11:17:33 -03:00
Claude a41d1705d2 FMini-1 v1.8.2: ARP / REC / TAP TEMPO pop-up
- 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
2026-10-27 10:20:10 -03:00
Claude 53946ae207 FMini-1 v1.8.1: fa_cc_poll stops at bit 31 (CC 31, 63, 95, 127)
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
2026-10-24 21:15:48 -03:00
Claude da5711a678 FMini-1 v1.8.0: a battery icon replaces the page number
- 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
2026-10-20 22:16:34 -03:00
Claude 4bcc94d6f8 FMini-1 v1.7.3: velocity no longer moves the filter cutoff
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
2026-10-20 21:41:49 -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