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
+1
View File
@@ -66,6 +66,7 @@ public extension PedalType {
static let rotary = PedalType("Rotary")
static let ringModulator = PedalType("Ring Modulator")
static let diffuser = PedalType("Diffuser")
static let bitcrusher = PedalType("Bitcrusher")
// Dynamics (additional)
static let sustainer = PedalType("Sustainer")