|
DSPark 1.6.1
Header-only audio DSP framework in pure C++20 — zero dependencies
|
Block-rate modulation routing: sources to parameter setters. More...
#include "DspMath.h"#include <algorithm>#include <array>#include <atomic>#include <cmath>#include <functional>

Go to the source code of this file.
Classes | |
| class | dspark::ModulationRouter< T, MaxRoutes > |
| Fixed-capacity source-to-target router with per-route depth/smoothing. More... | |
Namespaces | |
| namespace | dspark |
| Main namespace for the DSPark framework. | |
Block-rate modulation routing: sources to parameter setters.
Generalizes the pitch-tracking-EQ pattern to any parameter without imposing an architecture: a route reads a source (LFO, EnvelopeFollower, PitchFollower, your lambda...), scales it by depth around a base value, smooths it, and applies it through a setter callback – once per block, which is how DSPark parameters are designed to move (their setters are thread-safe and internally smoothed).
Routes are configured at setup time (std::function storage may allocate THERE); update() in the audio callback is allocation-free – it only invokes the stored callables.
Dependencies: DspMath.h.
Definition in file ModulationRouter.h.