Calculate sampling rate, Nyquist frequency, and aliasing parameters. Essential tool for audio engineers and signal processing professionals.
Sampling rate, or sampling frequency, is the number of samples per second taken from a continuous signal to make a discrete signal. It is measured in hertz (Hz) and is a critical parameter in digital signal processing, audio recording, and data acquisition systems.
Key Concepts:
| Application | Sampling Rate | Nyquist Frequency | Typical Use |
|---|---|---|---|
| Telephony | 8,000 Hz | 4,000 Hz | Voice communication, sufficient for telephone speech |
| Audio CD | 44,100 Hz | 22,050 Hz | Standard audio CD quality, covers human hearing range (20-20,000 Hz) |
| Professional Audio | 48,000 Hz | 24,000 Hz | Professional audio recording and video production |
| High-Resolution Audio | 96,000 Hz | 48,000 Hz | High-resolution audio, studio mastering |
| Ultra HD Audio | 192,000 Hz | 96,000 Hz | Ultra-high-resolution audio, scientific applications |
| Digital Video | 48,000 Hz | 24,000 Hz | Standard for digital video audio tracks |
The Nyquist-Shannon sampling theorem states that a continuous signal can be perfectly reconstructed from its samples if the sampling rate is greater than twice the highest frequency component in the signal. This minimum rate is called the Nyquist rate.
Formula: fs > 2fmax
Where: fs = Sampling rate, fmax = Maximum frequency in the signal
What is Aliasing? When a signal is sampled at less than the Nyquist rate, higher frequencies "fold back" into lower frequencies, creating false signals.
Alias Frequency Calculation: falias = |f - round(f/fs) × fs|
Preventing Aliasing: Use anti-aliasing filters (low-pass filters) before sampling to remove frequencies above fs/2.
Nyquist Zones: The frequency spectrum is divided into zones of width fs/2. Signals in odd zones appear correctly, while those in even zones are aliased.
Bit depth determines the dynamic range of a digital signal. Each additional bit adds approximately 6 dB of dynamic range.
| Bit Depth | Dynamic Range | Quantization Levels | Common Applications |
|---|---|---|---|
| 8-bit | 48 dB | 256 | Telephone, low-quality audio |
| 16-bit | 96 dB | 65,536 | Audio CD, standard digital audio |
| 24-bit | 144 dB | 16,777,216 | Professional audio, studio recording |
| 32-bit (float) | ~1528 dB (theoretical) | 4,294,967,296 | Audio processing, scientific applications |
Technical Note: In practice, sampling rates are often set higher than the theoretical minimum to account for imperfect anti-aliasing filters and to provide a safety margin. Common practice is to sample at 2.2 to 2.5 times the maximum frequency of interest.