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
sinc_upsampler_coefficients.hpp
Go to the documentation of this file.
1// Generated by scripts/generate_sinc_upsampler.py; do not edit.
2//
3// SincUpsampler's taps (sinc_upsampler.hpp): a sinc under a Kaiser window of beta 8.0 over 16
4// samples. Row p interpolates (p + 1) / 4 of a frame past sample n - 8, from samples
5// n - 15 .. n, oldest first; each row sums to 1.
6
7#ifndef SBL_DSP_RESAMPLING_SINC_UPSAMPLER_COEFFICIENTS_HPP_
8#define SBL_DSP_RESAMPLING_SINC_UPSAMPLER_COEFFICIENTS_HPP_
9
10#include <cstdint>
11
13
14inline constexpr uint8_t FACTOR = 4;
15inline constexpr uint8_t TAPS = 16;
16
17// clang-format off
18inline constexpr float TAP[FACTOR - 1][TAPS] = {
19 {-0.000485277352f, 0.00228160601f, -0.00696916819f, 0.017004801f,
20 -0.036405809f, 0.0739938968f, -0.164263487f, 0.897048996f,
21 0.29038441f, -0.107319586f, 0.0519342703f, -0.0251739979f,
22 0.011119479f, -0.00413483248f, 0.00113786118f, -0.00015316206f},
23 {-0.000407424613f, 0.00231343125f, -0.00765090423f, 0.0195368031f,
24 -0.042913236f, 0.0875955904f, -0.185853037f, 0.627378777f,
25 0.627378777f, -0.185853037f, 0.0875955904f, -0.042913236f,
26 0.0195368031f, -0.00765090423f, 0.00231343125f, -0.000407424613f},
27 {-0.00015316206f, 0.00113786118f, -0.00413483248f, 0.011119479f,
28 -0.0251739979f, 0.0519342703f, -0.107319586f, 0.29038441f,
29 0.897048996f, -0.164263487f, 0.0739938968f, -0.036405809f,
30 0.017004801f, -0.00696916819f, 0.00228160601f, -0.000485277352f},
31};
32// clang-format on
33
34} // namespace sbl::dsp::sinc_upsampler
35
36#endif // SBL_DSP_RESAMPLING_SINC_UPSAMPLER_COEFFICIENTS_HPP_
Generated coefficients of the SincUpsampler's kernel.