Chapter 5 Fundamentals of Audio
Chapter 5 Fundamentals of Audio
Chapter 5 Fundamentals of Audio
Introduction to sound.
Digital audio.
MIDI audio.
sound.
Sound waves vary in sound pressure level (amplitude) and in
frequency or pitch.
Sound pressure levels measured in decibels (dB).
the sound.
position.
Loud sounds have a large amplitude. (The louder the sound, the
Quiet Loud
Analog sound
Sound itself is a continuous wave; it is an analog signal
.
It is the true representation of the sound at the moment
it was recorded.
what the microphone receives is exactly what's written
Digital sound
It is not a recording of the actual sound, but rather a
itself.
seconds.
Many times each second, the analog signal is sampled. How
into pieces.
8-bit quantization divides the vertical axis into 256 levels (.
If the scale used for the vertical axis is linear we say its linear
quantization.
If its logarithmic then we call it non-linear.
IT 516 (Multimedia Systems) Compiled by Asefa M. (MSc.)
14
Analog to Digital . . . (Cont’d)
Analog Digital
Signal Continuous signal which Discrete time signals
represents physical generated by digital
measurements. modulation.
Waves Denoted by sine waves Denoted by square waves
Information Uses continuous range of Uses discrete or
Representation values discontinuous values
Example Human voice in air, analog Computers, CDs, DVDs,
electronic devices. and other digital electronic
devices.
Response to More likely to get affected Less affected since noise response
Noise reducing accuracy are analog in nature
Flexibility Analog hardware is not Digital hardware is flexible in
flexible. implementation.
17 IT 516 (Multimedia Systems) Compiled by Asefa M. (MSc.)
Analog vs. Digital . . . (Cont’d)
Analog Digital
Uses Can be used in analog Best suited for Computing and
devices only. Best suited for digital electronics.
audio and video
transmission.
Bandwidth Analog signal processing There is no guarantee that digital
can be done in real time and signal processing can be done in
consumes less bandwidth. real time and consumes more
bandwidth to carry out the same
information.
Memory Stored in the form of wave Stored in the form of binary bit
signal
Someone sampled audio for 10 seconds. How much storage space is required
if
22.05 KHz sampling rate is used, and 8 bit resolution with mono
(Ans. 441KB )
44.1 KHz sampling rate is used, 16 bit resolution with stereo recording?
(Ans. 1764KB )
11.025 KHz sampling rate, 16 bit resolution with stereo recording?
(Ans. 441KB )
sequencer.
MIDI OUT of sequencer is connected to MIDI IN of
computer.
It can be a storage server for MIDI data.
and edited the sound at 16 bit sampling rate and using lower
rates then RS & DS is necessary, as we may save lots of disk
space.
Fade in & Fade out: useful for sections that requires this
system.
This data can be stored uncompressed, or compressed to reduce
.MID
Have very good sound quality, but this can vary somewhat
WAV
plugin.
You can record your own .wav files from a CD, tape,
microphone, etc.
The very large file sizes severely limit the length of the
.AIF
.MP2/.MP3/.Mp4
.RA/.RAM/.RPM (Cont’d)
The sound quality is poorer than .mp2/ .mp3 files, but the new
G2 standard.
However, browser manufacturers are beginning to include a
downloads.
clc
[y, Fs] = audioread('HBD2.mp3');
player = audioplayer(y, Fs)
play(player);
pause(player);
resume(player);
stop(player);