Add Granulator and Auto Granulator pedals; color-code + filter pedal picker
- StereoGranulator generator: records mono input into a circular buffer and replays overlapping Hann-windowed grains, each randomly panned by `spread` (0 = centred, 1 = full field). Voice pool + control-rate grain size / overlap / spread, all pre-allocated; inlined xorshift64 for grain pans. - GranulatorPedal (.widener): Grain / Overlap / Spread. - AutoGranulatorPedal (.widener): grain size tracks input level via AmplitudeFollower → LinLin, with a Response switch (Loud→Short / Loud→Long) selected by a CrossFade. Min/Max Grain / Overlap / Spread. - Pedal picker (PedalPaletteView): cards colour-coded by a new PedalCategory (Gain/Dynamics/EQ&Filter/Modulation/Pitch/Delay/Reverb/Texture) plus a "filter by type" menu defaulting to All. Tests: generator (seeded determinism + stereo-spread L/R separation) and both pedals (build/non-silent, param/response changes, knobs, registry, preset round-trip). Suite 271. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -43,6 +43,8 @@ private func enclosureColor(for displayName: String) -> Color {
|
||||
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
|
||||
case "Granulator": return Color(red: 0.20, green: 0.55, blue: 0.50) // sea green
|
||||
case "Auto Granulator": return Color(red: 0.24, green: 0.50, blue: 0.56) // teal-aqua
|
||||
default: return Color(red: 0.36, green: 0.36, blue: 0.38) // steel gray
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user