Introduction To Sampling
Introduction To Sampling
fi
From the real world to the computer
101 = 10 * 1 = 10
102 = 10 * 10 = 100
103 = 10 * 10 * 10 = 1000
106 = 10 * 10 * 10 * 10 * 10 * 10 * = 1000000
From the real world to the computer
21 = 2 * 1 = 210 = 102
22 = 2 * 2 = 410 = 1002
23 = 2 * 2 * 2 * = 810 = 10002
From the real world to the computer
1 petabyte (PB)
1,125,899,906,842,624 bytes
Maurilio Cacciatore, Composing for ampli ed instrument. Meaning, purposes, perspectives. Milan, 27 October 2021, Conservatory “G. Verdi”. Master of Composition 2021
fi
Conversion DAC
Digital to analogic conversion
Also loudspeakers are transducers, but they work at the opposite. The
computer CPU sends a streaming of bytes that are converted by the
transistors of an audio interface (internal or external to the computer) in
electric impulses. The cones and valves of the loudspeakers convert those
impulses in a sound streaming.
Maurilio Cacciatore, Composing for ampli ed instrument. Meaning, purposes, perspectives. Milan, 27 October 2021, Conservatory “G. Verdi”. Master of Composition 2021
fi
Sampling
Sampling and
quantization
Sampling and quantization
• Quantization is the operation the system can make so to avoid that any other
value can be lled in between those previously calculated.
fi
Let’s repeat…
• Ones audio has been sampled, it is no more continuous but is has been
transformed in a quantized series of values that the computer can convert in
bytes.
Sampling rate (SR)
The sampling rate is the amount of samples in which one second of audio streaming
has been divided.
In order to have a signal as much as possible similar to the original analogic one,
one second of audio is divided in thousands of samples.
Higher is the sample rate, higher will be the delity of the digital sound compared to
the analogic one. On the other hand, higher is the sample rate and more data will be
necessary for its transmission
Sampling rate (SR)
8000 Hz (8 kHz);
Telephone and encrypted walkie-talkie, wireless intercom and wireless microphone transmission; adequate for human speech but
8,000 Hz
without sibilance (ess sounds like eff (/s/, /f/)).
11,025 Hz One quarter the sampling rate of audio CDs; used for lower-quality PCM, MPEG audio and for audio analysis of subwoofer bandpasses.[citation needed]
Wideband frequency extension over standard telephone narrowband 8,000 Hz. Used in most modern VoIP and VVoIP communication products.[14]
16,000 Hz [unreliable source?]
One half the sampling rate of audio CDs; used for lower-quality PCM and MPEG audio and for audio analysis of low frequency energy. Suitable for
22,050 Hz
digitizing early 20th century audio formats such as 78s and AM Radio.[15]
miniDV digital video camcorder, video tapes with extra channels of audio (e.g. DVCAM with four channels of audio), DAT (LP mode),
32,000 Hz Germany's Digitales Satellitenradio, NICAM digital audio, used alongside analogue television sound in some countries. High-quality digital wireless
microphones.[16] Suitable for digitizing FM radio.[citation needed]
44,056 Hz Used by digital audio locked to NTSC color video signals (3 samples per line, 245 lines per eld, 59.94 elds per second = 29.97 frames per second).
Audio CD, also most commonly used with MPEG-1 audio (VCD, SVCD, MP3). Originally chosen by Sony because it could be recorded on modi ed
video equipment running at either 25 frames per second (PAL) or 30 frame/s (using an NTSC monochrome video recorder) and cover the 20 kHz
44,100 Hz
bandwidth thought necessary to match professional analog recording equipment of the time. A PCM adaptor would t digital audio samples into the
analog video channel of, for example, PAL video tapes using 3 samples per line, 588 lines per frame, 25 frames per second.
47,250 Hz world's rst commercial PCM sound recorder by Nippon Columbia (Denon)
fi
fi
Sampling rate (SR)
Sampling rate Use
48,000 Hz The standard audio sampling rate used by professional digital video equipment such as tape recorders, video servers, vision mixers and so on. This rate
was chosen because it could reconstruct frequencies up to 22 kHz and work with 29.97 frames per second NTSC video – as well as 25 frame/s, 30 frame/
50,000 Hz First commercial digital audio recorders from the late 70s from 3M and Soundstream.
50,400 Hz Sampling rate used by the Mitsubishi X-80 digital audio recorder.
88,200 Hz Sampling rate used by some professional recording equipment when the destination is CD (multiples of 44,100 Hz). Some pro audio gear uses (or is able
to select) 88.2 kHz sampling, including mixers, EQs, compressors, reverb, crossovers and recording devices.
DVD-Audio, some LPCM DVD tracks, BD-ROM (Blu-ray Disc) audio tracks, HD DVD (High-De nition DVD) audio tracks. Some professional recording and
96,000 Hz production equipment is able to select 96 kHz sampling. This sampling frequency is twice the 48 kHz standard commonly used with audio on professional
equipment.
176,400 Hz Sampling rate used by HDCD recorders and other professional applications for CD production. Four times the frequency of 44.1 kHz.
DVD-Audio, some LPCM DVD tracks, BD-ROM (Blu-ray Disc) audio tracks, and HD DVD (High-De nition DVD) audio tracks, High-De nition audio
192,000 Hz recording devices and audio editing software. This sampling frequency is four times the 48 kHz standard commonly used with audio on professional video
equipment.
Digital eXtreme De nition, used for recording and editing Super Audio CDs, as 1-bit Direct Stream Digital (DSD) is not suited for editing. Eight times the
352,800 Hz
frequency of 44.1 kHz.
2,822,400 Hz SACD, 1-bit delta-sigma modulation process known as Direct Stream Digital, co-developed by Sony and Philips.
5,644,800 Hz Double-Rate DSD, 1-bit Direct Stream Digital at 2× the rate of the SACD. Used in some professional DSD recorders.
11,289,600 Hz Quad-Rate DSD, 1-bit Direct Stream Digital at 4× the rate of the SACD. Used in some uncommon professional DSD recorders.
22,579,200 Hz Octuple-Rate DSD, 1-bit Direct Stream Digital at 8× the rate of the SACD. Used in rare experimental DSD recorders. Also known as DSD512.
fi
fi
Sampling rate (SR)
Why we say 44100 Hz? Why we count the samples in hertz?The theorem of
Nyquist-Shannon demonstrate that the minimum sample rate for a proper
digital conversion of an audio signal must imperatively be the double of the
highest fundamental. Considering that our ear can perceive up to 15000 Hz
approximately, 20050 Hz are more than enough in order to represent all the
audible frequencies of our environment.
https://en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem
Sampling rate (SR)
Yes and no. The sample is a portion of time and that is true.
Considering that the time lasting of a sample depends of the sample rate, we can a rm that the sample is
a relative time representation.
Bit depth
Ones the audio has been sampled, each sample must be converted in a series
• 8 bit;
• 16 bit;
• 24 bit;
• 32 bit.
Bit depth
Considering our time living and the possibility to add audio to some videos, considering that cd
are almost out of market and considering the availability of disk spaces in our devices, it is
always convenient to use this combination:
48 kHz / 24 bit
Remember! :-)
Bit rate
The bit rate is the amount of data necessary for storing 1’ of audio. It belongs to the sampling
rate, the bit depth and … the channel amount. The standard commercial recordings (CD, web
audio, etc.) are bounced in stereo format, so with two channels. This means that the bit rate will
contain the amount of bytes multiplied for 2 (because each channel requires the same amount of
data…)
Bit rate