Skip to content

Commit 895d39d

Browse files
committed
Update documentation about sinc interpolation
Addresses #1483
1 parent 4af6961 commit 895d39d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Diff for: include/fluidsynth/synth.h

+9-2
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,15 @@ enum fluid_interp
268268
{
269269
FLUID_INTERP_NONE = 0, /**< No interpolation: Fastest, but questionable audio quality */
270270
FLUID_INTERP_LINEAR = 1, /**< Straight-line interpolation: A bit slower, reasonable audio quality */
271-
FLUID_INTERP_4THORDER = 4, /**< Fourth-order interpolation, good quality, the default */
272-
FLUID_INTERP_7THORDER = 7, /**< Seventh-order interpolation */
271+
FLUID_INTERP_4THORDER = 4, /**< Fourth-order interpolation, best quality, the default */
272+
273+
/**
274+
* Seventh-point sinc interpolation
275+
* @note This interpolation method was believed to provide highest quality. However, in Feb. 2025 it was discovered
276+
* that for certain samples it does introduce ringing artifacts, which
277+
* are not present in the 4th order interpolation. This is not a bug, it's rather a limitation of only using 7 points for the sinc interpolation.
278+
*/
279+
FLUID_INTERP_7THORDER = 7,
273280

274281
FLUID_INTERP_DEFAULT = FLUID_INTERP_4THORDER, /**< Default interpolation method */
275282
FLUID_INTERP_HIGHEST = FLUID_INTERP_7THORDER, /**< Highest interpolation method */

0 commit comments

Comments
 (0)