ELEN0450 · Multimedia Systems
Lecture 7
Acoustics, microphones & speakers
How we ear, capture, and reproduce analog sound
www.viulab.be
Recap: where we are in the pipeline
Reminder
Last lecture: The analog video signal, analog storage, and analog and digital displays
The analog video signal, color in the analog signal, from analog to digital, flat-panel technologies, and specifying and connecting displays
This lecture : How we ear, capture, and reproduce analog sounds
Representation
Digitization
Acquisition Capture
Compression Storage
Distribution Transmission
Display
Render
Scope of the course
3
Analog path
Digital path
Physical scene
Light, sound, motion
Capture
Lens, sensor, microphone
Analog signal
Continuous in time and amplitude
Analog storage and transport
Film, vinyl, tape, broadcast
Rendering
Display, loudspeaker, print
Synthesis
Graphics, audio, generative
Digital signal representation
ADC, samples,
pixels, bit depth
Source coding
compression
JPEG, AAC, MP4
Storage
Container, disc, network
Transmission and decoding
Network, Inverse transform, DAC
Human perception
Visual and auditory systems
Sampling and quantization
Perceptual models drive the coding stage: chroma subsampling, quantization tables, masking thresholds
Scope
What you'll be able to do after today's class
Objective
Describe a sound wave, use decibels, and state the hearing range
Explain pure tones and complex sounds
Derive the spectral analysis of sound
Understand room acoustics
Explain microphones compare capture technologies
Explain how a loudspeaker reproduces sounds
Table of content
ELEN0450 · Multimedia Systems | |
1 | Basics of multimedia |
2 | Graphics & image representation |
3 | Colorimetry & color spaces |
4 | Analog image & video |
5 | Camera model & digital sensors |
6 | Analog and digital displays |
7 | Acoustics, microphones & speakers |
8 | Audio digitization & compression |
9 | Digital image compression |
10 | Digital video compression |
11 | Transmission protocols |
12 | Internet distribution |
Sound as a wave
– Pressure, frequency, and pure tones
– Power and intensity
– Decibels, adding levels, and SNR
Analyzing frequencies
– Fourier series and transform
– STFT and the uncertainty principle
– Wavelet and multiresolution
Hearing and rooms
– The ear and its range
– Room acoustics
Capturing sound
– Phonograph to vinyl
– Condenser microphone
Reproducing sound
– Electrodynamic loudspeaker
Storing sound
– Optical sound on film
– Magnetic tape and cassette
Why acoustics belongs in this course
Every choice in audio coding rests on a physical or perceptual fact about sound.
Problem statement
What sound actually is
Definition
Sound is created by elastic vibrations or oscillations of particles in a particular medium.
The vibrations are transmitted from particles to (neighboring) particles: sound waves.
Sound waves propagate in a propagation medium (air), not in empty space.
Acoustic pressure
8
Definition
Acoustic pressure is defined as the difference between the instantaneous air pressure and the atmospheric pressure existing at the same location without sound.
Acoustic vibrations create perturbation in the propagation medium (air).
Sound frequencies
9
Periodic pressure variations are characterized by their frequency.
The frequency is the number of variation per second (Hertz or Hz).
Humans can typically hear frequencies between 20 Hz and 20 kHz.
Property
Pure tones
Idea
Frequency is simply how many pressure cycles arrive per second.
A pure tone only contains one single frequency (remember monochromatic radiations with light).
We hear it as pitch.
Examples of pure tones
11
Examples
Transverse propagation
12
The propagation of the particles are perpendicular to the direction of propagation.
If the vibration is harmonic (pure tone) the wavelength expresses its periodicity in the space domain.
Definition
Frequency (Hz)
Property
Worked examples
13
Examples
Acoustic pressure is a function of space and time
14
Mathematical definition
Acoustic power and intensity
15
Mathematical definition
Loudness of sounds
16
Idea
Our sense of loudness is not proportional to pressure; it is closer to logarithmic.
So, a linear scale is useless in practice, which is why the decibel exists.
Decibels: a logarithmic scale
Mathematical definition
Addition of acoustic pressure signals
18
Mathematical definition
Mathematical definition
Worked: adding two sounds in decibels
Example
| 2 | 4 | 8 | 10 | 100 |
| +3 dB | +6 dB | +9 dB | +10 dB | +20 dB |
Property
Signal to noise ratio
20
Original audio
SNR 20dB
SNR 50dB
SNR 90dB
Mathematical definition
Table of content
ELEN0450 · Multimedia Systems | |
1 | Basics of multimedia |
2 | Graphics & image representation |
3 | Colorimetry & color spaces |
4 | Analog image & video |
5 | Camera model & digital sensors |
6 | Analog and digital displays |
7 | Acoustics, microphones & speakers |
8 | Audio digitization & compression |
9 | Digital image compression |
10 | Digital video compression |
11 | Transmission protocols |
12 | Internet distribution |
Sound as a wave
– Pressure, frequency, and pure tones
– Power and intensity
– Decibels, adding levels, and SNR
Analyzing frequencies
– Fourier series and transform
– STFT and the uncertainty principle
– Wavelet and multiresolution
Hearing and rooms
– The ear and its range
– Room acoustics
Capturing sound
– Phonograph to vinyl
– Condenser microphone
Reproducing sound
– Electrodynamic loudspeaker
Storing sound
– Optical sound on film
– Magnetic tape and cassette
Pure and complex tones
A pure tone is a single sine/cosine wave; real sounds contain many frequencies at once.
Reminder
Analyzing the frequencies of complex tones
23
We receive a sound wave at a microphone and want to know the frequency content of it.
Problem statement
Black-box function
Fourier series
24
For a continuous and periodic signal
The principle of the Fourier series is to break up continuous periodic signals into summations of complex exponential components (sines and cosines).
CT periodic signal
Integral over one period
Mathematical definition
Fourier Transform
25
For a continuous and aperiodic signal
The Fourier transform is an integral function that takes as input a continuous-time aperiodic signal and outputs another function that describes to which extent frequencies are present in a signal.
CT aperiodic signal
Complex exponential kernel
Integral over the whole signal
Mathematical definition
Frequency analysis of continuous-time aperiodic signals
26
Fourier transform
9Hz
3Hz
6Hz
Example
Pressure signal
Frequency analysis of 1D and 2D signals
27
horizontal frequencies
vertical frequencies
Time (seconds)
Example
Limitation of the Fourier transform
28
Time (seconds)
Sound amplitude
Time (seconds)
Sound amplitude
The Fourier transform hides the temporal information (position) of the frequencies in the phase.
Property
Limitations of the Fourier transform
29
Audio signal of a famous song intro
Time domain
Time (seconds)
Frequency domain
Time-frequency domain
Time (seconds)
Magnitude
Objective: We want to know when specific frequencies (e.g., music notes) happen in a signal.
Limitation: The Fourier transform hides the temporal position of the frequencies in the phase.
Objective
Example
Windowed Fourier transform
30
A first idea: restrict the Fourier transform to a particular temporal region.
Time (seconds)
9Hz
3Hz
6Hz
Frequency domain
Time domain
Idea
Example
Short-Time Fourier Transform (STFT)
31
Mathematical definition
Example of the STFT
32
32
Frequency domain
Time (seconds)
Time (seconds)
Magnitude
Time domain
Time-frequency diagram
Example
Time-frequency uncertainty principle
33
Narrow windows
Wide windows
Good time resolution
Poor frequency resolution
Poor time resolution
Good frequency resolution
[Reference] Stéphane Mallat, A Wavelet Tour of Signal Processing, 2008, page 31.
[Reference] Charles K. Chui, An Introduction to Wavelets, page 57.
Property
Multiresolution analysis
34
| | | | | | | | | | | | | | | |
| | | | | | | | ||||||||
| | | | ||||||||||||
| | ||||||||||||||
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
Time
Frequency
Short-Time Fourier Transform
Frequency
Time
Wavelet Transform
How can we build better windows?
In signal processing :
Idea
Wavelet transform
35
The wavelet transform is defined as:
Wavelet complex function
Window + frequency component
Normalization
Wavelet position
Window size and frequency
Mathematical definition
Some wavelets functions
36
Haar
Morlet
Gaussian
Shannon
Meyer
Mexican Hat
Daubechies
Coiflet
CDF
Used in image processing
Used in JPEG 2000 image compression
Used for time-frequency analysis
Examples
A first mother wavelet: the Morlet wavelet
37
The Morlet mother wavelet is defined as:
Gaussian envelope (window)
Complex exponential kernel (frequency)
Mathematical definition
Wavelet scale parameter
38
Shrunken wavelets analyze high frequency
components with good time resolution, but
bad frequency resolution.
Expanded wavelets analyze low frequency components with bad time resolution, but
good frequency resolution.
Property
Wavelet transform on 1D signals
39
Time-frequency domain
1. Amplitude-modulated signal
Time domain
Frequency domain
Time-frequency domain
Frequency domain
2. Frequency-modulated signal
Time domain
Examples
Filtering with wavelet transforms
40
Time domain
Time-frequency domain
Frequency domain
Time-frequency domain
Frequency domain
Easily removable noise
Noise
mixed
with
signal
freqencies
1. Original audio signal of a famous song intro
Time domain
Noise mixed with signal
Example
Wavelet transform in 2D image processing
41
Rotation matrix
Wavelets can process images, e.g. remove noise (low-pass filter) or detect edges (high-pass filter)
Low-pass WT
High-pass WT
2D translation
Scale
Mathematical definition
Example
Wavelet transform in 2D image compression
42
Level 1
Level 2
Low-pass horizontal WT
High-pass horizontal WT
Low-pass vertical WT
High-pass vertical WT
Low-pass vertical WT
High-pass vertical WT
LL: approximate of the image
LH: vertical details
HL: horizontal details
HH: diagonal details
Multiresolution (or multi-level) representation of the image (more on this in session 9)
Compression can be achieved by a cascade of low-pass and high-pass wavelet-based filters
Both spatial dimensions divided by 2
Level 3
Note: LH, HL, and LF values are thresholded for visibility
LH
HL
HH
LL
Overview
Example
Table of content
ELEN0450 · Multimedia Systems | |
1 | Basics of multimedia |
2 | Graphics & image representation |
3 | Colorimetry & color spaces |
4 | Analog image & video |
5 | Camera model & digital sensors |
6 | Analog and digital displays |
7 | Acoustics, microphones & speakers |
8 | Audio digitization & compression |
9 | Digital image compression |
10 | Digital video compression |
11 | Transmission protocols |
12 | Internet distribution |
Sound as a wave
– Pressure, frequency, and pure tones
– Power and intensity
– Decibels, adding levels, and SNR
Analyzing frequencies
– Fourier series and transform
– STFT and the uncertainty principle
– Wavelet and multiresolution
Hearing and rooms
– The ear and its range
– Room acoustics
Capturing sound
– Phonograph to vinyl
– Condenser microphone
Reproducing sound
– Electrodynamic loudspeaker
Storing sound
– Optical sound on film
– Magnetic tape and cassette
The human ear
Definition
Outer ear funnels sound; middle ear bones amplify it; inner ear converts it to nerve signals.
The cochlea responds to different frequencies at different places along its length.
The hearing range
Property
Bridge: from ears to audio coding
Results
The ear's limits, its frequency analysis and its uneven sensitivity, are exactly what MP3 and AAC exploit (next lecture) through masking and filter banks.
Physics plus perception means we can delete the inaudible and no one notices.
Room acoustics
In practice, you hear the direct sound plus many reflections from walls, floor and ceiling.
Idea
No reverb
With reverb
Anechoic chamber
48
Definition
An anechoic chamber is a specialized room designed to completely stop reflections or echoes of sound or electromagnetic waves.
Table of content
ELEN0450 · Multimedia Systems | |
1 | Basics of multimedia |
2 | Graphics & image representation |
3 | Colorimetry & color spaces |
4 | Analog image & video |
5 | Camera model & digital sensors |
6 | Analog and digital displays |
7 | Acoustics, microphones & speakers |
8 | Audio digitization & compression |
9 | Digital image compression |
10 | Digital video compression |
11 | Transmission protocols |
12 | Internet distribution |
Sound as a wave
– Pressure, frequency, and pure tones
– Power and intensity
– Decibels, adding levels, and SNR
Analyzing frequencies
– Fourier series and transform
– STFT and the uncertainty principle
– Wavelet and multiresolution
Hearing and rooms
– The ear and its range
– Room acoustics
Capturing sound
– Phonograph to vinyl
– Condenser microphone
Reproducing sound
– Electrodynamic loudspeaker
Storing sound
– Optical sound on film
– Magnetic tape and cassette
Sound recording history: music sheets
50
Idea
Actual sound recording is only very recent in human history.
For a long time, music sheets were the only way to preserve music, by giving a set of instructions on how to play back the music on specific instrument, including notes, tempo, and intention.
1877: sound becomes a physical object
Edison's phonograph was the first device able to record and reproduce sound.
Recording is done onto a tinfoil sheet phonograph cylinder as a physical shape.
Based on the Phonautographe by Edouard-Leon Scott der Marrtinville.
Definition
The Edison’s Tinfoil Phonograph
52
From cylinders to discs
Note
Bell improved it with wax-coated cardboard cylinders and a side-to-side cutting stylus.
Berliner transformed the cylinder into the gramophone record: a flat disc with a spiral groove, played by a turntable with a tonearm and a stylus.
Ancestor of Vinyl records
Vinyl records
54
Idea
A negative of the sound wave is engraved in a hard material.
A soft material is pressed against it and then hardened.
The electrical era: the microphone
Definition
A microphone is an electroacoustic transducer: it converts acoustic vibrations into a varying voltage (electrical audio signal).
Once sound is a voltage it can be amplified, mixed, sent down a wire and recorded.
Principle of the microphone
56
Idea
The displacement of a diaphragm (a membrane or ribbon) in a sound pressure field results in the modification of an electrical variable of a circuit.
In each case, the modification of the electrical variable results in an output voltage, which we consider as an audio signal.
Condenser microphone
57
The principle of the condenser microphone is based on the modification of the capacitance of a condenser whose first electrode is in a fixed position and the second one (the membrane) is moved by the acoustic vibrations in the sound field.
Electrical output
Back plate
(perforated)
Electrical insulator
Diaphragm (membrane)
Protection grid
Principle
Condenser microphone circuit
58
Idea
Plate distance at rest
Constants
Membrane displacement
Microphone sensitivity
59
Example
Mathematical definition
Frequency response
60
Definition
The frequency response is the sensitivity of the microphone expressed as a function of the frequency.
Microphone directivity
61
Definition
The directivity (diagram): is expressed by the variation of the sensitivity as a function of the angle of incidence of the sound wave on the membrane.
Table of content
ELEN0450 · Multimedia Systems | |
1 | Basics of multimedia |
2 | Graphics & image representation |
3 | Colorimetry & color spaces |
4 | Analog image & video |
5 | Camera model & digital sensors |
6 | Analog and digital displays |
7 | Acoustics, microphones & speakers |
8 | Audio digitization & compression |
9 | Digital image compression |
10 | Digital video compression |
11 | Transmission protocols |
12 | Internet distribution |
Sound as a wave
– Pressure, frequency, and pure tones
– Power and intensity
– Decibels, adding levels, and SNR
Analyzing frequencies
– Fourier series and transform
– STFT and the uncertainty principle
– Wavelet and multiresolution
Hearing and rooms
– The ear and its range
– Room acoustics
Capturing sound
– Phonograph to vinyl
– Condenser microphone
Reproducing sound
– Electrodynamic loudspeaker
Storing sound
– Optical sound on film
– Magnetic tape and cassette
Electrodynamic loudspeakers
63
Loudspeakers are electroacoustic transducers that transform electrical audio signals into acoustic waves.
Definition
Circuit of the electrodynamical loudspeaker
64
Idea
An electrodynamical loudspeaker is composed of the following elements:
Frequency response of the loudspeaker
65
Frequency response: sound pressure level (SPL) in free field as a function of the frequency of the (constant amplitude) input audio signal.
The SPL is generally measured at 1 m distance from the membrane, in the axial direction (perpendicular to the diaphragm, passing through its center).
Constant signal amplitude at 10% of the nominal power
Definition
Directivity coefficient of the loudspeaker
66
Measured at the same distance
Definition
Vented-box loudspeakers
67
Idea
Table of content
ELEN0450 · Multimedia Systems | |
1 | Basics of multimedia |
2 | Graphics & image representation |
3 | Colorimetry & color spaces |
4 | Analog image & video |
5 | Camera model & digital sensors |
6 | Analog and digital displays |
7 | Acoustics, microphones & speakers |
8 | Audio digitization & compression |
9 | Digital image compression |
10 | Digital video compression |
11 | Transmission protocols |
12 | Internet distribution |
Sound as a wave
– Pressure, frequency, and pure tones
– Power and intensity
– Decibels, adding levels, and SNR
Analyzing frequencies
– Fourier series and transform
– STFT and the uncertainty principle
– Wavelet and multiresolution
Hearing and rooms
– The ear and its range
– Room acoustics
Capturing sound
– Phonograph to vinyl
– Condenser microphone
Reproducing sound
– Electrodynamic loudspeaker
Storing sound
– Optical sound on film
– Magnetic tape and cassette
Magnetic tapes and audio casettes
69
Idea
Tape: plastic ribbon coated with magnetic particles, each a tiny permanent magnet.
Recording: the audio current in a coil creates a field at the head's gap, magnetizing the particles as the tape slides past.
Playback: the moving magnetized tape induces a voltage back in the head coil.
Erasing: a strong high-frequency field randomizes the particles.
Compact cassette: 3.81 mm tape at 4.76 cm/s, four music tracks, two per side.
Magnetic tape recording
Optical analog and digital sound on film
70
SDDS (corresponding tracks are found on the opposite edge of the film).
Dolby Digital
Analog soundtracks (Dolby Stereo).
DTS soundtracks (timecode for CD-ROM) on 35 mm film
Summary
71
Summary
Next time and further reading
72
• Session 6: Digital audio and audio compression (Ch.6, 13, 14)
• Questions?
Audio: where each stage lands
Stage | Analog | Digital |
Transduction | Microphone, continuous voltage | Microphone, preamplifier, ADC |
Representation | 1D voltage waveform | PCM samples, 44.1 or 48 kHz, 16 or 24 bit |
Digitisation | Transducer and medium set the bandwidth | Anti-alias filter, Nyquist rate, dither |
Coding | Pre-emphasis (RIAA), companding (Dolby NR) | MP3, AAC |
Storage media | Vinyl groove, magnetic tape, compact cassette | CD-DA, flash, HDD, cloud |
Transmission | AM and FM radio, telephone line | DAB+, IP audio, WebRTC |
Distribution | Broadcast schedule, record retail | On demand streaming, adaptive bitrate, podcast feeds |
Rendering | Amplifier, loudspeaker, headphones | DAC, amplifier, stereo to Ambisonics or binaural |
Perception | Human hearing system | |
Overview
73
Table of content
ELEN0450 · Multimedia Systems | |
1 | Basics of multimedia |
2 | Graphics & image representation |
3 | Colorimetry & color spaces |
4 | Analog image & video |
5 | Camera model & digital sensors |
6 | Analog and digital displays |
7 | Acoustics, microphones & speakers |
8 | Audio digitization & compression |
9 | Digital image compression |
10 | Digital video compression |
11 | Transmission protocols |
12 | Internet distribution |
Sound as a wave
– Pressure, frequency, and pure tones
– Power and intensity
– Decibels, adding levels, and SNR
Analyzing frequencies
– Fourier series and transform
– STFT and the uncertainty principle
– Wavelet and multiresolution
Hearing and rooms
– The ear and its range
– Room acoustics
Capturing sound
– Phonograph to vinyl
– Condenser microphone
Reproducing sound
– Electrodynamic loudspeaker
Storing sound
– Optical sound on film
– Magnetic tape and cassette
Extra slides
75
Musical instruments
76
Idea
Musical instruments playing a single note are not just pure tones.
Harmonics and noise are what differentiate instruments.
The envelope (sound amplitude) of the sound is bounded and usually follow an ADSR curve.
Example of Fourier series
77
Example
Frequency analysis of 1D and 2D signals
78
horizontal frequencies
vertical frequencies
Time (seconds)
Example
Properties of wavelet functions
79
1. Admissibility condition
Objective: get a stably invertible transform
2. Finite energy condition
Objective: ensure that the wavelet is localized in time
[Reference] Stéphane Mallat, A Wavelet Tour of Signal Processing, 2008, pages 72 and 75
Properties
Inverse wavelet transform
80
The inverse wavelet transform is defined as:
Similarly to the inverse Fourier transform, the inverse wavelet transform allows to reconstruct the signal.
Admissibility condition
Dual wavelet
Mathematical definition
Take-home messages
81
Time-frequency analysis
The Fourier transform lacks explicit temporal localization of the frequencies.
Time-frequency diagrams show when frequencies happen in time.
Time-frequency diagram
Time
Frequency
| | | | | | | | | | | | | | | |
| | | | | | | | ||||||||
| | | | ||||||||||||
| | ||||||||||||||
Time
Frequency
The wavelet transform
Multiresolution analysis of the signal
Can be used on 1D or 2D signal for:
Summary
Equal-loudness contours
Sensitivity depends on frequency: bass and treble need more level to seem as loud.
Curves of equal perceived loudness map this and are flattest at 2 to 5 kHz.
The phon is a logarithmic unit of loudness level for tones and complex sounds.
Property
The Doppler effect
A moving source compresses the waves ahead of it and stretches those behind.
So the pitch is higher as it approaches and lower once it has passed.
Property
Frequency response band
84
Definition
Sound printed on the film
An optical soundtrack is a strip whose width or density varies with the waveform.
Because it is on the same strip, sound and picture can never drift apart.
Reminder
How sound is printed on film
86
Printing sound on film
Principle
How sound is read on film
87
Playback the film
Principle