mirror of
https://github.com/ruppert/fmini-1.git
synced 2026-12-06 21:04:26 +01:00
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