feat(poly-octave): EHX POG-style polyphonic octave pedal
Add PolyOctavePedal: a fixed-interval polyphonic octave generator. Four PitchShift voices at exact power-of-two ratios — −2, −1, +1, +2 octaves, each single-stage within PitchShift's [0.25, 4.0] clamp — stacked under a dry voice, each with its own level. Because the ratios need no pitch tracking, chords stack as cleanly as single notes. A Tone low-pass shapes the shifted voices (dry stays clean). An Attack knob adds the POG's volume swell via a "slow-gear" gain: the ratio of a slow envelope follower to a fast one, clamped to [0, 1] and guarded against divide-by-zero — unity (instant) at Attack 0, blooming in as it rises, independent of playing level. The five voice levels sum without an internal limiter (as with BassOctaver); the level knob and board master set final gain. Wire into PedalType, the registry, and the pitch category; add to the README pitch catalog. 12 tests: per-voice pitch (±1/±2 oct + unison) by autocorrelation, swell neutral-vs-bloom, seeded determinism, a click-free bypass flip at the real 512-sample block, knob labels, preset round-trip, registry presence. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -54,6 +54,7 @@ public enum PedalCategory: String, CaseIterable, Identifiable, Sendable {
|
||||
"Tremolo": .modulation, "Phaser": .modulation, "Modulation": .modulation, "Chorus": .modulation,
|
||||
"Flanger": .modulation, "Vibrato": .modulation, "Rotary": .modulation, "Ring Modulator": .modulation,
|
||||
"Bass Octaver": .pitch, "Octave Splitter": .pitch, "Harmonizer": .pitch, "Whammy": .pitch,
|
||||
"Poly Octave": .pitch,
|
||||
"Delay": .delay, "Feedback Delay": .delay, "Multi-Tap Delay": .delay, "Ping-Pong": .delay,
|
||||
"Reverse Delay": .delay,
|
||||
"Reverb": .reverb, "Shimmer Reverb": .reverb,
|
||||
|
||||
Reference in New Issue
Block a user