]> git.sesse.net Git - c64tapwav/commitdiff
Switch the default LPF to 22 kHz.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 17 Sep 2012 18:59:00 +0000 (20:59 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 17 Sep 2012 18:59:00 +0000 (20:59 +0200)
synth.cpp

index 0bde14bd6645514c84cc446c3328132fc53bca52..f40a76b4837d61158582defe3c965f00305ddfed 100644 (file)
--- a/synth.cpp
+++ b/synth.cpp
@@ -11,9 +11,9 @@ using namespace std;
 #define WAVE_FREQ 44100
 #define C64_FREQ 985248
 
 #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)
 // 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))
 
 #define NORMALIZED_LPFILTER_FREQ (float(LPFILTER_FREQ) / float(WAVE_FREQ))
 #define LANCZOS_EFFECTIVE_RADIUS (LANCZOS_RADIUS / (NORMALIZED_LPFILTER_FREQ * 2.0))