|
DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
|
#include <Saturation.h>
Public Member Functions | |
| void | setCharacter (double a) noexcept |
| double | p (double u) const noexcept |
| double | f (double u) const noexcept |
| double | average (double u0, double u1, double u2) const noexcept |
Public Attributes | |
| double | A = 0.0 |
| Quadratic coefficient (0.25 character). | |
| double | crit [2] = { 0.0, 0.0 } |
| Critical points of p, ascending. | |
| double | critValue [2] = { 0.0, 0.0 } |
Static Public Attributes | |
| static constexpr double | kB = 0.15 |
| static constexpr double | kLimit = 10.0 |
Exact second-order kernel of the Exciter curve f(u) = clamp(p(u), -1, 1), p(u) = u + A u^2 - B u^3 on |u| <= 10 and constant beyond (the plain path clamps u to +-10 first). f is piecewise polynomial, so the average over the linear B-spline with knots at three inputs (Bilbao et al. 2017) has a closed form: the interval between the outer knots is split at the middle knot, at +-10 and where p crosses +-1 (bracketed Newton on the monotone pieces of p between its two critical points), and each piece contributes its exact moment against the linear weight, written about the piece centre so that no difference of large terms appears. When no crossing can lie between the knots (the extremes of p over the interval stay inside [-1, 1]) the average is the closed form of the cubic in the complete symmetric polynomials of the knots.
Definition at line 451 of file Saturation.h.
|
inlinenoexcept |
Average of f over the linear B-spline with knots u0, u1, u2.
Definition at line 477 of file Saturation.h.
|
inlinenoexcept |
Definition at line 471 of file Saturation.h.
|
inlinenoexcept |
Definition at line 470 of file Saturation.h.
|
inlinenoexcept |
Definition at line 459 of file Saturation.h.
| double dspark::detail::AdaaExciter::A = 0.0 |
Quadratic coefficient (0.25 character).
Definition at line 455 of file Saturation.h.
| double dspark::detail::AdaaExciter::crit[2] = { 0.0, 0.0 } |
Critical points of p, ascending.
Definition at line 456 of file Saturation.h.
| double dspark::detail::AdaaExciter::critValue[2] = { 0.0, 0.0 } |
Definition at line 457 of file Saturation.h.
|
staticconstexpr |
Definition at line 453 of file Saturation.h.
|
static |
Definition at line 453 of file Saturation.h.