|
DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
|
Crossfade between two audio signals with selectable curve and artifact-free parameter smoothing. More...
#include "../Core/DspMath.h"#include <algorithm>#include <atomic>#include <cassert>#include <cmath>

Go to the source code of this file.
Classes | |
| class | dspark::Crossfade< T > |
| Artifact-free, SIMD-friendly crossfader for two audio signals. More... | |
Namespaces | |
| namespace | dspark |
| Main namespace for the DSPark framework. | |
Crossfade between two audio signals with selectable curve and artifact-free parameter smoothing.
Provides highly optimized crossfade curves for audio transitions. Designed for zero-allocation real-time contexts, featuring automatic block-level parameter smoothing to prevent zipper noise.
Curves:
Dependencies: Core/DspMath.h.
Threading: setCurve()/setPosition() are safe from any thread (atomics, consumed by the processing calls on the audio thread); non-finite positions are ignored. The processing calls and the gain getters belong to the audio thread (getters read unsynchronized audio-thread state: metering only).
Definition in file Crossfade.h.