Class thl::dsp::fx::IntellijelWavefolderImpl#

class IntellijelWavefolderImpl : public thl::dsp::BaseProcessor#

Inheritance diagram for thl::dsp::fx::IntellijelWavefolderImpl:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "2" [label="thl::dsp::BaseProcessor" tooltip="thl::dsp::BaseProcessor"] "1" [label="thl::dsp::fx::IntellijelWavefolderImpl" tooltip="thl::dsp::fx::IntellijelWavefolderImpl" fillcolor="#BFBFBF"] "1" -> "2" [dir=forward tooltip="public-inheritance"] }

Collaboration diagram for thl::dsp::fx::IntellijelWavefolderImpl:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "2" [label="thl::dsp::BaseProcessor" tooltip="thl::dsp::BaseProcessor"] "1" [label="thl::dsp::fx::IntellijelWavefolderImpl" tooltip="thl::dsp::fx::IntellijelWavefolderImpl" fillcolor="#BFBFBF"] "1" -> "2" [dir=forward tooltip="public-inheritance"] }

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 Folds parameter, followed by a 12 dB/oct lowpass Tone control 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

enum Parameter#

Values:

enumerator Drive#
enumerator Folds#
enumerator Symmetry#
enumerator Tone#
enumerator NumParameters#

Protected Functions

template<typename T>
T get_parameter(Parameter p, uint32_t modulation_offset = 0)#
virtual float get_parameter_float(Parameter p, uint32_t modulation_offset = 0) = 0#
template<>
inline float get_parameter(Parameter p, uint32_t modulation_offset)#