Merge pull request #597 from jpcima/hermite

Hermite interpolator as default; has less HF attenuation
This commit is contained in:
JP Cimalando 2021-01-21 10:10:59 +01:00 committed by GitHub
commit b4d6dbaef8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1162,11 +1162,11 @@ void Voice::Impl::fillInterpolatedWithQuality(
break;
case 2: high:
{
#if 1
#if 0
// B-spline response has faster decay of aliasing, but not zero-crossings at integer positions
constexpr auto itp = kInterpolatorBspline3;
#else
// Hermite polynomial
// Hermite polynomial, has less pass-band attenuation
constexpr auto itp = kInterpolatorHermite3;
#endif
fillInterpolated<itp, Adding>(source, dest, indices, coeffs, addingGains);