From: Steinar H. Gunderson Date: Mon, 17 Sep 2012 18:59:00 +0000 (+0200) Subject: Switch the default LPF to 22 kHz. X-Git-Url: https://git.sesse.net/?p=c64tapwav;a=commitdiff_plain;h=aec567fb778f2a3dc479dc7bd47551b96b361ff0;hp=64f186d68c59fe7cd21fa02fa5f910f60644b8a7 Switch the default LPF to 22 kHz. --- 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))