Add Bitcrusher pedal with SampleRateDecimate and BitReduce generators

Two new RT-safe generators (ShoeGaze): SampleRateDecimate (sample-and-hold
decimator, control-rate downsample factor) and BitReduce (quantise to
2^bits levels via integer shift, control-rate bit depth). BitcrusherPedal
chains decimate → bit-reduce → tone low-pass (Crush/Bits/Tone).

Registered with enclosure color + palette slot. Tests: build/non-silent,
crush-changes-output, bits-change-output, knobs, registry. Suite 242.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-27 21:32:03 -07:00
parent a334a76f7c
commit 7ceb93e411
8 changed files with 347 additions and 2 deletions
@@ -59,6 +59,7 @@ public enum PedalRegistry {
"Sustainer": { SustainerPedal() },
"Ring Modulator": { RingModulatorPedal() },
"Diffuser": { DiffuserPedal() },
"Bitcrusher": { BitcrusherPedal() },
]
/// Returns a new `Pedal` instance for the given type string, or `nil` if the type