//! Building blocks the stages share: gains and levels in dB, one-pole smoothing and ramps over a
//! frame.
use crate::;
/// The factor of a gain in dB. With `exp`, which is faster than `powf`.
/// The level of a gain factor in dB, the inverse of [`db_to_gain`].
/// The level of a power (a mean square) in dB, −120 for silence.
/// The factor per sample of a one-pole smoothing (`y += (x - y) * factor`) with the time constant
/// `tau` in seconds.
/// A linear ramp from `from` to `to` over a frame, a value per sample: the last one is `to`, so the
/// next frame goes on from there without a step.