Lecture6 - File Size and Quality2
Lecture6 - File Size and Quality2
Sampling rate
Number of sample taken of a signal in a given time (usually one second)
Bit depth
Describes the resolution of the audio data
Channels
E.g. Stereo has two channels
Duration
Measured per second
Sampling rate
20
The more sample taken per second, the higher the accuracy.
Typically measured in kilohertz (KHz).
CD audio has 44,100 samples per second (44.1KHz).
8 KHz produces lower quality radio sound.
• Stereo sound systems have two independent audio channels, and the
signals are reproduced by two channels separated by some distance.
• The two sound channels give the illusion that the sound is coming from a
certain location.
• However, going to mono will reduce the file size by half. Sometimes
a well- designed mono system is better than a low quality stereo system.
The difference between mono and stereo?
Duration
25
Higher sampling rate, higher resolution gives higher quality but bigger file
size.
For example, if we record 10 seconds of stereo music with sampling rate
44.1kHz, 16 bits, the size will be:
S = 44100 (16/8) 2 10
= 1,764,000 bytes
= 1722.7 Kbytes
= 1.68 Mbytes
High quality sound files are very big, however, the file size can be reduced by
compression.
Introduction to Multimedia
28
Exercises
Introduction to Multimedia
Introduction to Multimedia 32
Introduction to Multimedia
MIDI Hardware
36
Introduction to Multimedia
MIDI Hardware
37
Introduction to Multimedia
Multi-port MIDI Interface (2 in/out pairs)
OUT IN
A B A B
Lights!
USB port
Thru switch – connects In to Out,
for use without a computer
Leave in ‘out’ position!
39 Introduction to Multimedia
Multi-port MIDI Interface (8 in/out pairs)
Front
MIDI Outputs MIDI Inputs
Back
USB port
40 Introduction to Multimedia
41
Introduction to Multimedia
MIDI Data
42
(0.125)
Octave
Introduction to Multimedia
Octave
44
For example, any two sounds whose frequencies make a 2:1 ratio are
said to be separated by an octave and result in a particularly
pleasing sound when heard.
Similarly two sounds with a frequency ratio of 5:4 are said to be
separated by an interval of a third; such sound waves also sound
good when played together.
Interval Frequency Ratio Examples
Octave 2:1 512 Hz and 256 Hz
Third 5:4 320 Hz and 256 Hz
Fourth 4:3 342 Hz and 256 Hz
Fifth 3:2 384 Hz and 256 Hz
Introduction to Multimedia
MIDI File
46
Introduction to Multimedia
You have 30 seconds audio file sampled at a rate
of 44.1 KHz and quantized using 8 bits ; calculate
the bit rate and the size of mono and stereo
versions of this file