ft2-clone

Fasttracker 2 clone
Log | Files | Refs | README | LICENSE

commit b8e6ddadc1ee4b4c0aca5f5ecc943db37567772a
parent 7fc2cbc35a379bfe8cbf70ef744b1495534d079d
Author: Olav Sørensen <olav.sorensen@live.no>
Date:   Fri, 17 Jan 2025 18:08:26 +0100

Update ft2_windowed_sinc.c

Diffstat:
Msrc/mixer/ft2_windowed_sinc.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mixer/ft2_windowed_sinc.c b/src/mixer/ft2_windowed_sinc.c @@ -19,7 +19,7 @@ uint64_t sincRatio1, sincRatio2; // zeroth-order modified Bessel function of the first kind (series approximation) static inline double besselI0(double z) { -#define EPSILON (1E-15) /* lower than this gives no accuracy benefits (verified), just slower compute time */ +#define EPSILON (1E-15) /* lower than this gives no accuracy benefits (verified) */ double s = 1.0, ds = 1.0, d = 2.0; const double zz = z * z; @@ -96,7 +96,7 @@ bool setupWindowedSincTables(void) // Kaiser-Bessel (window) beta (could maybe use some further tweaking) const double b1 = 9.6; const double b2 = 8.5; - const double b3 = 7.0; + const double b3 = 7.3; // sinc low-pass cutoff (could maybe use some further tweaking) const double c1 = 1.000;