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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user