Skip to content

Proposal: Extended Pedal Tone Modules (Wah, Fuzz, Clean Boost) #63

@NickFlach

Description

@NickFlach

Context

With the recent addition of distortion.h (PR #47), AudioNoise now has basic waveshaping for overdrive/distortion tones. This proposal extends the pedal library with additional modules that require different DSP approaches.

Proposed Modules

Module Description Key New Primitives Needed
Wah Swept bandpass filter (manual or auto) Envelope follower
Fuzz Octave-up, gated, square-wave clip Foldback distortion, noise gate integration
Clean Boost Transparent gain + tone shaping Existing biquads suffice
Bright Character Presence/twang EQ Peaking/shelving filters

New Primitives Required

envelope.h - For auto-wah and dynamics-controlled effects:

  • envelope_follow(state, in, attack, release) - tracks signal amplitude

Extended waveshapers (complement existing distortion.h):

  • fold_back(x, threshold) - signal folds back when exceeding threshold, creates complex harmonics for synth-fuzz tones
  • tube_clip(x) - polynomial tube approximation with soft knee
  • diode_clip(x, ratio) - asymmetric diode emulation

Implementation Approach

  • Follow existing *_init(pot1-4) + *_step(in) pattern
  • Self-contained headers with no assumed external dependencies
  • Reference distortion.h for waveshaping patterns
  • Integrate with existing noise gate work (commit 2a4f191)

Related

Happy to submit a PR starting with the extended waveshaper primitives.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions