X-Git-Url: https://git.sesse.net/?p=c64tapwav;a=blobdiff_plain;f=synth.cpp;fp=synth.cpp;h=f40a76b4837d61158582defe3c965f00305ddfed;hp=0bde14bd6645514c84cc446c3328132fc53bca52;hb=aec567fb778f2a3dc479dc7bd47551b96b361ff0;hpb=64f186d68c59fe7cd21fa02fa5f910f60644b8a7 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))