"Sample Rate" and "Bit Rate" are different things.Worez wrote: So if I convert CD-Audio track to MP3 160 kbps, then that file will have the cut-off line at around 16.5 hHz only in theory, because something may leak above it?
But Wikipedia entry on the MP3 format says that:
Because of the Nyquist–Shannon sampling theorem, frequency reproduction is always strictly less than half of the sampling frequency, and imperfect filters requires a larger margin for error (noise level versus sharpness of filter), so 8 kHz sampling rate limits the maximum frequency to 4 kHz, while 48 kHz maximum sampling rate limits an MP3 to 24 kHz sound reproduction.
[https://en.wikipedia.org/wiki/MP3#Bit_rate]
As I understand it, that article claims that it should be always even a little below 16.5 [and there is no something like leakeage above]
MP3s are usually described in terms of "bit rate". This is the number (or average number) of binary digits per second of audio. Because MP3 is a compressed format, this figure does not directly affect the available frequency range. However, standard encoder settings do limit the frequency response more for low bit rates than for high bit rates. Limiting the frequency range is one way that MP3 encoding can reduce the amount of data required to encode the audio. Rather than "wasting" bits encoding very high frequencies that are barely audible, MP3 encoding filters out very high frequencies (throws them away). The table here shows the recommended low-pass filter settings for the LAME encoding library: http://wiki.hydrogenaud.io/index.php?ti ... nformation Note that these are only the "recommended" settings - LAME provides options to customise the low-pass filtering.
"Sample Rate" refers to the uncompressed audio data. It is the number of "samples" per second for each audio channel. If you zoom in as far as possible on a waveform in Audacity, you will see dots that represent the individual audio samples. The "Nyquist" frequency relates to the sample rate. For any given sample rate, the absolute frequency limit is half the sample rate.
You could have two copies of the same audio, both with a "sample rate" of 44100 Hz, but compressed to MP3 with different "bit rates". The absolute frequency limit due to the sample rate is 22050 Hz (the Nyquist frequency), but the frequency range is limited further due to filtering by the MP3 encoder. Lower "bit rates" tend to be filtered more severely than high bit rates. Thus in Audacity you will see the upper frequency limit as 22050 Hz (the Nyquist frequency, which is an absolute limit), and you will also see that the sound intensity drops to virtually nothing at some frequency below the Nyquist frequency (about 16500 Hz in your example). This lower limit is due to the MP3 encoder low-pass filtering. It is this second "limit" that Audacity cannot predict.
is that any clearer?