shithub: ft²

Download patch

ref: 9db2239ebdf25daabe6282be36c802d56d5ab8fc
parent: 813029d72b6b62ce7af6643860acbed73068f80e
author: Olav Sørensen <olav.sorensen@live.no>
date: Sat Nov 22 05:37:30 EST 2025

Update ft2_windowed_sinc.c

--- a/src/mixer/ft2_windowed_sinc.c
+++ b/src/mixer/ft2_windowed_sinc.c
@@ -23,22 +23,22 @@
 	** Lower beta = less treble cut off, more aliasing (narrower mainlobe, stronger sidelobe)
 	** Higher beta = more treble cut off, less aliasing (wider mainlobe, weaker sidelobe)
 	**
-	** The 8-point kernel should not have a beta lower than around 9.2, as it results
-	** in audible ringing at very low resampling ratios (well below 1.0, that is).
+	** The first 8-point kernel should not have a beta lower than around 9.2, as it
+	** results in audible ringing at very low resampling ratios (well below 1.0, that is).
 	*/
 
 	{ // -- settings for 8-point sinc --
 		// beta, cutoff
-		{   9.2f, 1.000f }, // kernel #1
-		{   8.5f, 0.750f }, // kernel #2
-		{   7.3f, 0.425f }  // kernel #3
+		{  9.2f, 1.000f }, // kernel #1
+		{  8.5f, 0.750f }, // kernel #2
+		{  7.3f, 0.425f }  // kernel #3
 	},
 
 	{ // -- settings for 16-point sinc --
 		// beta, cutoff
-		{   8.6f, 1.000f }, // kernel #1
-		{   8.5f, 0.750f }, // kernel #2
-		{   7.3f, 0.425f }  // kernel #3
+		{  8.6f, 1.000f }, // kernel #1
+		{  8.5f, 0.750f }, // kernel #2
+		{  7.3f, 0.425f }  // kernel #3
 	}
 };
 
@@ -72,7 +72,7 @@
 	}
 }
 
-// note: numPoints must be 2^n!
+// note: numPoints/numPhases must be 2^n!
 static void makeSincKernel(float *out, int32_t numPoints, int32_t numPhases, float beta, float cutoff)
 {
 	const int32_t kernelLen = numPhases * numPoints;
--