From aec567fb778f2a3dc479dc7bd47551b96b361ff0 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 17 Sep 2012 20:59:00 +0200 Subject: [PATCH] Switch the default LPF to 22 kHz. --- synth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synth.cpp b/synth.cpp index 0bde14b..f40a76b 100644 --- a/synth.cpp +++ b/synth.cpp @@ -11,9 +11,9 @@ using namespace std; #define WAVE_FREQ 44100 #define C64_FREQ 985248 -// Nyquist frequency of low-pass filter (must be max. WAVE_FREQ / 2 or you +// Cutoff frequency of low-pass filter (must be max. WAVE_FREQ / 2 or you // will get aliasing) -#define LPFILTER_FREQ 8000 +#define LPFILTER_FREQ 22050 #define NORMALIZED_LPFILTER_FREQ (float(LPFILTER_FREQ) / float(WAVE_FREQ)) #define LANCZOS_EFFECTIVE_RADIUS (LANCZOS_RADIUS / (NORMALIZED_LPFILTER_FREQ * 2.0)) -- 2.39.2