10#ifndef SBL_DSP_OSCILLATORS_PM_HPP_
11#define SBL_DSP_OSCILLATORS_PM_HPP_
89 upsampler_.
process(last_, values);
A frame-rate signal interpolated at FACTOR steps through each frame, LATENCY frames late.
void process(float sample, float(&out)[FACTOR])
One frame: push a sample and interpolate the frame LATENCY frames back.
void reset()
History to zero.
static constexpr uint8_t FACTOR
static constexpr uint8_t LATENCY
Finiteness of a float, read from its bits, and a fallback for a value that is not finite.
float frequency(float reference, float octaves)
A reference frequency moved by an interval in octaves.
constexpr float PM_TAMING_CORNER
Cycles per frame: where pm_taming()'s reduction starts, 1.05 kHz at 48 kHz.
constexpr uint8_t PM_SUBSTEPS
float pm_frequency(float tune, float pitch)
The step for a pitch in octaves over a tune.
constexpr float PM_MAX_FREQUENCY
float pm_taming(float octaves_above_corner)
The share of the depth kept at a pitch over PM_TAMING_CORNER.
float pm_depth(float index)
Cycles of phase offset per unit of the PM signal for a bipolar index.
constexpr float PM_TAMING_PER_OCTAVE
constexpr uint8_t PM_LATENCY
constexpr float PM_MAX_INDEX
float finite_or(float x, float fallback)
x, or fallback when x is an infinity or a NaN.
bool is_finite(float x)
std::isfinite, read from the exponent's bits.
constexpr T clamp(T x, T lo, T hi)
x held to [lo, hi]; a NaN goes to lo.
Pitch as octaves and ratios: from an interval to a frequency and back.
A frame-rate signal interpolated at FACTOR steps through each frame, LATENCY frames late.