|
DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
|
Professional multi-algorithm saturation processor with analog simulation. More...
#include <Saturation.h>

Classes | |
| struct | Params |
Public Types | |
| enum class | Algorithm { Tube , Tape , Transformer , SoftClip , HardClip , Exciter , Wavefolder , Bitcrusher , Downsample , MultiStage , Curve } |
| Defines the harmonic generation topology. More... | |
| enum class | CurveBase { Tanh , Algebraic , Arctangent , Erf , Cubic , Valve , Rectifier } |
| How the oversampler filters (see setOversamplingMode()). More... | |
| enum class | OversamplingMode { LinearPhase , MinimumPhase } |
| enum class | ProcessingMode { Stereo , MidOnly , SideOnly , MidSide } |
| Determines how the stereo field is processed. More... | |
| enum class | OutputMode { Normal , WetOnly , Delta } |
| Determines the final output signal routing. More... | |
| enum class | Antialiasing { Off , FirstOrder , SecondOrder } |
| Antiderivative antialiasing order (see setAntialiasing()). More... | |
| using | OversamplingBand = typename Oversampling< SampleType >::Band |
| The band the oversampler's first stage keeps (see setOversamplingBand()). | |
Public Member Functions | |
| Saturation () | |
| ~Saturation ()=default | |
| Saturation (const Saturation &)=delete | |
| Saturation & | operator= (const Saturation &)=delete |
| void | prepare (const AudioSpec &spec) |
| Prepares all internal resources, filters, and buffers. | |
| void | reset () noexcept |
| Clears all internal states, phase memory, and history buffers. | |
| void | process (AudioBufferView< SampleType > buffer) noexcept |
| Compatibility alias of processBlock(), with the same thread and preparation contract. Prefer processBlock() in new code. | |
| void | processBlock (AudioBufferView< SampleType > buffer) noexcept |
| Processes an audio block in-place (AudioProcessor standard contract). | |
| void | setAlgorithm (Algorithm algo) |
| Sets the saturation algorithm topology. | |
| void | setDrive (SampleType dB) |
| Sets the input drive gain. | |
| void | setMix (SampleType mix01) |
| Sets the global Dry/Wet blend. | |
| void | setCharacter (SampleType c) |
| Adjusts the specific character/bias of the selected algorithm. | |
| void | setProcessingMode (ProcessingMode m) |
| Sets the routing configuration for multi-channel processing. | |
| void | setOutputMode (OutputMode m) |
| Sets the output signal path. | |
| void | setAnalogDrift (SampleType i) |
| Injects true-stereo pseudo-random low-frequency modulation (drift) into the saturation drive. | |
| void | setPreFilterHpFrequency (SampleType hz) |
| Configures a pre-saturation high-pass filter. | |
| void | setOutputGain (SampleType dB) |
| Sets the post-saturation make-up or trim gain. | |
| void | setDcBlocking (bool on) |
| Enables or disables the fixed 5 Hz DC blocker. | |
| void | setAdaptiveBlend (bool on) noexcept |
| Enables program-dependent saturation density. | |
| void | setAntialiasing (bool on) noexcept |
| Enables first-order antiderivative anti-aliasing (ADAA) on the memoryless curves (SoftClip / Tube / HardClip): true selects Antialiasing::FirstOrder, false Off. Best combined with oversampling (Parker/Zavalishin DAFx-16, Bilbao et al. 2017). Off by default. | |
| void | setAntialiasing (Antialiasing mode) noexcept |
| Selects the antialiasing order (see Antialiasing). Any thread; SecondOrder changes getLatency() at once and the audio from the next block, so notify the host. Out-of-range values are clamped. | |
| Antialiasing | getAntialiasing () const noexcept |
| The selected antialiasing order. | |
| void | setTone (int section, SampleType hz, SampleType gainDb) noexcept |
| A section of the tone after the curve: 0 a low shelf (100 Hz by default), 1 and 2 bells of Q 0.7 (500 Hz and 2.5 kHz), 3 a high shelf (8 kHz). At 0 dB a section is out of the path and costs nothing; it comes in, moves and goes out over 20 ms, without a step. Thread-safe; values that are not finite are ignored. | |
| SampleType | getToneFrequency (int section) const noexcept |
| SampleType | getToneGain (int section) const noexcept |
| void | setDrivePan (SampleType pan) noexcept |
| The panorama of the drive, -1 to 1 (0, the default, is centred): the first channel the curve sees gets up to 6 dB more drive and the second up to 6 dB less (at -1), or the other way (at +1); each comes out by the inverse, so its level holds where the curve is straight and only how much it saturates moves. In a mid-side mode the two are the middle and the sides. It moves across a block. Thread-safe; values that are not finite are ignored. | |
| SampleType | getDrivePan () const noexcept |
| void | setSlewSensitivity (SampleType amount) noexcept |
| Sets a derivative-based (slew rate) saturation multiplier. | |
| void | setCurveBase (CurveBase base) noexcept |
| The base curve of the Curve algorithm, the shape its three controls bend (see CurveBase); tanh by default. Each has a slope of 1 at 0 and heads for the ceiling; Valve and Rectifier treat the two halves differently (even harmonics and DC). | |
| CurveBase | getCurveBase () const noexcept |
| void | setCurveShape (SampleType hardness, SampleType curvature, SampleType asymmetry) noexcept |
| Shapes the Curve algorithm. | |
| SampleType | getCurveHardness () const noexcept |
| How far the Curve algorithm stays straight (see setCurveShape()). | |
| SampleType | getCurveCurvature () const noexcept |
| How fast the Curve algorithm turns (see setCurveShape()). | |
| SampleType | getCurveAsymmetry () const noexcept |
| How unlike the two halves of the Curve algorithm are (see setCurveShape()). | |
| void | setAsymmetry (SampleType amount) noexcept |
| Adds a second-order term before the curve of any algorithm. | |
| SampleType | getAsymmetry () const noexcept |
| The second-order term before the curve (see setAsymmetry()). | |
| void | setProgramNoise (SampleType levelDb) noexcept |
| Adds noise that follows the programme, before the curve. | |
| SampleType | getProgramNoise () const noexcept |
| Level of the programme noise under the peak, in decibels (see setProgramNoise()). | |
| void | setLevelTracking (SampleType amount) noexcept |
| Dynamics around the curve: how much the level into it depends on the level of the programme. | |
| SampleType | getLevelTracking () const noexcept |
| The dynamics around the curve (see setLevelTracking()). | |
| void | setTrackingCorner (SampleType hz) noexcept |
| The band the follower of setLevelTracking() listens to. | |
| SampleType | getTrackingCorner () const noexcept |
| The band the dynamics follower listens to, in hertz (0: all of it). | |
| void | setCombLoop (SampleType amount, SampleType hz) noexcept |
| Feeds the output of the curve back into it, inverted, one period of a frequency late. | |
| void | setCombLoopClosing (bool on) noexcept |
| Closes the tuned feedback when the programme stops. | |
| bool | getCombLoopClosing () const noexcept |
| SampleType | getCombLoop () const noexcept |
| The amount of the tuned feedback (see setCombLoop()). | |
| SampleType | getCombLoopFrequency () const noexcept |
| The frequency of the tuned feedback as it runs: what the latency allows of the one asked for. | |
| void | setDriveCompensation (bool on) |
| Takes back, at the output, the level the drive adds. | |
| bool | isDriveCompensation () const noexcept |
| Whether the level the drive adds is taken back (see setDriveCompensation()). | |
| SampleType | getDriveCompensationDb () const noexcept |
| The gain the drive compensation is applying, in decibels (0 while it is off). | |
| void | setPostFilterTilt (SampleType centerHz, SampleType amountDb) |
| Configures a post-saturation first-order tilt EQ. | |
| void | setOversampling (int factor) |
| Configures internal polyphase oversampling to reduce aliasing. | |
| void | setAutomaticOversampling (bool on) |
| Lets the host rate choose the factor (NOT real-time safe, as setOversampling()). | |
| bool | isOversamplingAutomatic () const noexcept |
| Whether the factor follows the host rate (setAutomaticOversampling()). | |
| void | setOversamplingMode (OversamplingMode mode) |
| Chooses the filters of the oversampler (NOT real-time safe, as setOversampling()). | |
| OversamplingMode | getOversamplingMode () const noexcept |
| The filters of the oversampler (see setOversamplingMode()). | |
| void | setOversamplingBand (OversamplingBand band) |
| Chooses the band the oversampler's first stage keeps (NOT real-time safe, as setOversampling()). | |
| OversamplingBand | getOversamplingBand () const noexcept |
| The band of the oversampler's first stage (see setOversamplingBand()). | |
| int | getOversamplingFactor () const noexcept |
| Retrieves the current oversampling factor. | |
| int | getLatency () const noexcept |
| Reports the processor's algorithmic latency in samples. | |
| int | getLatencySamples () const noexcept |
| Compatibility alias of getLatency(), in prepared-rate samples. | |
| Algorithm | getCurrentAlgorithm () const noexcept |
| Retrieves the currently active underlying algorithm. | |
| SampleType | getGainReductionDb () const noexcept |
| Calculates the peak gain reduction (clipping amount) for metering. | |
| std::vector< uint8_t > | getState () const |
| Serializes the parameter state (setup/UI threads; allocates). | |
| bool | setState (const uint8_t *data, size_t size) |
| Restores parameters from a blob (setup/UI threads: it forwards the stored oversampling factor to setOversampling, which may allocate). Out-of-range enum values from foreign or corrupt blobs are clamped. | |
Protected Member Functions | |
| void | configureProcessingRate (bool keepTargets) |
| template<typename Fn > | |
| void | pushParam (Fn &&mutate) |
| void | handleParameterChanges () |
| bool | curveMakesDc () noexcept |
| Whether a curve in play makes DC from a signal without it (the pre-filter takes the input's away): measured, Tube and MultiStage always; Transformer, SoftClip, HardClip, Exciter and Wavefolder with a character; Curve with its asymmetry; any with setAsymmetry(). Tape, Bitcrusher and Downsample never. | |
| double | applyDcShare (DCBlocker< SampleType > &filter, AudioBufferView< SampleType > view, double share) noexcept |
| The DC filter on a block by its share, which moves toward 1 while wanted and toward 0 otherwise (the filter comes back from rest when it is wanted again). At 1 it is the filter itself. | |
| void | applyModeDip (AudioBufferView< SampleType > &buffer) noexcept |
| A change of processing mode: the wet side goes to the aligned dry over a ramp, the mode changes at the bottom (the curves start again from rest there), and it comes back. | |
| void | applyParamSnapshot (const Params &p) |
| int | secondOrderDelay () const noexcept |
| int | secondOrderBaseDelay () const noexcept |
| void | processSaturationPipeline (AudioBufferView< SampleType > buffer) noexcept |
| void | alignSecondOrder (AudioBufferView< SampleType > view, int keepChannel, int keepSamples, int factor, bool seed) noexcept |
| Completes the second-order delay to whole base samples. | |
| void | applyAdaptiveBlend (AudioBufferView< SampleType > buffer) noexcept |
| Program-dependent dry/wet density blend (base rate, L/R domain). The dry reference is the DryWetMixer capture, which carries the same latency compensation as the wet path - no comb filtering. | |
| void | dispatchSaturator (detail::SaturationAlgorithm< SampleType > *baseAlgo, AudioBufferView< SampleType > buffer, bool useDrift) noexcept |
| template<typename ExactAlgo > | |
| void | processCore (ExactAlgo *algo, AudioBufferView< SampleType > buffer, bool useDrift) noexcept |
| void | designTone (int ramp) noexcept |
| The tone's sections from what was published: a section at 0 dB ramps to the identity and leaves; one coming in starts as the identity of its own design and ramps to it. | |
| int | poleDecaySamples (const BiquadCoeffs &c) const noexcept |
| Samples for the poles of a section to fall 140 dB (what it adds once transparent). | |
| SampleType | panGain (int ch, int i, int samples) const noexcept |
| The drive's gain of a channel at a sample of the block (a straight line between its ends). | |
| void | applyOutputGain (AudioBufferView< SampleType > buffer) noexcept |
| detail::CurveAlgorithm< SampleType > & | curve () noexcept |
| const detail::CurveAlgorithm< SampleType > & | curve () const noexcept |
| int | feedbackDelayFor (int latency) const noexcept |
| void | prepareStages () |
| void | resetStages () noexcept |
| int | syncStages () noexcept |
| SampleType | stageNoise (int ch) noexcept |
| void | stagesBefore (AudioBufferView< SampleType > buffer, int keepChannel) noexcept |
| void | stagesAfter (AudioBufferView< SampleType > buffer, int keepChannel) noexcept |
| void | maybeCalibrate (int samples) noexcept |
| void | prepareCalibrator () |
| void | calibrate () noexcept |
Static Protected Member Functions | |
| static void | sanitizeParams (Params &p, const Params &prev) noexcept |
| static void | approach (double &now, double target, double rate) noexcept |
Protected Attributes | |
| std::atomic< SampleType > | asymmetry_ { SampleType(0) } |
| std::atomic< SampleType > | programNoiseDb_ { kNoiseOffDb } |
| std::atomic< SampleType > | levelTracking_ { SampleType(0) } |
| std::atomic< SampleType > | trackingCornerHz_ { SampleType(0) } |
| std::atomic< SampleType > | combLoop_ { SampleType(0) } |
| std::atomic< SampleType > | combLoopHz_ { SampleType(200) } |
| bool | stagesOn_ = false |
| bool | feedingBefore_ = false |
| The feedback ran in the last block. | |
| double | asymmetryNow_ = 0.0 |
| double | asymmetryTarget_ = 0.0 |
| double | dynamicsNow_ = 0.0 |
| double | dynamicsTarget_ = 0.0 |
| double | feedbackNow_ = 0.0 |
| double | feedbackTarget_ = 0.0 |
| double | loopDelayNow_ = 0.0 |
| double | loopGlide_ = 1.0 |
| The loop's delay now, in samples (0: not started), and its glide per sample. | |
| double | programPeak_ = 0.0 |
| double | programFall_ = 0.999 |
| double | loopOpen_ = 1.0 |
| The loop that closes: the level of the input, its fall, how open the loop is. | |
| std::atomic< bool > | combLoopClosing_ { false } |
| bool | closingOn_ = false |
| double | stageRate_ = 0.0 |
| double | evenRate_ = 0.0 |
| double | followUp_ = 0.0 |
| double | followDown_ = 0.0 |
| double | focusRate_ = 0.0 |
| double | followPower_ = 0.0 |
| double | noiseGain_ = 0.0 |
| double | noisePeak_ = 0.0 |
| double | noiseFall_ = 0.0 |
| double | dynamicsGainDb_ = 0.0 |
| double | dynamicsSmoothRate_ = 0.0 |
| int | noiseHoldSamples_ = 0 |
| int | noiseHoldLeft_ = 0 |
| int | stageLatency_ = 0 |
| int | feedbackDelay_ = kMinFeedbackDelay |
| int | gainTail_ = 0 |
| SampleType | feedbackScale_ = SampleType(1) |
| std::array< double, kStageChannels > | evenMean_ {} |
| std::array< double, kStageChannels > | focusState_ {} |
| std::array< uint32_t, kStageChannels > | noiseSeed_ |
| std::vector< SampleType > | gainRing_ |
| std::vector< SampleType > | feedbackRing_ |
| int | gainSize_ = 64 |
| int | feedbackSize_ = 64 |
| int | gainPos_ = 0 |
| int | feedbackPos_ = 0 |
| std::atomic< bool > | driveCompensation_ { false } |
| int | calibrationWait_ = 0 |
| Samples before the next measurement may run (audio thread). | |
| bool | calibrationDirty_ = false |
| The curve moved since the last measurement (audio thread). | |
| std::atomic< bool > | calibrationRequested_ { false } |
| A setter outside the parameter queue moved it. | |
| std::atomic< SampleType > | compensationDb_ { SampleType(0) } |
| float | userOutputGainDb_ = 0.0f |
| std::unique_ptr< Saturation > | calibrator_ |
| std::vector< SampleType > | calibrationNoise_ |
| std::vector< SampleType > | calibrationWork_ |
| OversamplingMode | oversamplingMode_ = OversamplingMode::LinearPhase |
| OversamplingBand | oversamplingBand_ = OversamplingBand::Preset |
| setOversamplingBand() (setup thread). | |
| OversamplingDryPath< SampleType > | dryPath_ |
| bool | dryThroughFilters_ = false |
| AudioSpec | spec_ {} |
| bool | prepared_ = false |
| std::array< std::unique_ptr< detail::SaturationAlgorithm< SampleType > >, kNumAlgorithms > | pool_ |
| std::atomic< detail::SaturationAlgorithm< SampleType > * > | active_ { nullptr } |
| std::atomic< detail::SaturationAlgorithm< SampleType > * > | next_ { nullptr } |
| SpscQueue< Params > | paramQueue_ |
| Params | lastParams_ |
| Params | applied_ |
| The snapshot the audio thread applied last. | |
| SpinLock | paramsLock_ |
| std::atomic< bool > | paramsPending_ { false } |
| std::atomic< int > | antialiasOrder_ { 0 } |
| Antialiasing order, mirror for getState. | |
| ProcessingMode | procMode_ = ProcessingMode::Stereo |
| OutputMode | outputMode_ = OutputMode::Normal |
| bool | dcBlockingEnabled_ = true |
| std::atomic< Algorithm > | currentAlgoType_ { Algorithm::SoftClip } |
| Smoothers::StateVariableSmoother | driveSmoother_ |
| Smoothers::StateVariableSmoother | preHpSmoother_ |
| Smoothers::StateVariableSmoother | postTiltFreqSmoother_ |
| Smoothers::LinearSmoother | mixSmoother_ |
| Smoothers::LinearSmoother | characterSmoother_ |
| Smoothers::LinearSmoother | driftSmoother_ |
| Smoothers::LinearSmoother | outputGainSmoother_ |
| Smoothers::LinearSmoother | postTiltGainSmoother_ |
| Smoothers::LinearSmoother | crossfader_ |
| Biquad< SampleType > | preFilter_ |
| Biquad< SampleType > | postFilter_ |
| DCBlocker< SampleType > | dcBlocker_ |
| DryWetMixer< SampleType > | dryWetMixer_ |
| detail::DryPhase | dryPreLead_ |
| detail::DryPhase | dryDcLead_ |
| Biquad< SampleType > | dryPre_ |
| DCBlocker< SampleType > | dryDc_ |
| double | dcShare_ = 1.0 |
| double | dcStep_ = 1.0 / 2400.0 |
| std::atomic< SampleType > | drivePan_ { SampleType(0) } |
| SampleType | panNow_ = SampleType(0) |
| std::array< SampleType, 2 > | panFrom_ { SampleType(1), SampleType(1) } |
| std::array< SampleType, 2 > | panTo_ { SampleType(1), SampleType(1) } |
| bool | panning_ = false |
| std::array< std::atomic< SampleType >, 4 > | toneHz_ { SampleType(100), SampleType(500), SampleType(2500), SampleType(8000) } |
| std::array< std::atomic< SampleType >, 4 > | toneDb_ { SampleType(0), SampleType(0), SampleType(0), SampleType(0) } |
| std::atomic< bool > | toneDirty_ { false } |
| std::unique_ptr< BiquadCascade< SampleType, 4, 16 > > | tone_ |
| std::array< int, 4 > | toneLeft_ { -1, -1, -1, -1 } |
| bool | toneOn_ = false |
| bool | dcWanted_ = true |
| bool | dcSnap_ = true |
| AudioBuffer< SampleType > | dcScratch_ |
| ProcessingMode | pendingMode_ = ProcessingMode::Stereo |
| double | modeDip_ = 0.0 |
| double | modeDipStep_ = 1.0 / 240.0 |
| 0 = the wet side, 1 = the dry | |
| bool | modeDipping_ = false |
| bool | modeDipDown_ = false |
| bool | dryRunning_ = false |
| bool | dryExact_ = false |
| int | dryHoldSamples_ = 0 |
| AnalogRandom::Generator< SampleType > | leftDrift_ |
| AnalogRandom::Generator< SampleType > | rightDrift_ |
| AudioBuffer< SampleType > | tempBuffer_ |
| AudioBuffer< SampleType > | driftBuffer_ |
| AudioBuffer< SampleType > | msKeepBuffer_ |
| MidOnly/SideOnly channel snapshot. | |
| std::unique_ptr< Oversampling< SampleType > > | oversampler_ |
| int | oversamplingFactor_ = 2 |
| 2x by default: the curves alias at 1x (see setOversampling()). | |
| bool | oversamplingAutomatic_ = false |
| The factor follows the host rate (setAutomaticOversampling()). | |
| std::atomic< SampleType > | gainReductionDb_ { SampleType(0) } |
| std::atomic< bool > | adaptiveBlend_ { false } |
| std::array< SampleType, kMaxCh > | prevBlendSample_ {} |
| std::atomic< SampleType > | slewSensitivity_ { SampleType(0) } |
| SampleType | slewRateScale_ = SampleType(1) |
| Processing rate / 96 kHz. | |
| std::vector< SampleType > | driveRamp_ |
| std::vector< SampleType > | charRamp_ |
| Per-sample drive/character (processing rate). | |
| std::array< SampleType, kMaxCh > | prevSlewSample_ {} |
| float | lastPreHpFreq_ = -1.0f |
| float | lastPostTiltFreq_ = -1.0f |
| float | lastPostTiltGain_ = std::numeric_limits<float>::quiet_NaN() |
| bool | secondActive_ = false |
| bool | alignFresh_ = true |
| std::array< std::array< SampleType, kAlignRing >, kMaxCh > | alignRing_ {} |
| std::array< SampleType, kAlignRing > | keepRing_ {} |
| int | alignPos_ = 0 |
| std::array< SampleType, kMaxCh > | dryHold_ {} |
| std::array< SampleType, kMaxCh > | dryHold2_ {} |
| Second dry sample (2x). | |
| AudioBuffer< SampleType > | dryAligned_ |
Static Protected Attributes | |
| static constexpr int | kStageChannels = 16 |
| Channels the stages keep a memory for. | |
| static constexpr SampleType | kNoiseOffDb = SampleType(-120) |
| Programme noise at or under this is off. | |
| static constexpr SampleType | kMinFeedbackHz = SampleType(20) |
| Lowest frequency of the tuned feedback. | |
| static constexpr int | kMinFeedbackDelay = 16 |
| Shortest feedback line (and piece of a block). | |
| static constexpr double | kLoopOctaveSeconds = 0.1 |
| Time the loop's delay takes to glide an octave. | |
| static constexpr double | kLoopCloseSeconds = 0.02 |
| Time constant the programme's level falls with, for the loop that closes. | |
| static constexpr double | kLoopCloseLevel = 3.1622776601683794e-4 |
| -70 dBFS: under it there is no programme. | |
| static constexpr double | kDynamicsReferenceDb = -18.0 |
| Level the dynamics bring the programme to. | |
| static constexpr double | kDynamicsReachDb = 24.0 |
| Most gain the dynamics apply, either way. | |
| static constexpr double | kEvenShare = 0.25 |
| Share of the square added at asymmetry 1. | |
| static constexpr double | kCompensationShare = 0.75 |
| Share of the measured gain taken back. | |
| static constexpr double | kCalibrationLevelDb = -18.0 |
| RMS level of the measuring noise. | |
| static constexpr int | kCalibrationSamples = 4096 |
| Length of a measurement. | |
| static constexpr int | kCalibrationSkip = 1024 |
| Samples left out while the twin settles. | |
| static constexpr double | kCalibrationQuiet = 0.01 |
| Level of the reference run (-40 dB). | |
| static constexpr int | kCalibrationBlock = 256 |
| static constexpr double | kCalibrationEvery = 0.05 |
| Seconds between two measurements while the curve moves. | |
| static constexpr int | kNumAlgorithms = 11 |
| static constexpr double | kDcCornerHz = 5.0 |
| static constexpr double | kDcFadeSeconds = 0.05 |
| The DC filter comes in or goes out in this time. | |
| static constexpr double | kModeDipSeconds = 0.005 |
| The fall of a mode change's dip. | |
| static constexpr double | kModeRiseShare = 0.25 |
| Its rise takes four times as long (the curves settle from rest). | |
| static constexpr double | kDryHoldSeconds = 0.05 |
| It is kept up this long after the mix has gone full wet. | |
| static constexpr double | kDrivePanDb = 6.0 |
| static constexpr int | kToneSections = 4 |
| static constexpr double | kToneRampSeconds = 0.02 |
| static constexpr double | kAutomaticInternalRate = 88200.0 |
| Rate the automatic factor reaches. | |
| static constexpr int | kMaxCh = 16 |
| static constexpr int | kAlignRing = 32 |
| |
Friends | |
| template<FloatType , int > | |
| class | MultibandSaturation |
Professional multi-algorithm saturation processor with analog simulation.
This class provides a high-quality saturation pipeline featuring 11 distinct algorithms ranging from soft clipping to complex magnetic tape and transformer modeling. Zero latency at 1x; with oversampling enabled the latency equals the oversampler group delay, plus two samples at 2x (one at the other factors) with second-order antialiasing (see getLatency()).
Channel handling: the saturation stage processes up to 16 channels and no more than the prepared spec's channel count; any further channels in the incoming view pass through the linear stages (filters, gain, mix) only.
| SampleType | The floating-point precision to use (must be float or double). |
Definition at line 1652 of file Saturation.h.
| using dspark::Saturation< SampleType >::OversamplingBand = typename Oversampling<SampleType>::Band |
The band the oversampler's first stage keeps (see setOversamplingBand()).
Definition at line 1689 of file Saturation.h.
|
strong |
Defines the harmonic generation topology.
| Enumerator | |
|---|---|
| Tube | Asymmetric triode emulation. Dominant 2nd harmonic, compresses negative excursions. |
| Tape | Anhysteretic Langevin magnetisation (tape under AC bias) with dynamic head-bump and HF roll-off. |
| Transformer | Core saturation model. LF saturates before HF. |
| SoftClip | Symmetric Tanh curve. Odd harmonics only (3rd, 5th, 7th). |
| HardClip | Digital hard-clipping. Extreme odd harmonics, highly aliasing without oversampling. |
| Exciter | Polynomial waveshaper designed to synthesize high-frequency harmonic content. |
| Wavefolder | First-order ADAA (Antiderivative Anti-Aliasing) sine wavefolder. |
| Bitcrusher | Quantization noise generator with TPDF dithering. |
| Downsample | Sample-and-hold rate reduction with anti-aliasing pre-filtering. |
| MultiStage | Serial cascade: Tube -> Tape -> Transformer. Gain-staged internally. |
| Curve | A soft clipper shaped by three controls (setCurveShape()): how far it stays straight, how fast it turns, and how unlike its two halves are. |
Definition at line 1663 of file Saturation.h.
|
strong |
Antiderivative antialiasing order (see setAntialiasing()).
| Enumerator | |
|---|---|
| Off | |
| FirstOrder | |
| SecondOrder | |
Definition at line 1730 of file Saturation.h.
|
strong |
How the oversampler filters (see setOversamplingMode()).
The base curve of Algorithm::Curve (see setCurveBase()).
| Enumerator | |
|---|---|
| Tanh | |
| Algebraic | |
| Arctangent | |
| Erf | |
| Cubic | |
| Valve | |
| Rectifier | |
Definition at line 1680 of file Saturation.h.
|
strong |
Determines the final output signal routing.
| Enumerator | |
|---|---|
| Normal | |
| WetOnly | |
| Delta | |
Definition at line 1695 of file Saturation.h.
|
strong |
Definition at line 1682 of file Saturation.h.
|
strong |
Determines how the stereo field is processed.
| Enumerator | |
|---|---|
| Stereo | |
| MidOnly | |
| SideOnly | |
| MidSide | |
Definition at line 1692 of file Saturation.h.
|
inline |
Definition at line 1734 of file Saturation.h.
|
default |
|
delete |
|
inlineprotectednoexcept |
Completes the second-order delay to whole base samples.
The algorithms delay by secondOrderDelay() processing samples, so a factor-N stage adds the rest of N (of 2N = 4 at 2x) to every saturated channel; the M/S snapshot that is restored unprocessed is delayed by all of it. Rings hold 32 samples; seed fills them with each channel's first sample (no step from stale or zero history when the order is switched on).
Definition at line 3484 of file Saturation.h.
|
inlineprotectednoexcept |
Program-dependent dry/wet density blend (base rate, L/R domain). The dry reference is the DryWetMixer capture, which carries the same latency compensation as the wet path - no comb filtering.
Definition at line 3527 of file Saturation.h.
|
inlineprotectednoexcept |
The DC filter on a block by its share, which moves toward 1 while wanted and toward 0 otherwise (the filter comes back from rest when it is wanted again). At 1 it is the filter itself.
Definition at line 3165 of file Saturation.h.
|
inlineprotectednoexcept |
A change of processing mode: the wet side goes to the aligned dry over a ramp, the mode changes at the bottom (the curves start again from rest there), and it comes back.
Definition at line 3198 of file Saturation.h.
|
inlineprotectednoexcept |
Definition at line 3681 of file Saturation.h.
|
inlineprotected |
Definition at line 3232 of file Saturation.h.
|
inlinestaticprotectednoexcept |
A value on its way to a target, 20 ms away; it lands on a target of zero.
Definition at line 3802 of file Saturation.h.
|
inlineprotectednoexcept |
Measures the gain of the curve on programme with the settings as they stand and sets the compensation. Audio thread (or the setup thread before audio runs): it allocates nothing.
Definition at line 4037 of file Saturation.h.
|
inlineprotected |
Prepares the state that runs at the processing (oversampled) rate: the drive, character and drift smoothers, the algorithm crossfade and the drift generators. They were prepared at the base rate, so their times shrank by the factor (drive t63 18.7 ms instead of 36 at 2x, crossfade 5.3 ms instead of 10, drift retriggering at 2 Hz). keepTargets snaps each smoother to its current target. Setup thread.
Definition at line 3017 of file Saturation.h.
|
inlineprotectednoexcept |
Definition at line 3706 of file Saturation.h.
|
inlineprotectednoexcept |
Definition at line 3702 of file Saturation.h.
|
inlineprotectednoexcept |
Whether a curve in play makes DC from a signal without it (the pre-filter takes the input's away): measured, Tube and MultiStage always; Transformer, SoftClip, HardClip, Exciter and Wavefolder with a character; Curve with its asymmetry; any with setAsymmetry(). Tape, Bitcrusher and Downsample never.
Definition at line 3133 of file Saturation.h.
|
inlineprotectednoexcept |
The tone's sections from what was published: a section at 0 dB ramps to the identity and leaves; one coming in starts as the identity of its own design and ramps to it.
Definition at line 3629 of file Saturation.h.
|
inlineprotectednoexcept |
Definition at line 3551 of file Saturation.h.
|
inlineprotectednoexcept |
Samples the feedback line delays so that, with a latency, the loop is one period long.
Definition at line 3712 of file Saturation.h.
|
inlinenoexcept |
The selected antialiasing order.
Definition at line 2435 of file Saturation.h.
|
inlinenoexcept |
The second-order term before the curve (see setAsymmetry()).
Definition at line 2557 of file Saturation.h.
|
inlinenoexcept |
The amount of the tuned feedback (see setCombLoop()).
Definition at line 2671 of file Saturation.h.
|
inlinenoexcept |
Definition at line 2668 of file Saturation.h.
|
inlinenoexcept |
The frequency of the tuned feedback as it runs: what the latency allows of the one asked for.
Definition at line 2674 of file Saturation.h.
|
inlinenoexcept |
Retrieves the currently active underlying algorithm.
Definition at line 2894 of file Saturation.h.
|
inlinenoexcept |
How unlike the two halves of the Curve algorithm are (see setCurveShape()).
Definition at line 2538 of file Saturation.h.
|
inlinenoexcept |
Definition at line 2511 of file Saturation.h.
|
inlinenoexcept |
How fast the Curve algorithm turns (see setCurveShape()).
Definition at line 2536 of file Saturation.h.
|
inlinenoexcept |
How far the Curve algorithm stays straight (see setCurveShape()).
Definition at line 2534 of file Saturation.h.
|
inlinenoexcept |
The gain the drive compensation is applying, in decibels (0 while it is off).
Definition at line 2710 of file Saturation.h.
|
inlinenoexcept |
Definition at line 2487 of file Saturation.h.
|
inlinenoexcept |
Calculates the peak gain reduction (clipping amount) for metering.
Definition at line 2901 of file Saturation.h.
|
inlinenoexcept |
Reports the processor's algorithmic latency in samples.
Definition at line 2880 of file Saturation.h.
|
inlinenoexcept |
Compatibility alias of getLatency(), in prepared-rate samples.
Definition at line 2887 of file Saturation.h.
|
inlinenoexcept |
The dynamics around the curve (see setLevelTracking()).
Definition at line 2603 of file Saturation.h.
|
inlinenoexcept |
The band of the oversampler's first stage (see setOversamplingBand()).
Definition at line 2827 of file Saturation.h.
|
inlinenoexcept |
Retrieves the current oversampling factor.
Definition at line 2871 of file Saturation.h.
|
inlinenoexcept |
The filters of the oversampler (see setOversamplingMode()).
Definition at line 2802 of file Saturation.h.
|
inlinenoexcept |
Level of the programme noise under the peak, in decibels (see setProgramNoise()).
Definition at line 2578 of file Saturation.h.
|
inline |
Serializes the parameter state (setup/UI threads; allocates).
Definition at line 2905 of file Saturation.h.
|
inlinenoexcept |
Definition at line 2460 of file Saturation.h.
|
inlinenoexcept |
Definition at line 2466 of file Saturation.h.
|
inlinenoexcept |
The band the dynamics follower listens to, in hertz (0: all of it).
Definition at line 2624 of file Saturation.h.
|
inlineprotected |
Definition at line 3108 of file Saturation.h.
|
inlinenoexcept |
Whether the level the drive adds is taken back (see setDriveCompensation()).
Definition at line 2707 of file Saturation.h.
|
inlinenoexcept |
Whether the factor follows the host rate (setAutomaticOversampling()).
Definition at line 2779 of file Saturation.h.
|
inlineprotectednoexcept |
Measures the curve again when it has moved and the last measurement is old enough. Audio thread.
Definition at line 3987 of file Saturation.h.
|
delete |
|
inlineprotectednoexcept |
The drive's gain of a channel at a sample of the block (a straight line between its ends).
Definition at line 3675 of file Saturation.h.
|
inlineprotectednoexcept |
Samples for the poles of a section to fall 140 dB (what it adds once transparent).
Definition at line 3664 of file Saturation.h.
|
inline |
Prepares all internal resources, filters, and buffers.
std::vector::resize) and filter coefficient calculations. It must be called from the main/setup thread before audio processing begins.| spec | The audio environment specifications (sample rate, max block size, channels). An invalid spec (non-positive or NaN fields) is ignored and the previous state is kept. |
Definition at line 1767 of file Saturation.h.
|
inlineprotected |
Builds the twin that measures the gain of the curve, and its noise. Setup thread.
Definition at line 3997 of file Saturation.h.
|
inlineprotected |
Sizes the memory of the stages. Setup thread.
Definition at line 3720 of file Saturation.h.
|
inlinenoexcept |
Compatibility alias of processBlock(), with the same thread and preparation contract. Prefer processBlock() in new code.
| buffer | Mutable view of the audio data. |
Definition at line 1925 of file Saturation.h.
|
inlinenoexcept |
Processes an audio block in-place (AudioProcessor standard contract).
Executes the following sequence: parameter updates (lock-free) -> Mid/Side Encoding -> Pre-filtering -> Slew detection -> Drift generation -> Saturation -> Adaptive Blend -> Mid/Side Decoding -> Post-filtering -> DC Blocking -> Dry/Wet Mix.
| buffer | Mutable view of the audio data. Will be modified in-place. |
Definition at line 1939 of file Saturation.h.
|
inlineprotectednoexcept |
Definition at line 3571 of file Saturation.h.
|
inlineprotectednoexcept |
Definition at line 3324 of file Saturation.h.
|
inlineprotected |
Definition at line 3092 of file Saturation.h.
|
inlinenoexcept |
Clears all internal states, phase memory, and history buffers.
Definition at line 1873 of file Saturation.h.
|
inlineprotectednoexcept |
Clears the memory of the stages.
Definition at line 3742 of file Saturation.h.
|
inlinestaticprotectednoexcept |
Keeps every snapshot the audio thread can ever see well-formed: NaN/Inf from the GUI reverts to the previous value (setter-with-NaN == ignored, the framework-wide policy - without this the smoothers and filter designs are poisoned permanently), and enum fields are clamped so a cast-from-int caller or a corrupt state blob can never index outside pool_. Also keeps lastParams_ finite for getState().
Definition at line 3066 of file Saturation.h.
|
inlineprotectednoexcept |
Base samples that second-order antialiasing adds: 2 at 2x, else 1.
Definition at line 3318 of file Saturation.h.
|
inlineprotectednoexcept |
Processing samples of second-order delay inside the algorithms: 4 at 2x (two base samples, the MultiStage split), otherwise min(factor, 3), padded to one base sample by alignSecondOrder().
Definition at line 3312 of file Saturation.h.
|
inlinenoexcept |
Enables program-dependent saturation density.
| on | True to enable adaptive dynamic blending. |
Definition at line 2401 of file Saturation.h.
|
inline |
Sets the saturation algorithm topology.
| algo | The desired algorithm (e.g., Algorithm::Tube). |
Definition at line 2311 of file Saturation.h.
|
inline |
Injects true-stereo pseudo-random low-frequency modulation (drift) into the saturation drive.
| i | Intensity of the drift. Range: [0.0, 1.0]. |
Definition at line 2368 of file Saturation.h.
|
inlinenoexcept |
Selects the antialiasing order (see Antialiasing). Any thread; SecondOrder changes getLatency() at once and the audio from the next block, so notify the host. Out-of-range values are clamped.
Definition at line 2426 of file Saturation.h.
|
inlinenoexcept |
Enables first-order antiderivative anti-aliasing (ADAA) on the memoryless curves (SoftClip / Tube / HardClip): true selects Antialiasing::FirstOrder, false Off. Best combined with oversampling (Parker/Zavalishin DAFx-16, Bilbao et al. 2017). Off by default.
Definition at line 2416 of file Saturation.h.
|
inlinenoexcept |
Adds a second-order term before the curve of any algorithm.
The signal meets the curve with a share of its own square (less the mean of it) added: the two half-cycles are driven unequally and even harmonics appear, more of them the louder the signal. -1 to 1 (the sign is the polarity of the term); 0, the default, is off.
Definition at line 2550 of file Saturation.h.
|
inline |
Lets the host rate choose the factor (NOT real-time safe, as setOversampling()).
With it on, every prepare() takes the smallest factor that brings the curves to an internal rate of at least 88.2 kHz: 2x at 44.1 and 48 kHz (the default factor) and none from 88.2 kHz up. The nonlinearity then runs at about the same rate whatever the session rate, and a high-rate session stops paying for a factor it does not need. Off by default; an explicit setOversampling() turns it off.
| on | True to choose the factor from the rate. |
Definition at line 2767 of file Saturation.h.
|
inline |
Adjusts the specific character/bias of the selected algorithm.
Behavior varies per algorithm:
| c | Character amount. Range: [-1.0, 1.0]. 0.0 represents the neutral state. |
Definition at line 2345 of file Saturation.h.
|
inlinenoexcept |
Feeds the output of the curve back into it, inverted, one period of a frequency late.
What leaves the curve (taken back to the level it came in at) returns to its input with the opposite sign after a delay that, with the latency of the processor, makes one period of the frequency: a comb the curve sits inside, with dips on the frequency and its multiples and peaks half way between them. The loop gain is the amount and falls as the curve saturates, so it cannot run away. The delay cannot be shorter than the latency plus 16 samples: getCombLoopFrequency() gives the frequency in effect. While it is on the block is processed in pieces no longer than the delay. A new frequency is reached by a glide of the delay (an octave in a tenth of a second, read between samples), so the line that recirculates is never cut.
| amount | -0.95 to 0.95; 0, the default, is off. |
| hz | Frequency of the comb, from 20 Hz. |
Definition at line 2646 of file Saturation.h.
|
inlinenoexcept |
Closes the tuned feedback when the programme stops.
With a loop gain near one the comb rings on long after the input has gone. With this on, the loop follows the level of what comes in: it stays as set while there is programme and closes, in a few tens of milliseconds, once the input has stayed under -70 dBFS; the ringing ends with the programme. Off by default.
Definition at line 2665 of file Saturation.h.
|
inlinenoexcept |
The base curve of the Curve algorithm, the shape its three controls bend (see CurveBase); tanh by default. Each has a slope of 1 at 0 and heads for the ceiling; Valve and Rectifier treat the two halves differently (even harmonics and DC).
Definition at line 2508 of file Saturation.h.
|
inlinenoexcept |
Shapes the Curve algorithm.
| hardness | How far the curve stays a straight line before it turns, as a share of its ceiling: 0 (the whole of it bends) to 0.95 (a corner). |
| curvature | How fast it turns: 0.5 (it leaves the line at once) to 4 (it stays on it and turns late); 1 is neutral. |
| asymmetry | How unlike the two halves are: at +1 the negative half-cycle meets its ceiling at half the level of the positive one's, at -1 the positive one at half the negative one's; 0 is symmetric. |
Definition at line 2527 of file Saturation.h.
|
inline |
Enables or disables the fixed 5 Hz DC blocker.
| on | True to enable DC blocking (default). |
Definition at line 2394 of file Saturation.h.
|
inline |
Sets the input drive gain.
| dB | Drive level in decibels. Range: [-24.0, +48.0]. 0 dB = unity gain. |
Definition at line 2318 of file Saturation.h.
|
inline |
Takes back, at the output, the level the drive adds.
The gain of the curve on programme (pink noise at -18 dBFS RMS through a twin of this processor with the algorithm, drive, character, shape, antialiasing and oversampling as they stand, against the same noise 40 dB down through the twin at no drive) is measured whenever one of them changes, and three quarters of it, in decibels, is taken back at the output: the drive then changes the tone a great deal and the level a little (a quarter of a decibel per decibel is left, so the knob is still felt). The measurement runs on the audio thread, two runs of 4096 samples of the processor, at most every 50 ms while those settings move.
Definition at line 2697 of file Saturation.h.
|
inlinenoexcept |
The panorama of the drive, -1 to 1 (0, the default, is centred): the first channel the curve sees gets up to 6 dB more drive and the second up to 6 dB less (at -1), or the other way (at +1); each comes out by the inverse, so its level holds where the curve is straight and only how much it saturates moves. In a mid-side mode the two are the middle and the sides. It moves across a block. Thread-safe; values that are not finite are ignored.
Definition at line 2481 of file Saturation.h.
|
inlinenoexcept |
Dynamics around the curve: how much the level into it depends on the level of the programme.
A follower of the level (10 ms up, 150 ms down, and the gain it sets smoothed over 5 ms) moves the gain before the curve and its inverse comes after it, in time with the wet path, so the level that leaves is the one that came in and only the amount of saturation changes. At +1 the curve always sees the programme at the same peak level (-18 dBFS): a quiet passage saturates as much as a loud one. At -1 the level into the curve moves twice as far as the programme does: the loud passages saturate far more than the quiet ones. The gain is held to 24 dB either way. 0, the default, is off.
Definition at line 2596 of file Saturation.h.
|
inline |
Sets the global Dry/Wet blend.
Between the two ends the dry side takes the phase of the wet side's high-passes (setPreFilterHpFrequency(), setDcBlocking()) and keeps its own level, so a partial mix is the mean of the two levels at the bottom as well. At zero the output is the input (late by the latency).
| mix01 | Mix ratio. Range: [0.0 (fully dry), 1.0 (fully wet)]. |
Definition at line 2331 of file Saturation.h.
|
inline |
Sets the post-saturation make-up or trim gain.
| dB | Gain in decibels. |
Definition at line 2382 of file Saturation.h.
|
inline |
Sets the output signal path.
| m | The output mode (Normal, WetOnly, Delta). Delta is the wet side less the dry one, both through the same high-passes: what the curve changes. |
Definition at line 2361 of file Saturation.h.
|
inline |
Configures internal polyphase oversampling to reduce aliasing.
prepare(), or prepare() must be called immediately after.| factor | The oversampling multiplier. Must be a power of 2 (1, 2, 4, 8, 16). 1 = Off. Other values are ignored. Default 2: at 1x the curves fold their harmonics back into the band - a 10.1 kHz tone at -6 dBFS through the default SoftClip left an alias at 17.7 kHz only 34 dB down (46 dB with ADAA); at 2x it measures 124 dB down, for the oversampler's latency (64 samples at 48 kHz, reported by getLatency()). From 8x every decimation stage is at least 100 dB deep (Oversampling::Depth::Deep), for 93 samples of latency at 8x and 95 at 16x (70 at 4x): the wavefolder at +24 dB aliases at -104 dBc at 8x (-75 with the preset's stages) and SoftClip with second-order antialiasing at -119 dBc at 16x (-95). |
Definition at line 2747 of file Saturation.h.
|
inline |
Chooses the band the oversampler's first stage keeps (NOT real-time safe, as setOversampling()).
Preset, the default, keeps the band up to 0.46 of the host rate at every rate. Audible keeps it up to 20 kHz and stops everything from the image of 20 kHz up, to the same depth: the stage is fitted to the host rate at prepare() and is shorter the higher the rate (see Oversampling::Band), which is less latency and less work. At 2x the linear-phase latency goes from 64 samples to 56 at 44.1 kHz, 32 at 48 kHz and 10 at 96 kHz. What is given up lies over 20 kHz: the wet path falls there (a 30 kHz tone at 96 kHz comes back at 0.95 of its level) while a linear-phase dry path does not.
Definition at line 2818 of file Saturation.h.
|
inline |
Chooses the filters of the oversampler (NOT real-time safe, as setOversampling()).
LinearPhase, the default, keeps the phase of the programme and costs the latency of the factor. MinimumPhase runs elliptic allpass half-bands: a few samples of latency instead (3 at 2x and 48 kHz) and a phase that turns towards the top of the band. The dry path of the mix, of the Delta output and of the adaptive blend then goes through the same filters with nothing in between, so a partial mix adds in phase at every frequency instead of combing.
Definition at line 2793 of file Saturation.h.
|
inline |
Configures a post-saturation first-order tilt EQ.
Tilts the spectrum around the pivot: -amountDb/2 at DC, unity at the pivot, +amountDb/2 at Nyquist (total span = amountDb). Positive values brighten the signal; negative values darken it.
| centerHz | Pivot frequency in Hertz. Range: [100.0, Nyquist]. |
| amountDb | Total tilt span in decibels. Range: [-12.0, 12.0]. |
Definition at line 2723 of file Saturation.h.
|
inline |
Configures a pre-saturation high-pass filter.
| hz | Cutoff frequency in Hertz. Range: [10.0, Nyquist]. |
Definition at line 2375 of file Saturation.h.
|
inline |
Sets the routing configuration for multi-channel processing.
| m | The processing mode (Stereo, MidOnly, SideOnly, MidSide). |
Definition at line 2354 of file Saturation.h.
|
inlinenoexcept |
Adds noise that follows the programme, before the curve.
White noise at a level counted from the recent peak of the signal (held for 50 ms, then released over 150 ms) is added before the curve, which then shapes it with the signal: it is there while the programme is and goes with it, so silence stays silent.
| levelDb | Level of the noise under the peak of the programme, in decibels: -90 to -20. -120 or less, the default, is off. |
Definition at line 2571 of file Saturation.h.
|
inlinenoexcept |
Sets a derivative-based (slew rate) saturation multiplier.
| amount | Sensitivity multiplier. Range: [0.0 (off), 1.0 (max)]. |
Definition at line 2495 of file Saturation.h.
|
inline |
Restores parameters from a blob (setup/UI threads: it forwards the stored oversampling factor to setOversampling, which may allocate). Out-of-range enum values from foreign or corrupt blobs are clamped.
Definition at line 2960 of file Saturation.h.
|
inlinenoexcept |
A section of the tone after the curve: 0 a low shelf (100 Hz by default), 1 and 2 bells of Q 0.7 (500 Hz and 2.5 kHz), 3 a high shelf (8 kHz). At 0 dB a section is out of the path and costs nothing; it comes in, moves and goes out over 20 ms, without a step. Thread-safe; values that are not finite are ignored.
| section | 0 to 3 (others are ignored). |
| hz | Its frequency, 20 Hz to 20 kHz. |
| gainDb | Its gain, -18 to 18 dB. |
Definition at line 2450 of file Saturation.h.
|
inlinenoexcept |
The band the follower of setLevelTracking() listens to.
Over 0 the follower reads the programme through a low-pass at this frequency: with a negative setLevelTracking() the low end then pushes the whole signal into the curve (the threshold of the saturation moves with the bass, as in a core whose low frequencies fill it first).
| hz | Corner of the low-pass, 20 to 2000 Hz; 0, the default, is the whole band. |
Definition at line 2616 of file Saturation.h.
|
inlineprotectednoexcept |
White noise in [-1, 1) for a channel.
Definition at line 3809 of file Saturation.h.
|
inlineprotectednoexcept |
What happens after the curve: the inverse of the gain of the dynamics, as late as the wet path is, and the output written to the feedback line at the level it came in at.
Definition at line 3958 of file Saturation.h.
|
inlineprotectednoexcept |
What happens before the curve, at the base rate: the feedback comes back, the dynamics set the level, the second-order term and the noise of the programme are added. The channel that stays unprocessed in the MidOnly and SideOnly modes is left alone.
Definition at line 3822 of file Saturation.h.
|
inlineprotectednoexcept |
Takes the settings of the stages for a block and says how long a piece of it may be (the delay of the feedback line while the feedback runs). Audio thread.
Definition at line 3770 of file Saturation.h.
Definition at line 1944 of file Saturation.h.
|
protected |
Definition at line 4157 of file Saturation.h.
|
protected |
Definition at line 4237 of file Saturation.h.
|
protected |
Definition at line 4253 of file Saturation.h.
|
protected |
Definition at line 4256 of file Saturation.h.
|
protected |
Definition at line 4254 of file Saturation.h.
|
protected |
Antialiasing order, mirror for getState.
Definition at line 4165 of file Saturation.h.
|
protected |
The snapshot the audio thread applied last.
Definition at line 4162 of file Saturation.h.
|
protected |
Definition at line 4105 of file Saturation.h.
|
protected |
Definition at line 4115 of file Saturation.h.
|
protected |
Definition at line 4115 of file Saturation.h.
|
protected |
The curve moved since the last measurement (audio thread).
Definition at line 4139 of file Saturation.h.
|
protected |
Definition at line 4144 of file Saturation.h.
|
protected |
A setter outside the parameter queue moved it.
Definition at line 4140 of file Saturation.h.
|
protected |
Samples before the next measurement may run (audio thread).
Definition at line 4138 of file Saturation.h.
|
protected |
Definition at line 4144 of file Saturation.h.
|
protected |
Definition at line 4143 of file Saturation.h.
|
protected |
Definition at line 4173 of file Saturation.h.
|
protected |
Per-sample drive/character (processing rate).
Definition at line 4243 of file Saturation.h.
|
protected |
Definition at line 4121 of file Saturation.h.
|
protected |
Definition at line 4109 of file Saturation.h.
|
protected |
Definition at line 4120 of file Saturation.h.
|
protected |
Definition at line 4110 of file Saturation.h.
|
protected |
Definition at line 4141 of file Saturation.h.
|
protected |
Definition at line 4175 of file Saturation.h.
|
protected |
Definition at line 4170 of file Saturation.h.
|
protected |
Definition at line 4182 of file Saturation.h.
|
protected |
Definition at line 4169 of file Saturation.h.
|
protected |
Definition at line 4215 of file Saturation.h.
|
protected |
Definition at line 4197 of file Saturation.h.
|
protected |
Definition at line 4214 of file Saturation.h.
|
protected |
Definition at line 4197 of file Saturation.h.
|
protected |
Definition at line 4213 of file Saturation.h.
|
protected |
Definition at line 4227 of file Saturation.h.
|
protected |
Definition at line 4173 of file Saturation.h.
|
protected |
Definition at line 4137 of file Saturation.h.
|
protected |
Definition at line 4199 of file Saturation.h.
|
protected |
Definition at line 4243 of file Saturation.h.
|
protected |
Definition at line 4172 of file Saturation.h.
|
protected |
Definition at line 4259 of file Saturation.h.
|
protected |
Definition at line 4194 of file Saturation.h.
|
protected |
Definition at line 4192 of file Saturation.h.
|
protected |
Definition at line 4221 of file Saturation.h.
|
protected |
Second dry sample (2x).
Definition at line 4258 of file Saturation.h.
|
protected |
Definition at line 4257 of file Saturation.h.
|
protected |
Definition at line 4222 of file Saturation.h.
|
protected |
Definition at line 4149 of file Saturation.h.
|
protected |
Definition at line 4193 of file Saturation.h.
|
protected |
Definition at line 4192 of file Saturation.h.
|
protected |
Definition at line 4221 of file Saturation.h.
|
protected |
Definition at line 4150 of file Saturation.h.
|
protected |
Definition at line 4183 of file Saturation.h.
|
protected |
Definition at line 4124 of file Saturation.h.
|
protected |
Definition at line 4116 of file Saturation.h.
|
protected |
Definition at line 4124 of file Saturation.h.
|
protected |
Definition at line 4116 of file Saturation.h.
|
protected |
Definition at line 4128 of file Saturation.h.
|
protected |
Definition at line 4122 of file Saturation.h.
|
protected |
Definition at line 4126 of file Saturation.h.
|
protected |
Definition at line 4117 of file Saturation.h.
|
protected |
Definition at line 4134 of file Saturation.h.
|
protected |
Definition at line 4133 of file Saturation.h.
|
protected |
Definition at line 4127 of file Saturation.h.
|
protected |
Definition at line 4134 of file Saturation.h.
|
protected |
Definition at line 4117 of file Saturation.h.
|
protected |
The feedback ran in the last block.
Definition at line 4114 of file Saturation.h.
|
protected |
Definition at line 4122 of file Saturation.h.
|
protected |
Definition at line 4128 of file Saturation.h.
|
protected |
Definition at line 4122 of file Saturation.h.
|
protected |
Definition at line 4123 of file Saturation.h.
|
protected |
Definition at line 4122 of file Saturation.h.
|
protected |
Definition at line 4134 of file Saturation.h.
|
protected |
Definition at line 4235 of file Saturation.h.
|
protected |
Definition at line 4133 of file Saturation.h.
|
protected |
Definition at line 4134 of file Saturation.h.
|
protected |
Definition at line 4126 of file Saturation.h.
|
staticconstexprprotected |
largest delay (16 processing samples).
Definition at line 4251 of file Saturation.h.
|
staticconstexprprotected |
Rate the automatic factor reaches.
Definition at line 4233 of file Saturation.h.
|
staticconstexprprotected |
Definition at line 4102 of file Saturation.h.
|
staticconstexprprotected |
Seconds between two measurements while the curve moves.
Definition at line 4103 of file Saturation.h.
|
staticconstexprprotected |
RMS level of the measuring noise.
Definition at line 4098 of file Saturation.h.
|
staticconstexprprotected |
Level of the reference run (-40 dB).
Definition at line 4101 of file Saturation.h.
|
staticconstexprprotected |
Length of a measurement.
Definition at line 4099 of file Saturation.h.
|
staticconstexprprotected |
Samples left out while the twin settles.
Definition at line 4100 of file Saturation.h.
|
staticconstexprprotected |
Share of the measured gain taken back.
Definition at line 4097 of file Saturation.h.
|
staticconstexprprotected |
Definition at line 4187 of file Saturation.h.
|
staticconstexprprotected |
The DC filter comes in or goes out in this time.
Definition at line 4188 of file Saturation.h.
|
staticconstexprprotected |
Definition at line 4203 of file Saturation.h.
|
staticconstexprprotected |
It is kept up this long after the mix has gone full wet.
Definition at line 4191 of file Saturation.h.
|
staticconstexprprotected |
Most gain the dynamics apply, either way.
Definition at line 4095 of file Saturation.h.
|
staticconstexprprotected |
Level the dynamics bring the programme to.
Definition at line 4094 of file Saturation.h.
|
protected |
Definition at line 4255 of file Saturation.h.
|
staticconstexprprotected |
Share of the square added at asymmetry 1.
Definition at line 4096 of file Saturation.h.
|
staticconstexprprotected |
-70 dBFS: under it there is no programme.
Definition at line 4093 of file Saturation.h.
|
staticconstexprprotected |
Time constant the programme's level falls with, for the loop that closes.
Definition at line 4092 of file Saturation.h.
|
staticconstexprprotected |
Time the loop's delay takes to glide an octave.
Definition at line 4091 of file Saturation.h.
|
staticconstexprprotected |
Definition at line 4238 of file Saturation.h.
|
staticconstexprprotected |
Shortest feedback line (and piece of a block).
Definition at line 4090 of file Saturation.h.
|
staticconstexprprotected |
Lowest frequency of the tuned feedback.
Definition at line 4089 of file Saturation.h.
|
staticconstexprprotected |
The fall of a mode change's dip.
Definition at line 4189 of file Saturation.h.
|
staticconstexprprotected |
Its rise takes four times as long (the curves settle from rest).
Definition at line 4190 of file Saturation.h.
|
staticconstexprprotected |
Programme noise at or under this is off.
Definition at line 4088 of file Saturation.h.
|
staticconstexprprotected |
Definition at line 4155 of file Saturation.h.
|
staticconstexprprotected |
Channels the stages keep a memory for.
Definition at line 4087 of file Saturation.h.
|
staticconstexprprotected |
Definition at line 4206 of file Saturation.h.
|
staticconstexprprotected |
Definition at line 4205 of file Saturation.h.
|
protected |
Definition at line 4161 of file Saturation.h.
|
protected |
Definition at line 4247 of file Saturation.h.
|
protected |
Definition at line 4248 of file Saturation.h.
|
protected |
Definition at line 4246 of file Saturation.h.
|
protected |
Definition at line 4224 of file Saturation.h.
|
protected |
Definition at line 4107 of file Saturation.h.
|
protected |
Definition at line 4118 of file Saturation.h.
|
protected |
The loop's delay now, in samples (0: not started), and its glide per sample.
Definition at line 4118 of file Saturation.h.
|
protected |
The loop that closes: the level of the input, its fall, how open the loop is.
Definition at line 4119 of file Saturation.h.
|
protected |
Definition at line 4173 of file Saturation.h.
|
protected |
Definition at line 4219 of file Saturation.h.
|
protected |
Definition at line 4220 of file Saturation.h.
|
protected |
Definition at line 4220 of file Saturation.h.
|
protected |
0 = the wet side, 1 = the dry
Definition at line 4219 of file Saturation.h.
|
protected |
MidOnly/SideOnly channel snapshot.
Definition at line 4228 of file Saturation.h.
|
protected |
Definition at line 4158 of file Saturation.h.
|
protected |
Definition at line 4123 of file Saturation.h.
|
protected |
Definition at line 4123 of file Saturation.h.
|
protected |
Definition at line 4125 of file Saturation.h.
|
protected |
Definition at line 4125 of file Saturation.h.
|
protected |
Definition at line 4123 of file Saturation.h.
|
protected |
Definition at line 4129 of file Saturation.h.
|
protected |
Definition at line 4174 of file Saturation.h.
|
protected |
Definition at line 4168 of file Saturation.h.
|
protected |
Definition at line 4230 of file Saturation.h.
|
protected |
The factor follows the host rate (setAutomaticOversampling()).
Definition at line 4232 of file Saturation.h.
|
protected |
setOversamplingBand() (setup thread).
Definition at line 4148 of file Saturation.h.
|
protected |
2x by default: the curves alias at 1x (see setOversampling()).
Definition at line 4231 of file Saturation.h.
|
protected |
Definition at line 4147 of file Saturation.h.
|
protected |
Definition at line 4201 of file Saturation.h.
|
protected |
Definition at line 4202 of file Saturation.h.
|
protected |
Definition at line 4200 of file Saturation.h.
|
protected |
Definition at line 4201 of file Saturation.h.
|
protected |
Definition at line 4160 of file Saturation.h.
|
mutableprotected |
Definition at line 4163 of file Saturation.h.
|
protected |
Definition at line 4164 of file Saturation.h.
|
protected |
Definition at line 4218 of file Saturation.h.
|
protected |
Definition at line 4156 of file Saturation.h.
|
protected |
Definition at line 4177 of file Saturation.h.
|
protected |
Definition at line 4172 of file Saturation.h.
|
protected |
Definition at line 4174 of file Saturation.h.
|
protected |
Definition at line 4177 of file Saturation.h.
|
protected |
Definition at line 4172 of file Saturation.h.
|
protected |
Definition at line 4153 of file Saturation.h.
|
protected |
Definition at line 4239 of file Saturation.h.
|
protected |
Definition at line 4244 of file Saturation.h.
|
protected |
Definition at line 4167 of file Saturation.h.
|
protected |
Definition at line 4119 of file Saturation.h.
|
protected |
Definition at line 4106 of file Saturation.h.
|
protected |
Definition at line 4119 of file Saturation.h.
|
protected |
Definition at line 4224 of file Saturation.h.
|
protected |
Definition at line 4252 of file Saturation.h.
|
protected |
Processing rate / 96 kHz.
Definition at line 4242 of file Saturation.h.
|
protected |
Definition at line 4241 of file Saturation.h.
|
protected |
Definition at line 4152 of file Saturation.h.
|
protected |
Definition at line 4126 of file Saturation.h.
|
protected |
Definition at line 4122 of file Saturation.h.
|
protected |
Definition at line 4113 of file Saturation.h.
|
protected |
Definition at line 4226 of file Saturation.h.
|
protected |
Definition at line 4210 of file Saturation.h.
|
protected |
Definition at line 4208 of file Saturation.h.
|
protected |
Definition at line 4209 of file Saturation.h.
|
protected |
Definition at line 4207 of file Saturation.h.
|
protected |
Definition at line 4211 of file Saturation.h.
|
protected |
Definition at line 4212 of file Saturation.h.
|
protected |
Definition at line 4108 of file Saturation.h.
|
protected |
Definition at line 4142 of file Saturation.h.