Class thl::dsp::fx::IntellijelWavefolderImpl#
-
class IntellijelWavefolderImpl : public thl::dsp::BaseProcessor#
Inheritance diagram for thl::dsp::fx::IntellijelWavefolderImpl:
Collaboration diagram for thl::dsp::fx::IntellijelWavefolderImpl:
Intellijel-style wavefolder processor.
Models the analog wavefolder topology found in the Intellijel µFold / Bifold modules. Uses a sine-shaping transfer function with a continuous
Foldsparameter, followed by a 12 dB/oct lowpassTonecontrol that darkens the folded harmonics.Folding is level-independent. A per-channel peak follower (instant attack, 50 ms release) tracks the input envelope; the signal is divided by it, folded in that unit domain and scaled back by it. The same Drive therefore produces the same harmonics on a quiet and a loud input, and the output follows the input’s envelope. Input below -60 dBFS is treated as silence, so a silent input stays silent at any Symmetry.
The output level is set by a fixed makeup gain that depends only on the (smoothed) Drive·(1 + Folds): unity gain while the sine is still linear, unity peak once it folds. The shaper’s zero-input value is subtracted, so Symmetry adds even harmonics without adding DC that follows the envelope; a one-pole DC blocker removes what remains.
All parameters are smoothed per sample, so they can be modulated or stepped at control rate without zipper noise.
Processes all input channels in-place.
Parameters: Drive – gain into the folder relative to the input envelope [0.1, 20]; the first fold starts at Drive·(1 + Folds) = π/2 Folds – fold depth [0, 10]; fractional values interpolate smoothly Symmetry – offset before folding, relative to the envelope [-1, 1]; adds even harmonics Tone – lowpass cutoff [0 = dark (1 kHz), 1 = open (just below Nyquist)], exponential sweep
Public Functions
-
IntellijelWavefolderImpl()#
-
~IntellijelWavefolderImpl() override#
-
virtual void prepare(const double &sample_rate, const size_t &samples_per_block, const size_t &num_channels) override#
-
virtual void process(thl::core::BufferView buffer, uint32_t modulation_offset = 0) override#
Protected Types
-
IntellijelWavefolderImpl()#