-
-
Replying to @alt_kia
"As the PC audio signal is a square wave" What? > final int SAMPLE_RATE = 40000; A 20kHz signal at 40kHz sample rate is a sine wave, not a square wave, because Nyquist. Either this guy is using a horrible sound card with aliasing, or there's harmonic distortion somewhere.
2 replies 0 retweets 2 likes -
I wouldn't be too surprised. When you really use a 40000 Hz sample rate, the PC has to do non integer resampling to get to 44100 or 48000Hz. That'll probably create at least some aliasing.
1 reply 0 retweets 0 likes -
That doesn't matter, because even with crappy software resampling and aliasing, 48kHz audio maxes out at 24kHz. The only way to get a 60kHz signal out of a non-terribad sound card is if it's at least 192kHz and being driven at that sample rate.
1 reply 0 retweets 0 likes -
This is what a 20kHz sine wave at 40kHz (with the right phase, because at the edge of Nyquist you hit boundary conditions) looks like when resampled to 48kHz using a crappy cubic resampler. Sure, you get harmonic distortion, but it'll still be contained within the 24kHz bandwidthpic.twitter.com/CvP7nf2Epz
1 reply 0 retweets 0 likes -
Now if you resample to *192kHz* using such a crappy resampler, yes, one of the stronger distortion peaks does hit right at 60kHz. I don't want to imagine what kind of terrible software would do this, though. Cubic resampling is horrible.pic.twitter.com/Zy74yS7Yhw
1 reply 0 retweets 1 like
And of course if you're going to do this you might as well configure your applet to output 192kHz to begin with and stick all the energy at 60kHz instead of relying on crappy software.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.