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:
@@ -41,6 +41,7 @@ private func enclosureColor(for displayName: String) -> Color {
|
||||
case "Ring Modulator": return Color(red: 0.64, green: 0.30, blue: 0.10) // burnt amber
|
||||
case "Diffuser": return Color(red: 0.34, green: 0.30, blue: 0.62) // periwinkle
|
||||
case "Harmonizer": return Color(red: 0.52, green: 0.20, blue: 0.40) // wine / mauve
|
||||
case "Bitcrusher": return Color(red: 0.30, green: 0.34, blue: 0.40) // slate / digital gray
|
||||
default: return Color(red: 0.36, green: 0.36, blue: 0.38) // steel gray
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user