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

A Kaiser-windowed sinc over sixteen frames, eight before the event and eight after. More...

Detailed Description

A Kaiser-windowed sinc over sixteen frames, eight before the event and eight after.

The cores' default: a sinc low-pass at 0.40 of the sample rate under a Kaiser window of beta 7. At 48 kHz it is within 0.4 dB to 15 kHz and 3.3 dB down at 18 kHz, where Bspline4 is 5.8 and 8.4 dB down. Its residuals are degree-7 polynomials per frame, generated with scripts/generate_sinc_kernel.py into sinc16_coefficients.hpp, and match the numeric integrals of the windowed sinc in test_polyblep.hpp.

Definition at line 156 of file polyblep.hpp.

#include <polyblep.hpp>

Static Public Member Functions

static constexpr BlepResidual< FRAMES > step (float t)
 The residual of a unit step, from sinc16::STEP.
 
static constexpr BlepResidual< FRAMES > slope (float t)
 The residual of a unit slope change per frame, from sinc16::SLOPE.
 

Static Public Attributes

static constexpr uint8_t FRAMES = sinc16::FRAMES
 
static constexpr uint8_t LATENCY = FRAMES / 2
 

Member Function Documentation

◆ step()

static constexpr BlepResidual< FRAMES > sbl::dsp::math::Sinc16::step ( float  t)
inlinestaticconstexpr

The residual of a unit step, from sinc16::STEP.

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

Definition at line 166 of file polyblep.hpp.

◆ slope()

static constexpr BlepResidual< FRAMES > sbl::dsp::math::Sinc16::slope ( float  t)
inlinestaticconstexpr

The residual of a unit slope change per frame, from sinc16::SLOPE.

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

Definition at line 174 of file polyblep.hpp.

Member Data Documentation

◆ FRAMES

constexpr uint8_t sbl::dsp::math::Sinc16::FRAMES = sinc16::FRAMES
staticconstexpr

Frames the kernel touches

Definition at line 157 of file polyblep.hpp.

◆ LATENCY

constexpr uint8_t sbl::dsp::math::Sinc16::LATENCY = FRAMES / 2
staticconstexpr

Frames before the event

Definition at line 158 of file polyblep.hpp.


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