OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
ossia::meters::vu Struct Reference

Detailed Description

VU meter (IEC 60268-17): full-wave average through a second-order system that reaches 99% of a steady tone in 300 ms with a 1.25% overshoot (the standard allows 1 to 1.5%). Scaled so that a sine reads its RMS value; 0 VU is wherever the reference level puts it.

Public Member Functions

void prepare (double rate) noexcept
void process (const auto *in, int n) noexcept
double level () const noexcept

Public Attributes

double y {}
double v {}
double dt {}

Static Public Attributes

static constexpr double zeta = 0.8127169864286775
static constexpr double omega = 13.511933333385695
 300 ms to 99% of a step, for that damping
static constexpr double sine_average_to_rms = 1.1107207345395915
 Full-wave average of a sine to its RMS value: pi / (2 sqrt(2)).