Same sound, checked bit for bit:
- fmini_render: the voice's amplitude ramp by a running sum (amp_at's
x = (amp1 - amp0) * i, one add a sample) instead of a multiply a sample.
- mix_part: the part's level and pan in one loop, each send on its own loop
(a send at 0 is no loop, and no test per sample).
- track_dist: the states in locals; the TUBE and the plain clipper as two loops.
- ins_drive / ins_swept: states in locals; CRUSH vs the rest, and CHORUS vs
FLANGER, one loop each (the kind is one a block).
- cho_block: one loop per chorus TYPE, the state in locals.
- rev_room (FMini-1, stereo): the combs' and allpasses' indices and low-passes
in locals for the block.
tests/target_budget.txt: updated on purpose. The static count sums each loop's
code, so the loop bodies that are now one per TYPE (cho_block +39, ins_swept
+72) count more, while only one of them runs in a block. Reduced: mix_part
-529, ins_drive -93, dly_block -19, track_dist -6, fmini_render -1.
Checked:
- FX harness, 105 configurations (delay x chorus x reverb types, sends and
parameters moving): identical hashes.
- track_dist and the INSERT types (0..8, TUBE on and off, fades): 108
configurations identical to the previous code.
- tests/regress: all 288 golden hashes identical to main.
- union_test output identical to main.
- The full suite: only the known failures (fm4, ui_render, the regressions,
union_test) fail; nothing new.
Not done: the master chain (its block version showed no gain on the host and
moved the ISR's static count), the PLATE and HALL reverbs, the perform layer.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
CPU work on the FX buses (sound unchanged, checked bit for bit):
- chorus (cho_block) and delay (dly_block) keep their state (write index,
phases, low-passes) in locals for the block and write it back at the end,
instead of loads and stores of fx.* on every sample.
- dly_block chooses its TYPE once a block: one loop per type, not a switch
inside the per-sample loop. Taps and writes go through dly_at_w / dly_atq_w
/ dly_put_w on the locals.
Behaviour change (on purpose): the delay bus is off while its MIX (G_DMIX) is
at 0, the same way as a bus whose sends are all 0. Its state is cleared when it
starts again. The chorus DEPTH at 0 stays on (a pure delayed tone, as
fmini_fx_test documents).
Checked: a harness renders the 7 delay types x 3 chorus types x 5 reverb types
with sends and parameters moving mid-run; the output hash is identical before
and after (105 configurations). MIX 0 gives the same output as the delay send
at 0. Oscillators already skip their wave at level 0. tests/regress: the same
goldens changed before and after (the 157 already differ on main).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
- Editor, FM-1 emulator, SMK-37 emulator: the site's language button (PT / EN) at the top right. The
emulators get Portuguese texts (bar, hints, power button, errors, footer, titles); the panel's printed
labels stay as on the hardware. The editor changes language in place (the connection stays).
- One choice for the four pages: localStorage "fmini-lang" (the site keeps it too); else the browser's.
- Phones: the bar fits with the button (no wrap, tighter links).
- Editor: on a port named SMK-37 the panel question says ALGORITHM (K4) = YES, then BT (BT is the SMK-37's
SAVE); the footer names BT too. Test: the FM-1 says SAVE, the SMK-37 BT.
- docs/emu (both) and docs/index.html rebuilt.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
- PRESETS: a section "Manage presets" before BACKUP, with "Change order". It opens a pop-up with the 200
presets in four columns (000 at the top of the first). The ORDER tab is gone.
- Drag a preset with the mouse, a pen or a finger: the grid moves place by place while dragging. Click one,
Shift+click another: the run between them moves as one. Near the edges the list scrolls. A preset away
from its slot on the device is marked. Undo order, Close (asks before discarding a change), Escape.
- Save to device as before (the 200 records, the panel's question); the pop-up closes, and shows the order
again if the writing fails.
- The USB button (the playback counters, a debugging aid) is removed with its pop-up and texts.
- Test: the pop-up, a drag checked before the button is let go, a Shift run, the save, Close.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
- With no port picked in the list, Connect tries the first matching port, then the others, and keeps
the first one that answers; the list shows it. Before, it gave up after the first one, so an SMK-37
listed after another matching port did not connect until it was picked by hand.
- A port picked in the list is still the only one tried.
- Test: two "FM-1 Midi" devices, the first silent: Connect reaches the second; a port picked by hand
is the only one tried.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
- Editor: the site's bar, as in both emulators (brand, "FMini-1 website", "Support Us"); the connection
(status, port, Connect, USB) moves to a bar under it.
- Installer: the button of the pop-up after an install says "Contribuir" / "Donate" (was "Apoiar no Ko-fi" /
"Support on Ko-fi").
- docs/index.html rebuilt: it also gets the 2.5.13 splash screenshot (the v2.5.13 commit embedded the
2.5.12 one, built before the screenshot).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
- Firmware: on the SMK-37 build (Pro, Elite, MKE-P37) the USB device name is "SMK-37" and the audio
output's "SMK-37 Audio" (they were "FM-1 Midi" and "FM-1 Audio"). The FM-1 is unchanged. The loader keeps
"FMini-1 Update".
- Editor: the port filter also takes "smk-37" (the whole name, not parts of it); the status line says
"(SMK-37)" on that port. FW_LATEST 2.5.13.
- Test: a port named SMK-37 connects and the status line says so.
- Web: both emulators, the installer page (the four 2.5.13 packages) and the splash screenshot rebuilt.
- Host suite: all passed apart from the known sections.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
- The port filter is /fm-1|fmini|felucca/ again: the wider one of 5a6c54d (smk, mke, p37, elite) made the
editor open another port on the owner's computer, and the FM-1 stopped connecting. The SMK-37 on FMini-1
shows the same port name, "FM-1 Midi", so it needs no pattern of its own. The status line no longer names
the device (the port name cannot tell them apart).
- Two devices with one port name (an FM-1 and an SMK-37): the n-th input of a name goes with the n-th
output of that name (before, every input went with the first output), and the list shows "NAME (2)".
- Connect keeps the port picked in the list (it went back to the first matching port).
- Test: two "FM-1 Midi" devices, the first silent; the second connects through its own output.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
- Logs the port the page connects to (input and output names).
- Logs each command that gets no reply in time, with the time it waited.
- Logs each SysEx that is not the answer waited for, with its first bytes.
Nothing changes for the user: the messages go to the browser console only.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
- New tab ORDEM / ORDER: the 200 presets in the device's order. Drag a row, or use its up and down arrows
(touch too). Undo order goes back to the device's order.
- SAVE TO THE DEVICE reads the 200 records (FMINI_REC), puts them in the new order and writes them through
the restore's own question on the panel (FMINI_RESTORE, FMINI_RPUT). The restore's writing loop is
now shared (writeAll) with the backup restore.
- A preset's category stays with its old slot: it is a table in the firmware, indexed by slot.
- The test moves a row, saves, checks the device's order, moves it back and saves again.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
- The port filter matches the SMK-37 names (SMK, MKE, P37, Elite) as well as the FM-1.
- The status line names the device connected: "FM-1" or "SMK-37", from the port name.
- The texts (connected, not found, pick a port, not a FMini-1) say FM-1 or SMK-37.
- web/test_editor_fmini.py still passes.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
tools/readme_shots.c draws the screens the site shows that it did not
before (CTRL, F.ENV, A.ENV, GLO's MIDI CC list, the SAVE dialog); the site's
screens (assets/site/*.webp, 960 x 960) are rebuilt from the firmware's own
code at v2.5.12. The hardware pictures (fm1, smk37) are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
- core.h: one FMINI_VERSION (2.5.12) for both boards; FMINI_SMK_VERSION goes.
The FM-1 build differs from v2.5.5 only in its version; the SMK-37
packages are byte for byte the v2.5.12 ones.
- build.py, build_wasi.sh, make_fmini_installer.py and the workflow read
FMINI_VERSION for both; editor FW_LATEST 2.5.12; the site shows one version.
- CLAUDE.md: one version, one release with the four packages (tag vX.Y.Z).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
The finish starts as Pro Charcoal; the one the visitor picks stays in the
browser (localStorage), as before. docs/emu/smk/index.html is rebuilt by
build_wasi.sh (the previous copy had lost the version substitution).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
Dark background and the site's colours and type; the top bar with the
FMini-1 mark, "SMK-37 emulator", "FMini-1 website" and "Support Us" (Ko-fi),
as on emu/smk/. The panel is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
- Site text (pt, en) covers both keyboards; new SMK-37 section; the hero film
shrinks the Minimoog into the FM-1's and the SMK-37's screens.
- Installer: embeds the FM-1 package and the SMK-37 Pro, Elite and MKE-P37
ones, picks the package by the identity found and says which device it
detected after step 1; when none is found by name it asks for the MIDI
input and the device. Details lists every .fwsc.
- "Try in browser" opens a menu: FM-1 (emu/) or SMK-37 (emu/smk/).
- SMK-37 emulator: felucca_web.c with BOARD_SMK37 (web/emu/smk_web_input.h),
its own worklet and page, the panel adapted from Felucca SMK's simulator
(Chance Roth, GPL-3.0; credited). The FM-1 wasm is unchanged.
- Installer workflow builds the three SMK-37 packages and publishes them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
The SMK-37 board layer and its FMini-1 mapping, all behind BOARD_SMK37 (SMK37.md). The
conflicts (CLAUDE.md, core.h, fmini_app.c) take the branch's side, which already holds
main's v2.5.1..v2.5.5. The FM-1 build is main's v2.5.5, byte for byte.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
OFF (every factory preset): the sound plays every note at 127, the 37 keys included;
ON: as played. MIDI OUT always sends the velocity.
The branch's FM-1 build is main's v2.5.5, byte for byte.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
- The last line of PRESET SETTINGS. OFF: the sound plays every note at velocity 127
(voice.c trk_note_on); ON: as played. MIDI OUT always sends the keys' velocity.
- Kept in the preset (FR_PSET's fifth byte; a factory or older record reads OFF) and, as
PITCH BEND, for the sound playing at power-on (the settings byte 23 + FA_NCC); FACTORY
RESET and loading a factory preset turn it OFF.
- tests/fmini_app_test.c: the row, OFF plays 127, ON plays the velocity, kept in a saved
preset, a factory one is OFF. ui_test.c / midi_control_test.c define fm_vel_sens.
- web: FW_LATEST 2.5.5, docs/emu and docs/index.html rebuilt.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
FACTORY RESET above SUPPORT FMINI-1: every saved preset back to the factory's and GLOBAL's
settings as they come (on the SMK-37 also MIDI OUT ALL, MIDI OUT CH 1); the question with
the SMK's names (K4: YES / NO, BT: OK). GLO held opens ABOUT on its row.
The branch's FM-1 build is main's v2.5.4, byte for byte.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
v2.5.3 moved ABOUT to GLOBAL's row 6 but GLO held still put the cursor on row 5 (SUPPORT),
where ALGORITHM from ABOUT came back. tests/fmini_app_test.c checks row 6. (The host suite
ran green on v2.5.3; this changes one constant: fmini_app_test rerun.)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
- A line above SUPPORT FMINI-1 opens a question as SAVE's OVERWRITE one (NO first,
ALGORITHM YES / NO, SAVE: OK; any other key goes back to GLOBAL). YES forgets every
saved preset (fmini_bank.c fb_reset_all: the bank's objects emptied at once), puts
GLOBAL's settings back as they come (fa_cfg_defaults) and reloads the sound playing as
its slot's factory preset; RESET DONE shows.
- GLOBAL: FACTORY RESET row 4, SUPPORT 5, ABOUT 6.
- tests/fmini_app_test.c: the rows, the question, NO and YES.
- web: FW_LATEST 2.5.3, docs/emu and docs/index.html rebuilt.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
- main's f969bd3 (FM-1 v2.5.2): 000 MINI LEAD MONO, PITCH BEND +/-2, F.ENV SUSTAIN 7.9.
- The preset picker pads: dim blue, the loaded one bright white (the owner's; they were
all orange in 2.5.9).
The branch's FM-1 build is main's v2.5.2, byte for byte.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
- tools/fmini_bank.py: 000 MINI LEAD set MONO and its F.ENV SUSTAIN 100 (7.9 on the
screen); PITCH BEND +/-2 is what a factory patch gets (no PRESET SETTINGS record).
MODE was MONO already; the SUSTAIN was 70 (5.5).
- eng_fmini_presets.h regenerated; tests/golden.txt: the 00_MINI_LEAD line only.
- web: FW_LATEST 2.5.2, docs/emu and docs/index.html rebuilt.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
main.c smk_wheels moved the wheel's centre one count every 200 calls while it was in the
dead band, and it runs thousands of times a second: the centre followed a slow push of
the wheel, and on release the wheel was off that centre, a bend that stayed (a slow
13-count push left the centre 12 counts off). Now the centre drifts one count every
0.5 s, and only after the wheel has rested in the dead band for 1 s.
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
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
- < / >: they choose and the preset pop-up shows the slot reached; it is loaded when the
button is let go. Held 0.66 s (was 1 s) they run on, ten a second. In the SAVE dialog
they move its slot at once, as before. The picker pads follow the slot reached.
- SEQ pads: a step with a note in its window's colour (1-16 blue, 17-32 red, 33-48
yellow, 49-64 green), the step that plays white, rests and empty steps dark.
- MASTER VOLUME: the preset pop-up's size (AF_L, MASTER / VOLUME on two lines, the value),
the bar about twice as tall and wider.
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
- SAVE: PRESETS (and the SMK-37's pads) move only the slot; the name being saved
stays (it was replaced by the picked slot's name).
- The OVERWRITE question shows the preset that would be lost (its number and name as
the slot holds it now) in the large font of OVERWRITE; a name too wide drops the
number, then takes the next size.
- tests/fmini_app_test.c: another slot keeps the name.
- web: FW_LATEST 2.5.1, docs/emu and docs/index.html rebuilt.
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