Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
sbl::dsp::math::Bspline4 Struct Reference

The cubic B-spline over four frames, two before the event and two after. More...

Detailed Description

The cubic B-spline over four frames, two before the event and two after.

From Valimaki, Pekonen and Nam (2012), Table VII, and Esqueda, Valimaki and Bilbao (2016), Table 1. A harmonic at f is scaled by sinc^4(f / fs). The residuals match the numeric integrals of the B-spline in test_polyblep.hpp.

Definition at line 61 of file polyblep.hpp.

#include <polyblep.hpp>

Static Public Member Functions

static constexpr BlepResidual< 4 > step (float t)
 The residual of a unit step.
 
static constexpr BlepResidual< 4 > slope (float t)
 The residual of a unit slope change per frame.
 

Static Public Attributes

static constexpr uint8_t FRAMES = 4
 
static constexpr uint8_t LATENCY = 2
 

Member Function Documentation

◆ step()

static constexpr BlepResidual< 4 > sbl::dsp::math::Bspline4::step ( float  t)
inlinestaticconstexpr

The residual of a unit step.

At t = 0 the residual is {0, 1/24, -1/2, -1/24}: the step response at integer offsets, less the step.

Parameters
tFraction of a frame since the event, in [0, 1)
Returns
Corrections for the four frames, oldest first

Definition at line 73 of file polyblep.hpp.

◆ slope()

static constexpr BlepResidual< 4 > sbl::dsp::math::Bspline4::slope ( float  t)
inlinestaticconstexpr

The residual of a unit slope change per frame.

Non-negative: a smoothed convex corner lies above the naive one on both sides.

Parameters
tFraction of a frame since the event, in [0, 1)
Returns
Corrections for the four frames, oldest first

Definition at line 95 of file polyblep.hpp.

Member Data Documentation

◆ FRAMES

constexpr uint8_t sbl::dsp::math::Bspline4::FRAMES = 4
staticconstexpr

Frames the kernel touches

Definition at line 62 of file polyblep.hpp.

◆ LATENCY

constexpr uint8_t sbl::dsp::math::Bspline4::LATENCY = 2
staticconstexpr

Frames before the event

Definition at line 63 of file polyblep.hpp.


The documentation for this struct was generated from the following file: