432 Commits
Author SHA1 Message Date
Claude c39e186699 Installer: drop the Portuguese "trocar de aba" and "tela apagada" lines
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-19 16:27:57 -03:00
Claude 13cd3f9f62 Installer: drop the English "switch tabs" and "screen may go blank" lines
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-19 16:08:10 -03:00
Claude e5e02c66fd Site and emulators for 2.6.7 (PEDAL POLARITY detected at power-on)
- docs/emu and docs/emu/smk rebuilt from the 2.6.7 firmware.
- docs/index.html regenerated with the four 2.6.7 packages.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-19 16:05:28 -03:00
Claude a98eb971c6 Budget: fm1_alnk0_irq 8778 -> 9670 (2.6.7 PEDAL POLARITY)
The audio interrupt's static loop cost rose 10.2 % with the sustain
code (a shared compilation unit; the code in the interrupt is unchanged).
Accepted by the owner. Measured on 2.6.5 at 9383, so the baseline was
already 6.9 % above the recorded budget before this change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-19 16:04:37 -03:00
Claude 137f8184e9 SMK-37: PEDAL POLARITY detected at power-on; version 2.6.7
- After the splash, the sustain jack is read once: a pedal that reads
  pressed (raw below 300) is normally closed, so REVERSE; one that reads
  open (above 700) is NORMAL. In between, the saved choice stays.
- The GLOBAL option can still be changed; the next power-on sets it again.
- Version 2.6.7; web editor FW_LATEST updated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-19 15:22:54 -03:00
Claude 0ca1459917 Site and emulators for 2.6.6 (SMK-37 PEDAL POLARITY)
- docs/emu and docs/emu/smk rebuilt from the 2.6.6 firmware.
- docs/index.html regenerated with the four 2.6.6 packages.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-19 15:15:01 -03:00
Claude c4cb125329 SMK-37: PEDAL POLARITY option (Normal/Reverse) in GLOBAL; version 2.6.6
- GLOBAL (SMK-37 only), before FACTORY RESET: PEDAL POLARITY NORMAL/REVERSE.
  NORMAL = normally open (pressed reads low), REVERSE = normally closed.
  It sets the physical sustain jack only; MIDI CC64 is unchanged.
- seq.c: sustain pedal state with hysteresis (300/700) on the raw ADC
  value; notes released while held are kept until the pedal goes up.
- Option stored in the favorites block (byte 24 + FA_NCC).
- Version 2.6.6; web editor FW_LATEST updated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-19 15:07:50 -03:00
Claude ef9b4fe6b6 Sound sample 004: a fast blues-rock solo without pitch bend
- tools/fmini_samples.py: sine_solo is a fast blues-rock solo in A at 140 bpm:
  sixteenth and triplet runs through the minor pentatonic with the blue Eb, a
  fast descent and a final run; no pitch bend events
- docs/sounds regenerated (004-sine-solo.mp3 and samples.json)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-18 19:49:35 -03:00
Claude 53a6425d46 Sound sample 004: a blues-rock solo without pitch bend
- tools/fmini_samples.py: sine_solo is a blues-rock solo in A at 110 bpm,
  shuffle eighths: the minor pentatonic with the blue Eb, call and response
  over A7 and D7, a turn, and a held A5; no pitch bend events
- docs/sounds regenerated (004-sine-solo.mp3 and samples.json)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-18 19:39:25 -03:00
Claude 3adea7a5d8 Site: sample cards show the preset name and a small white player beside it
- web/site_fmini.html: the description under each sample is removed (and its
  translation keys); each card is a row with the preset name and a compact
  white player (30 px play button, 96 x 30 waveform) instead of the full-width
  player; the section gets a 16 px gutter on phones
- docs/index.html regenerated

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-18 19:14:16 -03:00
Claude 649a8bb738 Site: the main screen's "See the screens" becomes "Try in browser" with a dropdown
- web/site_fmini.html: the first hero's second button opens a small menu with
  FM-1 (emu/) and SMK-37 (emu/smk/), instead of linking to #screens; the menu
  closes on an outside click and on Escape. The button on the SMK-37 slide is
  unchanged
- i18n: cta_try (pt "Testar no navegador", en "Try in browser")
- docs/index.html regenerated

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-18 16:35:08 -03:00
Claude 1db597f522 FMini-1 2.6.5: preset 004 SINE SOLO is a sine with the cutoff fully open
- tools/fmini_bank.py: OSC 1 wave sine (was the triangle), CUTOFF at its maximum
  (+5.0 on the dial, byte 127; was -1.9, closed)
- tools/gen_fmini_presets.py: the oscillator wave table takes 6 = SIN (the
  firmware's sine, eng_fmini.c); it was missing from the table
- firmware/src/eng_fmini_presets.h regenerated (only the 04 line)
- version 2.6.5 in core.h and web/editor_fmini.html (FW_LATEST)
- tests/golden.txt: preset/FMINI/04_SINE_SOLO only
- samples: 000 MINI LEAD a hard rock solo at 150 bpm (bends, runs, a held D6);
  004 SINE SOLO a soul ballad at 84 bpm in Bb (scoops, melisma, vibrato)
- docs/emu, docs/index.html, docs/sounds regenerated for 2.6.5

Tests: fmini_app_test and fmini_filter_test pass; the full suite fails only in
the sections already listed as known.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-18 14:49:55 -03:00
Claude 2a0bb47e38 Sound samples: 000 a fast Wakeman-style lead solo, 004 a jazzy solo
- 000 MINI LEAD: a fast synth solo at 160 bpm in E minor, in the manner of a
  Wakeman lead: sixteenth runs up and down, an arpeggio, a chromatic climb, a
  trill, a sweep down, a high D6 scooped up into, and a last E5 bent down; bends
  on the held notes
- 004 SINE SOLO: a jazzy solo at 130 bpm over Dm7 - G7 - Cmaj7 - Am7 - D7 - G,
  with swung eighths, chromatic approach notes, the blue Bb (flat third and
  flat seventh) and a slight bend at the end
- docs/sounds regenerated

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-18 14:25:11 -03:00
Claude 54ca7d9f5e Sound samples: pitch bend on 000, 001 an octave down, 008 two sustained notes
- 000 MINI LEAD: the melody uses the pitch bend (the factory's +-2): a scoop
  up into the E5, a fall off the C5 before the D5, and the last note bends
  up a semitone and back
- 001 MOOG BASS: the same riff, one octave lower
- 008 AURA ATMOS: two notes an octave apart (C3 and C4), sustained the whole
  sample, in the middle-lower register
- docs/sounds regenerated

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-18 14:11:14 -03:00
Claude bd03e82074 Sound samples: new arrangements of the first ten presets, in the register they sound
- tools/fmini_samples.py: each sample is written as a keyboardist's line, with
  rhythm and harmony rather than a scale: a syncopated lead in A minor (000),
  a sixteenth-note bass riff with octave jumps (001), chord loops with
  re-strikes (002), a pad progression with voices moving (003), an ornamented
  sung melody (004), a C pedal with a bell line (005), a syncopated horn riff
  over Bb-Gm-Eb-F7 (006), a violin line over strings (007), a cluster that
  turns into another (008), a legato theremin line (009)
- The octave is set per patch by a measured offset (HEARD_OFFSET): the patch's
  own footages (16') sound an octave or two below the key, so 000, 003, 005,
  006, 008 and 001 are sent higher than the note written; checked on the
  emulator with single notes at 48, 60 and 72
- docs/sounds regenerated (ten MP3 and samples.json)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-18 12:26:39 -03:00
Claude 986b4d2b46 FMini-1 2.6.4: patch 000 MINI LEAD, OSC 2 detune +0.08 (was +0.11)
- tools/fmini_bank.py: coarse byte stays 65 (nearest 11-cent step), the
  cents bytes carry the 8 (det_cents), as for patches 010 and 040
- firmware/src/eng_fmini_presets.h regenerated (only the 00 line)
- version 2.6.4 in core.h and web/editor_fmini.html (FW_LATEST)
- tests/golden.txt: preset/FMINI/00_MINI_LEAD only
- docs/emu, docs/index.html, docs/sounds regenerated for 2.6.4

Tests: fmini_app_test and fmini_filter_test pass; the full suite fails
only in the sections already listed as known (fm4, union, regress,
second core, ui, web pages).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-18 12:10:27 -03:00
Claude a1ebb46024 Installer workflow: publish the manuals and the sound samples
The Pages job copied only the installer, the emulators, the editor and the
video, so docs/sounds (the sound samples, empty waveforms and no audio) and
docs/manual (the user manual) never reached the site. Copy both, and add
them to the trigger paths.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-18 11:42:02 -03:00
Claude d3cadaeb45 Site: sound samples of the first ten presets (Sound section)
- tools/fmini_samples.py renders presets 000-009 through the firmware
  (docs/emu/felucca.wasm, tools/preset_lab.mjs) with a short line for each
  timbre, peak-normalised to -1 dBFS, and writes docs/sounds/NN-name.mp3 (10 s,
  112 kbps) and docs/sounds/samples.json (120 waveform bars per sample).
- Sound section: ten cards with a white player each: a play button that turns
  into stop, the waveform (the played part orange), one sample at a time.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-18 11:36:35 -03:00
Claude 711ba0c335 Site: Manual dropdown 130px wide
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-18 11:26:35 -03:00
Claude f5020f1183 Site: Manual dropdown back to the default width
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-18 11:24:18 -03:00
Claude 8b51751624 Site: Manual dropdown lists only FM-1 and SMK-37
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-18 11:22:14 -03:00
Claude e74908b22c SMK-37 is no longer beta: drop the beta labels
- Top-bar dropdown and the SMK-37 manual: no "beta" in the labels, the
  notices or the footer; the manual's TRS note keeps the wiring facts only.
- SMK37.md: the title loses "(beta)" and the "not tested on a real SMK-37"
  line goes.
- The site's general "experimental release" note is unchanged (it covers the
  whole firmware).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-18 11:21:14 -03:00
Claude 7b14aa56d5 Site: Manual dropdown before Try in browser in the top bar
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-18 11:19:41 -03:00
Claude c86b315136 Site: user manual for the FM-1 and the SMK-37, linked from the top bar
- docs/manual/fm1 and docs/manual/smk37: the manuals (PT / EN, the language
  kept in localStorage "fmini-lang" like the site and the emulator). The FM-1
  one has the device photo with numbered callouts, the screen with its areas
  numbered, the seven pages with their parameters, presets and SAVE, GLOBAL
  (MIDI SETTINGS, NOTE PRIORITY, ABOUT), ARP, SEQ and a signal-flow diagram.
  The SMK-37 one has the panel with callouts, the controls table, the knob and
  fader banks, the pads, MIDI, the models and the safety notes; it says it is
  beta and was not tested on a real SMK-37.
- Top bar of the manual pages: back to the official site, the Manual pages
  (FM-1 / SMK-37), Support us, and the PT / EN switch, as in the emulator.
- web/site_fmini.html: a Manual dropdown (FM-1, SMK-37) beside the emulator's
  one; docs/index.html regenerated from it with make_fmini_installer.py 2.6.3
  (the only change in it is the nav).
- manual.css and manual.js are shared by both pages; the screenshots are the
  FM-1 screens of this version (tools/readme_shots.c).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-18 11:16:53 -03:00
Claude ce06535dbf README: restore the previous banner
The banner regenerated with the new screens was not wanted; assets/readme/banner.png
goes back to the version of 4da7e2f. The eight screens keep the new renders.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-18 10:23:39 -03:00
Claude ac5a481ed6 NOTE PRIORITY defaults to LAST (2.6.3)
- firmware: the factory reset, an erased config byte and the GLO list's
  initial value now read LAST (was LOW). A device that saved its own value
  keeps it. Mono voices pick the last key played where they picked the
  lowest before, in every engine (the default is global).
- tests: the reset check expects LAST; the goldens of the FMINI renders
  that play several keys moved on purpose (90 lines). Two stale goldens of
  other engines now match again (FM6/02_FM_BASS, LOFI/04_STEP_LEAD).
- web: EDITOR_PROTOCOL notes the default; FW_LATEST 2.6.3.
- emulators and installer regenerated for 2.6.3 (FM-1 and the three SMK-37).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-18 09:49:29 -03:00
Claude 1feeb80e1f README: regenerate the screenshots, drop the SMK-37 beta line
- assets/readme/: banner and the eight screens re-rendered by
  tools/readme_shots.c (the firmware's own drawing) through
  tools/gen_readme_art.py (preset screen shows VOLUME 0..127 and the 2.6.x UI).
- README.md: the "M-Vave SMK-37 (beta)" line is removed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-18 09:31:38 -03:00
Claude 4da7e2f722 Installer: drop "Install another firmware", rename Details to Download firmware
- web/site_fmini.html: the custom .fwsc picker (button, hidden input, its
  change handler, the picked state and its strings) is removed; the install
  always uses the package list. The collapsed section that was "Details"
  (pt "Detalhes") is "Download firmware" (pt "Baixar firmware").
- docs/index.html regenerated; the packages are unchanged (2.6.2).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-17 09:36:33 -03:00
Claude 93956560e7 PRESET save keeps MONO / POLY (2.6.2)
- firmware: a saved preset's mono byte (PARAM byte 13) was 1 only for
  LEGATO, so a MONO patch saved as POLY and loaded as POLY. It now uses the
  factory's meaning: 1 = MONO, 0 = POLY. Factory patches and their goldens
  are unchanged.
- web: EDITOR_PROTOCOL notes that records saved by 2.6.1 or earlier that
  were MONO load as POLY (save them again); FW_LATEST 2.6.2.
- emulators and installer regenerated for 2.6.2 (FM-1 and the three SMK-37).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-17 09:32:11 -03:00
Claude 46ff998768 PRESET SETTINGS VOLUME shows 0..127 (= the stored level), 2.6.1
- firmware: the VOLUME row of PRESET SETTINGS shows and turns the stored
  P_LEVEL itself (0..127), instead of the 0..10 dial that was a rounding
  of it. The sound does not change: the level is the same byte.
  The gauge is level * 1000 / 127.
- tests: fmini_app_test turns VOLUME over its full 0..127 range.
- web: FW_LATEST 2.6.1.
- emulators and installer regenerated for 2.6.1 (FM-1 and the three SMK-37).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-16 15:03:30 -03:00
Claude 02f5c53b09 Merge new-filter into main: CA-72 ladder and contour, 2.6.0
Brings the new-filter branch (ladder calibration against the CA-72) onto
the CPU-optimised main, and resolves the two branches' overlap by hand.

- firmware: the ladder's input is halved (12 dB headroom, FMINI_LADDER_IN)
  and the differential pairs take a bias (FMINI_PAIR_BIAS); the filter
  contour follows the CA-72's AMOUNT taper over 6.3 octaves (FMINI_CNTR).
  The oscillator first-write and voice-ramp running sums from main are kept.
- factory bank and generated headers regenerated from their generators.
- tests: the 100 FMINI goldens moved on purpose (the sound changed); the
  other engines' stale goldens are untouched. The budget is regenerated.
- web: EDITOR_PROTOCOL notes the CNTR change (stored values keep their raw
  amount, so older patches sweep further; no migration), FW_LATEST 2.6.0.
- emulators and installer regenerated for 2.6.0 (FM-1 and the three SMK-37).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
v2.6.0
2026-11-15 18:17:19 -03:00
Claude 58e4229a75 emulator: regenerate docs/emu and docs/emu/smk for v2.5.14
Built with the WASI SDK 25 (wasi-sdk-25.0-x86_64-linux), the FM-1 and the
SMK-37 browser emulators from the 2.5.14 sources.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
v2.5.14
2026-11-15 11:05:51 -03:00
Claude cb52ddd750 site: installer for v2.5.14
Regenerated docs/index.html with the four 2.5.14 packages (FM-1 and the
three SMK-37 models). The browser emulator (docs/emu) is not regenerated
here: it needs the WASI SDK, which this session does not have.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-15 10:43:26 -03:00
Claude edf11ddc40 tests: the note-off check sets the NOTE PRIORITY the engine reads
chk_mode_release set the track's P_PRIO (the Felucca VOICE page) for the
LAST / LOW / HIGH cases, but the engine's mono stack reads glo_note_prio,
the GLO list's NOTE PRIORITY, which is the one FMini-1 shows and changes.
With the default LOW the LAST and HIGH expectations failed (76 sounded
instead of 80) in MONO, LEGATO and UNISON: 6 of the 76 cases.

The check now sets glo_note_prio as well. No engine change: the sound is
the same; the regression reports 0 voice / routing checks failed. The 157
changed golden renders are the known stale hashes, unchanged here.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-15 10:42:27 -03:00
Claude 985a600f78 FMini-1: v2.5.14 (the first-write mix, BLEP bounds, delay off at MIX 0)
Firmware version 2.5.14 in core.h and FW_LATEST in the web editor. The
changes since 2.5.13 are on fx-cpu-opt: fewer loop passes in the voice
mix, the oscillator BLEP bounds worked out once per call, the chorus and
insert loops back to main, and the delay off at MIX 0 (it restarts
silent when MIX rises again, so it is not bit-exact with 2.5.13 there).

Not measured on a device.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-13 17:58:14 -03:00
Claude a507f99773 Budget: fmini_wave 323 -> 348 for the first-write mix
Each wave loop now masks the mix with keep (one AND per sample), in
exchange for the zeroing pass that fmini_render no longer runs. The
compiled static cost is 348; the check allowed 355 (+10 %), and the
build passes. Measured: none on the device yet.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-13 17:50:54 -03:00
Claude 1e4f29cd15 FMini voice: the mix is written by its first oscillator, not zeroed first
fmini_render zeroed the 32-sample mix and then each oscillator added to
it. The first oscillator now writes the mix (keep 0) and the others add
(keep -1, as before): one store pass less per voice per block. 0 + x is
x in integers, so the samples are the same bits. A voice whose
oscillators are all off still zeroes the mix before its noise is added.

Checked: an old-versus-new fmini_wave harness over 800000 random calls
(both keep values, every wave, steps from tiny to huge) gives identical
samples and phases; the regression renders print the same hashes as the
committed version; fmini_fx_test passes.

Not measured: the static cost budget (tests/target_budget.py) could not
be rechecked here, the AC79 SDK is not available in this session; the
fmini_wave loops gain one AND each, fmini_render loses the zeroing loop.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-13 17:18:39 -03:00
Claude fdb30b962c FMini oscillators: BLEP bounds worked out once per call
fmini_wave tested the polyBLEP residual's two bounds on every sample
through osc_saw / osc_pulse. The step d and the bounds (lo, hi) are the
same for the whole call, so they are computed once and each sample tests
two constants; the pulse waves compute their two saws in one expression.
The residual's arithmetic is the same as dsp.c's blep, bit for bit: an
old-versus-new harness over 400000 random calls (every wave, steps from
tiny to huge, phases at the wrap) gives identical output and phase.

Static cost of fmini_wave 345 -> 323 (budget updated).

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-13 16:53:28 -03:00
Claude bfa9428d40 FX: restore cho_block and ins_swept to main
Their per-type loop copies raised the static budget (cho_block +39,
ins_swept +72) and no CPU gain was measured for them. The budget counts
every loop body, though only one runs per block, so the rise does not
mean more cost at run time; the two functions are reverted to main
rather than raising their budget to hide a number nobody measured.

The other changes stay: voice ramp, mix_part sends, track_dist, ins_drive,
the FMini stereo reverb room, and the delay. The FX harness and the
regression goldens still match main; the budget values for cho_block and
ins_swept are the main ones again.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUF6pQ1NkTwmBC8SR8AK94
2026-11-13 16:39:04 -03:00
Claude c51c6974dd FX and voice: state in locals, loop-invariant tests out of the loops
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
2026-11-12 20:30:57 -03:00
Claude 8cefbd9ab4 FX: delay and chorus state in locals, one loop per delay type, delay off at MIX 0
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
2026-11-12 19:38:29 -03:00
Ruppert 74375d3311 Update README.md 2026-11-12 17:10:09 -03:00
Claude 994f6ee605 PT / EN button on the editor and both emulators; the SMK-37's BT and K4 in the editor's question
- 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
2026-11-12 15:40:11 -03:00
Claude a08fba80ff Editor: the preset order is a pop-up in PRESETS (four columns, live drag, Shift runs); the USB button goes
- 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
2026-11-11 23:50:27 -03:00
Claude 991c297eee Editor: Connect tries the other FMini-1 ports when the first one does not answer
- 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
2026-11-11 23:30:33 -03:00
Claude 37ea834037 Editor: the emulators' top bar; installer: "Donate" after the install
- 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
2026-11-11 23:24:21 -03:00
Claude d594adcd14 v2.5.13: the SMK-37 shows up on USB as "SMK-37"
- 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
2026-11-11 23:13:03 -03:00
Claude 0d3086db8c Editor: fix the connection (port filter back, same-name ports paired by order, the picked port kept)
- 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
2026-11-11 21:26:13 -03:00
Claude f6a9ca5122 Editor: console diagnostics for the connection
- 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
2026-11-11 21:09:00 -03:00
Claude be48549213 Editor: an ORDER tab to reorder the 200 presets and save the order to the device
- 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
v2.5.12
2026-11-11 17:13:37 -03:00