Files
ShoeGaze/Sources
josh 89a34016de feat(karplus): add Free-Hz vs Note+Octave tuning modes
The Karplus Resonator root can now be set two ways, via a Tuning selector:
- Free: the continuous Tune Hz knob (unchanged behaviour, still the default).
- Note: an equal-tempered pitch chosen with Note (C…B) and Octave (1…6)
  selectors. A4 = 440, so A3 = 220 Hz, etc.

noteFrequency() computes the root from scientific-pitch note/octave; the
string bank reads whichever root the mode selects. The per-string delay line
is widened to 0.08 s so the lowest Note-mode roots (down to a sub-C1 octave
string) fit without the KarplusStrong frequency clamp engaging.

Tests: equal-temperament mapping, Note-mode A3→220 Hz ring, octave shift,
and selector/preset round-trip. Full suite 794 green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-24 14:55:40 -08:00
..