Ch1 Introduction Part2
Ch1 Introduction Part2
Okuku 1
Multi- means many; much; multiple
Medium means:
•An intervening substance through which
something is transmitted or carried on
•A means of mass communication such as
newspaper, magazine, or television
B. Okuku 3
Application domain — provides
functions to the user to develop and
present multimedia projects. This
includes Software tools, and
multimedia projects development
methodology.
B. Okuku 8
Nyquist sampling theorem tells us that, in order to
reconstruct the signal, the sampling rate must not be less
than twice the maximum frequency of the original signal.
For example, if the maximum frequency is 3000Hz, the
sampling rate must not be less than 6000Hz.
If we undersample, i.e., taking less samples than as
required by Nyquist sampling theorem, some of the
frequency components will be mistakenly converted into
other frequencies. This is known asaliasing.
B. Okuku 9
On the other hand, if we use too few levels to represent each
sample value, there will be large amount of error for each
sample.
This is known as quantisaton error. These errors can be
thought of as noise on the signal.
We measure the quality of a sample by its signal-to-noise
ratio (SNR). The higher the resolution, the smaller the noise,
and the better the quality. The unit of SNR is dB (deci Bel).
This is defined by
B. Okuku 10
B. Okuku 11
Sound is a physical phenomenon produced by the
vibration of matter and transmitted as waves.
However, the perception of sound by human
beings is a very complex process. It involves three
systems:
•the source which emits sound;
•the medium through which the sound
propagates;
•the detector which receives and interprets the
sound.
B. Okuku 12
Sounds we heard everyday are very complex.
Every sound is comprised of waves of many
different frequencies and shapes. But the simplest
sound we can hear is a sine wave.
Sound waves can be characterised by the following
attributes:
B. Okuku 13
Period is the interval at which a
periodic signal repeats regularly.
Pitch is a perception of sound by
human beings It measures how
‘high’ is the sound as it is
perceived by a listener.
Frequency measures a physical
property of a wave. It is the
reciprocal value of period
B. Okuku 16
B. Okuku 17
•Dynamic range means the change in sound levels.
For example, a large orchestra can reach 130dB at
its climax and drop to as low as 30dB at its softest,
giving a range of 100dB.
•Bandwidth is the range of frequencies a device can
produce or a human can hear.
B. Okuku 18
•Sound waves are continuous while computers are
good at handling discrete numbers.
•In order to store a sound wave in a computer,
samples of the wave are taken.
•Each sample is represented by a number, the
‘code’.
•This process is known as digitisation.
•This method of digitising sound is know as pulse
code modulation (PCM).
Refer to Unit 1 for more information on digitisation.
B. Okuku 19
•According to Nyquist sampling theorem, in order to
capture all audible frequency components of a
sound, i.e., up to 20KHZ, we need to set the
sampling to at least twice of this. This is why one of
the most popular sampling rate for high quality
sound is 4410HZ.
•Another aspect we need to consider is the
resolution, i.e., the number of bits used to represent
a sample.
Often, 16 bits are used for each sample in high
quality sound. This gives the SNR of 96dB.
B. Okuku 20
The size of a digital recording depends
on the sampling rate, resolution and
number of channels.
High quality sound files are very big, however, the file size can be reduced
by compression.
B. Okuku 21
B. Okuku 22
•The most commonly used digital sound format in
Windows systems is
.wav files.
•Sound is stored in .wav as digital samples known as
Pulse Code Modulation(PCM).
•Each .wav file has a header containing information
of the file.
•type of format, e.g., PCM or other modulations
•size of the data
•number of channels
•samples per second
•bytes per sample
•There is usually no compression
B. Okuku in .wav files. 23
Other format may use different compression
technique to reduce file size.
• .vox use Adaptive Delta Pulse Code Modulation
(ADPCM).
• .mp3 MPEG-1 layer 3 audio.
• RealAudio file is a proprietary format.
B. Okuku 24
B. Okuku 25
•Recording and Digitising sound:
•An analog-to-digital converter(ADC)
converts the analog sound signal into digital
samples.
•A digital signal processor(DSP) processes the
sample, e.g. filtering, modulation, compression,
and so on.
•Play back sound:
•A digital signal processor processes the sample,
e.g. decompression, demodulation, and so on
•An digital-to-analog converter(DAC) converts the
digital samples into sound signal
•All these hardware devices are integrated into a
B. Okuku 26
few chips on a sound card
•Different sound card have different
capability of processing digital sounds.
When buying a sound card, you should look at:
•maximum sampling rate
•stereo or mono
•duplex or simplex
B. Okuku 27
•Windows device driver — controls the
hardware device.
Many popular sound cards are Plus and Play.
Windows has drivers for them and can
recognise them automatically. For cards that
Windows does not have drivers, you need to get
the driver from the manufacturer and install it
with the card.
•If you do not hear sound, you should check the
settings, such as interrupt, DMA channels, and
so on.
•Device manager — the user interface to the
hardware for configuring the devices.
•You can choose which audio device you
want to use
•You can set the audio volume
B. Okuku 28
Mixer — its functions are:
•to combine sound from different sources
•to adjust the play back volume of sound sources
•to adjust the recording volume of sound sources
B. Okuku 29