Audio Basis - articles about audio
Read an easy explanation, of what is sample rate and Nyquist–Shannon sampling theorem.
Sample rate is a number of digital signal's samples per second.
More sample rate - more samples per second.
Sound is air pressure oscillation.
The oscillation is a fast changing of air pressure in time.
Air oscillations impact to a microphone. Changings of the air pressure are transformed into oscillations of electrical voltage. The last one is an analog waveform.
Analog-to-digital converter makes instant measurements of voltage. Measurements are placed at even intervals on the time.
Sample is the measurement.
Digital signal (digital form of analog waveform) is the sample sequemce.
Also, we can same that sampling rate is the measurement number per second.
Digital signal has own sampling rate.
Sine signal is a periodic waveform. Changing of analog-audio voltage repeats over time period. Here we can look at the reference points of the waveform during a period.
values 0 → amplitude → 0 → -amplitude, or
GROUND → UP → GROUND → DOWN
Period repeats during time.
It's like periodical swing of the pendulum. Period is repeatable movement.
Period 0: center → left → center → right,
Period 1: center → left → center → right.
. . .
Period N: center → left → center → right.
Amplitude is how far the pendulum deviates from the central position.
Frequency of sine is a number of periods per second.
More sine frequency more high sound. Bass is low frequencies. Birdsong is high frequencies with plenty of the periods.
We have a time between the samples.
Designate this time as sampling period.
Imagine sine with the one repeating during the two sampling periods.
Nyquist–Shannon sampling theorem says:
Highest sound frequency, which be able to converted to digital form, is half of sampling rate.
Example: If sampling rate is 44100 Hz, such digital signal can contains maximum frequency 22050 Hz = 44100 / 2.
At first sight, digital signal like to "stairs". But, really, it is not so.
"Stairs" exists after conversion digital values to electrical voltage.
But next stage is analog filtering.
The filtering smooth stairs (interpolate). It is like to connecting voltage values by steel ruler.
There is no "good" or "bad" sampling rates. Higher sampling rates allows solving issuies that are inherent in low diskretization frequencies.
Higher sampling rate make easier design of filter of digital-to-analog converter.