|
DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
|
#include <Saturation.h>
Public Member Functions | |
| void | antiderivatives (double x, double L, double &G, double &P, double &Q) const noexcept |
Static Public Member Functions | |
| static const AdaaTapeTable & | instance () |
| static void | langevin (double x, double &L, double &Lp) noexcept |
Antiderivatives of the anhysteretic tape curve, for its second-order kernel. With x the solution of H = a x - rho L(x) (a = 1/(3(1 - alpha)), rho = alpha/(1 - alpha); see TapeAlgorithm) the curve output is L(x), and with G = ln(sinh x / x) (dG/dx = L), P = int_0^x G and Q = int_0^x L^2,
F1(H) = a G - rho L^2 / 2, F2(H) = a^2 P - a rho G L + (a rho / 2) Q + rho^2 L^3 / 6,
found by integrating in x (dH = (a - rho dL/dx) dx) and by parts. F2 is not elementary: P(x) = x (1 + G) - x^2/2 - pi^2/12 + A(x) and Q(x) = x - L - 2 R(x), R(x) = int_0^x L(t)/t dt = (x - G) - ln 2 + 1/x
Definition at line 765 of file Saturation.h.
|
inlinenoexcept |
G = ln(sinh x / x), P and Q for x >= 0, given L(x).
Definition at line 793 of file Saturation.h.
|
inlinestatic |
Shared instance, built on first use (setup thread: TapeAlgorithm::prepare()).
Definition at line 769 of file Saturation.h.
|
inlinestaticnoexcept |
L and its slope for x >= 0.
Definition at line 776 of file Saturation.h.