-
-
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 -
This Tweet is unavailable.
-
Replying to @alt_kia
Because a 20kHz square wave has infinite bandwidth (it's composed of an infinite number of harmonics), but 40kHz sampling can only represent up to 20kHz of bandwidth... and then you're left with the first harmonic only, which is a sine wave.
1 reply 0 retweets 2 likes -
Watch
@xiphmont's amazing video on this subject. He dispels all of the typical myths and misconceptions about digital audio with awesome hands-on demos. https://xiph.org/video/vid2.shtml …1 reply 0 retweets 7 likes -
Also I should note that the Nyquist theorem requires *excluding* exactly at half the Nyquist frequency. A 20kHz signal sampled at 40kHz is a corner case - the phase and amplitude are ambiguous, and good resampling algorithms will actually *filter out* such a signal.
1 reply 0 retweets 0 likes -
So the fact that he's getting *any* output at all, at a nonstandard sample rate like 40kHz, pretty much means he's implicitly using, and relying on, some kind of crappy resampler (probably built in to Java or Windows).
1 reply 0 retweets 0 likes
* I meant exactly at half the sampling frequency (which is the Nyquist frequency).
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.