I understand that a DAC is a device that produces a varying voltage according to the digital input that it is given, and that it is able to change this voltage n times per second, where n is the samplerate of the DAC, i can also understand that the accuracy with which the voltage can be set for each sample is determined by the bit depth as that determines the number of possibilities, and how this effectively determines the signal-to-noise ratio of the signal, because the less accurate the voltage is set, the less accurate the waveform is reconstructed and the resulting difference is noise. So far so good.
It's also easy to understand that the maximum possible frequency that can be reproduced, the so-called nyquist frequency, is exactly half the samplerate, because a wave needs at the very least a crest and a trough sampled to be a wave.
However i get the impression from reading this forum that every frequency up to the nyquist frequency can be reproduced. When i look at spectograms the Y axis is always from 0 to the nyquist frequency and when looking at noise i can see that there is sound all the way up.
What i don't get is how a 44.1KHz DAC would reproduce a sine wave at 22049Hz, or rather, how one could possibly represent such a wave digitally at said samplerate. I imagine that the sampling points would sometimes fall near the crest and trough, but later fall near the neutral points. I imagine this would be reproduced as a 22050Hz wave with a full amplitude modulation at 2Hz, and reversing in phase each time, and that this phenomenon is called aliasing, is this correct?
If so, then how can frequencies near the nyquist frequency be represented and measured in the digital signal? I know that during mastering there will often be a so called "brick wall" filter at roughly 20KHz, but even at 20KHz you only have 2.2 samples to represent each wave with, and i cannot imagine how one could accurately represent frequencies when you have so few samples at non-integer numbers to use.
I assume that there must be a flaw in my reasoning somewhere, but i can't see where, so any help would be appreciated.


