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::Linear2 Struct Reference

The triangular kernel over two frames, one before the event and one after: Plaits' polyBLEP. More...

Detailed Description

The triangular kernel over two frames, one before the event and one after: Plaits' polyBLEP.

The kernel of stmlib/dsp/polyblep.h (MIT). A harmonic at f is scaled by sinc^2(f / fs). The residuals match the numeric integrals of the B-spline in test_polyblep.hpp.

Definition at line 119 of file polyblep.hpp.

#include <polyblep.hpp>

Static Public Member Functions

static constexpr BlepResidual< 2 > step (float t)
 The residual of a unit step; at t = 0 it is {0, -1/2}.
 
static constexpr BlepResidual< 2 > slope (float t)
 The residual of a unit slope change per frame.
 

Static Public Attributes

static constexpr uint8_t FRAMES = 2
 
static constexpr uint8_t LATENCY = 1
 

Member Function Documentation

◆ step()

static constexpr BlepResidual< 2 > sbl::dsp::math::Linear2::step ( float  t)
inlinestaticconstexpr

The residual of a unit step; at t = 0 it is {0, -1/2}.

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

Definition at line 129 of file polyblep.hpp.

◆ slope()

static constexpr BlepResidual< 2 > sbl::dsp::math::Linear2::slope ( float  t)
inlinestaticconstexpr

The residual of a unit slope change per frame.

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

Definition at line 140 of file polyblep.hpp.

Member Data Documentation

◆ FRAMES

constexpr uint8_t sbl::dsp::math::Linear2::FRAMES = 2
staticconstexpr

Frames the kernel touches

Definition at line 120 of file polyblep.hpp.

◆ LATENCY

constexpr uint8_t sbl::dsp::math::Linear2::LATENCY = 1
staticconstexpr

Frames before the event

Definition at line 121 of file polyblep.hpp.


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