CH # 4 Audio
CH # 4 Audio
(Audio)
Audio vs Sound
• Audio is a more technical term, referring to
sound coming from a recording, transmission
or electronic device.
– a preceptor (brain).
The Power of Sound
Quiet Loud
pitch distance
along wave
Cycle
Analogue to Digital Audio
Analogue audio
• The name for an electronic signal that carries its information of sound as
continuous fluctuating voltage value.
Digitizing
• the process of converting an analog signal to a digital one.
Signal is
converted into
binary
Analogue (discrete form)
to Digital ADC 0101001101 Air pressure
Converter 0110101111 variations
The Power of Sound
• Audio in Macintosh and Windows
– Both Macintosh and Windows PC platform, have
the default system sounds
– MACINTOSH Chu Toy, Glass, indigo, Laugh,
Simple Beep
– WINDOWS PC ding.wav, chimes.wav,
logoff.wav,start.wav
waveform
8 3.6
11.025 5
22.05 10
32 14.5
44 20
48 21.8
64 29.1
88.2 40
96 43.6
• Because of the Nyquist theorem, we know
that the maximum frequency that can be
represented at any given sampling rate is half
the sampling rate; thus a 44.1 kHz CD can
capture tones up to 22.05 kHz
Size sample
The resolution of a sample is the number of
bits it uses to store a given amplitude value,
e.g.
8 bits (256 different values)
16 bits (65536 different values)
A higher resolution will give higher quality but will
require more memory (or disk storage)
Sampling Rate VS Sampling Size
http://www.sonicfoundry.com/
PROSONIQ SonicWORX
Samplitude Studio
Midi Audio
• Musical Instrument Digital Interface
– Before there was a wide use of mp3 and high
bandwidth network, MIDI format audio is popular when
an audio is required to be put on a website.
• AUDIO DIGITAL
– WINDOWS *.WAV
– MACINTOSH *.AIFF
– UNIX *.AU
– REALAUDIO *.RA
– MPEG3 *.MP3
MIDI versus Digital Audio
• Advantages of MIDI over digital audio:
– MIDI files smaller that digital audio files.
– Because small file, MIDI files embedded in web
pages load and play more quickly.
– If MIDI sound source are high quality – sound
better.
– Can change the length of MIDI files without
changing the pitch of the music or degrading the
audio quality.
MIDI versus Digital Audio
• Disadvantages of MIDI over digital audio:
– Because MIDI data does not represent the sound
but musical instruments, playback will be accurate
only if the MIDI playback (instrument) is identical
to the device used in the production.
• Disadvantages
– Easily overused.
– Requires special equipment for quality
production.
– Not as memorable as visual media.
MP3 Format
MP3 is a standard format for music files sent
over the Internet.
MP3s:
– Use one of three MPEG standards for audio
compression
– Can compress an audio file to about one-twelfth
of the space it occupies on a CD with no significant
loss of sound quality
WAV Format
WAV is a standard for sound files on Windows
and Macintosh PCs.
WAVs:
– Do not compress audio as much as MP3s
– Are generally used for sound effects and other
small files
Sound Quality & File Sizes
• Stereophonic (stereo) sound refers to any method of
sound reproduction in which an attempt is made to
create an illusion of directionality and audible
perspective.
– This is usually achieved by using two or more
independent audio channels through a configuration
of two or more loudspeakers in such a way as to
create the impression of sound heard from various
directions, as in natural hearing.
– Thus the term "stereophonic" applies to so-called "
quadraphonic" and "surround-sound" systems as well
as the more common 2-channel, 2-speaker systems.
Sound Quality & File Sizes
• It is often contrasted with monophonic, or
"mono" sound, where audio is in the form of
one channel
– often centered in the sound field (analogous to a
visual field).
• Stereo sound is now common in
entertainment systems such as broadcast
radio and TV, recorded music and the cinema.
Digital Audio File size
The formulas for determining the size (in bytes) of a
digital recording.
44100 * 10 * 16 / 8 * 2
= 1,764,000 bytes.
Compressed File Formats
• There are both compressed and
uncompressed audio file formats
• Compression can be either
– Lossless = The quality of uncompressed audio
equals the quality of original audio file
– Lossy = The quality of uncompressed audio is
lower than the original (e.g. mp3, wma)
• For compression/uncompression matching
algorighm pairs (codecs) are used
Lossy audio compression
• In the context of audio, that means sacrificing
quality and fidelity for file size. The good news
is that, in most cases,
you won’t be able to hear the difference.
Codecs
• a device or program that compresses data to
enable faster transmission and decompresses
received data.
• An audio codec is a device or computer program
capable of coding or decoding a digital data stream
of audio.
• There must be one algorithm for compressing and
one for de-compressing (e.g. before playback)
• Many codecs have to be installed as plugins for
player/editing applications
• There are many dedicated sites for downloading
codecs
Compressed /uncompressed Audio Formats
• Uncompressed audio formats, such as WAV, AIFF, AU or raw
header-less PCM;