0% found this document useful (0 votes)
82 views55 pages

CH # 4 Audio

This document discusses multimedia systems and design, specifically focusing on audio. It provides information on: 1. The differences between audio and sound, and defines key audio terminology like frequency, amplitude, waveforms, sampling, and analog vs. digital audio. 2. The process of how sound is produced, transmitted through a medium, received by the ear and brain, and how it is measured. 3. Formats for digital audio like MIDI, WAV, AIFF, etc. and considerations for digital audio quality like sampling rate and size. 4. When MIDI may be preferable to digital audio formats, such as for low bandwidth delivery or editable musical compositions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
82 views55 pages

CH # 4 Audio

This document discusses multimedia systems and design, specifically focusing on audio. It provides information on: 1. The differences between audio and sound, and defines key audio terminology like frequency, amplitude, waveforms, sampling, and analog vs. digital audio. 2. The process of how sound is produced, transmitted through a medium, received by the ear and brain, and how it is measured. 3. Formats for digital audio like MIDI, WAV, AIFF, etc. and considerations for digital audio quality like sampling rate and size. 4. When MIDI may be preferable to digital audio formats, such as for low bandwidth delivery or editable musical compositions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 55

Multimedia System and Design

(Audio)
Audio vs Sound
• Audio is a more technical term, referring to
sound coming from a recording, transmission
or electronic device.

• Sound is a more generic word and can be


caused by any source.
What is SOUND?
• Sound comprises the spoken word, voices, music and even
noise.
• It is a complex relationship involving:
– a vibrating object (sound source)

– a transmission medium (usually air)

– a receiver (ear) and;

– a preceptor (brain).
The Power of Sound

Something vibrates Waves of pressure Ear drums will translate


in the air these changes in wave
Forms as sound

• Sound is measured in  dB (decibel)


• Sound waves are known as waveforms.
Waveforms
Sound waves are known as waveforms
 A waveform that repeats itself at regular
intervals is called a periodic waveform

 Waveforms that do not exhibit regularity are


called noise
Sound

• A pleasant sound has a regular wave pattern. The pattern is


repeated over and over.

 But the waves of noise are irregular. They do not have a


repeated pattern.
Characteristic of Sound Waves
• Sound is described in terms of two characteristics:
– Frequency (or pitch)
– Amplitude (or loudness)
Frequency
• Frequency is a measure of how many vibrations occur
in one second. This is measured in Hertz (abbreviation
Hz) and directly corresponds to the pitch of a sound.
– The more frequent vibration occurs the higher the pitch of
the sound.

Low pitch High pitch

 Optimally, people can hear from 20 Hz to 20,000 Hz (20 kHz)


 Sounds below 20 Hz are infrasonic
 sounds above 20 kHz are ultrasonic.
Amplitude
• Amplitude is the maximum displacement of a wave from an
equilibrium position.
– The louder a sound, the more energy it has. This means loud sounds have a
large amplitude.

Quiet Loud

Low amplitude High Amplitude

 The amplitude relates to how loud a sound is.


 Amplitude
 Sound’s intensity or loudness
 The louder the sound, the larger amplitude.
The characteristics of sound waves

Amplitude Time for one cycle

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.

• Recording audio in a format of continuous vibrations that are


analogous to the original sound waves.

• Analog refers to audio recorded using methods that replicate the


original sound waves.

Digitizing
• the process of converting an analog signal to a digital one.

• A sound is recorded by making a measurement of the amplitude of the


sound at regular intervals which are defined by the "sample rate".
• The act of taking the measurement is often called "sampling" and each
measurement is called a "sample point".
Capture and playback
of digital audio
Air pressure
variations Digital to
Analogue
Converter
Converts
back into
voltage DAC
Captured via
microphone

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

• Basic Recording Software


– Both MACINTOSH and WINDOWS have basic recording
software
Digital Audio
• Digital audio data is the representation of sound, stored in
the form of samples point.
• Quality of digital recording depends on the sampling rate,
that is, the number of samples point taken per second
(Hz).

High Sampling Rate Samples stored in digital


form

waveform

Low Sampling Rate


Digital Audio
• The three sampling frequencies most often used in
multimedia are 44.1 kHz, 22.05 kHz and 11.025 kHz.
– The higher the sampling rate, the more the
measurements are taken (better quality).
– The lower the sampling rate, the lesser the
measurements are taken (low quality).

High Sampling Rate Low Sampling Rate


• Quality factors for digital audio file :
1. Sampling Rate
2. Sample Size (resolution)
• the number of bits used to record the
value of a sample in a digitized signal.
 Sampling Rate
 Frequency of sampling
 Measure in Hertz
 The higher sampling rate, higher quality sound but
size storage is big.
 Standard Sampling rate:
- 44.1 KHz for CD Audio
- 22.05 KHz
- 11.025 KHz for spoken
- 5.1025 KHz for audio effect
Sample Maximum
Rate (kHz) Frequency (kHz)

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

• Sampling Rate refers to frequency, while


sampling size refers to the amount.

• Sampling Rate is measured in Hertz (number of


times per second a sample is taken), and
Sampling Size is measured in Bits.

• Thus, if you Sample at 10 Hz/8 bits, that means


you take 8 bits of information, 10 times per
second.
Digital Audio
• Other than that, it also depends on:
– The quality of original audio source.
– The quality of capture device & supporting
hardware.
– The characteristics used for capture.
– The capability of the playback environment.
Digital Audio
• More advanced Digital audio editing software:
– One of the most powerful and professional PC-based
packages is a tool called Sound Forge

http://www.sonicfoundry.com/

 Others audio editing software:


 COOL Edit Pro
 Gold Wave

 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.

– Provides a standardized and efficient means of


conveying musical performance information as
electronic data.

– Is a easiest and quickest way to compose our own score.


• (provided we have knowledge of musical instrument and
composing)
– It is in the form of music score and not samples or
recording.
• MIDI files are very compact and very good for
low-bandwidth delivery.

• Instruments are “piano, drums, bass,


orchestral strings, …”

• It is very attractive for adding MIDI file to your


website with very little download time.
Midi Audio Facts
• Since they are small, MIDI files embedded in web
pages load and play.
• Length of a MIDI file can be changed without
affecting the pitch of the music or degrading audio
quality.
• Working with MIDI requires knowledge of music
theory.
Recording MIDI Files
Recording MIDI Files
• MIDI files can be generated:
– by recording the MIDI data from a MIDI
instrument (electronic keyboard) as it is played.
– by using a MIDI sequencer software application.
Audio File Formats
• MIDI
– *.MID, *.KAR, *.MIDI, *.SMF

• 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.

– Higher cost and requires skill to edit.

– Cannot emulate voice, other effects.


When to Use MIDI ?

A. Digital audio wont work when there isn’t enough memory or


bandwidth.

B. When there is high quality MIDI sound source.

C. When we have complete control over the machine on which the


program is going to be delivered.

D. We don’t need spoken dialog.


Factors considered before adding Sound
to MM Project
1. File formats compatible with multimedia authoring
software being used along with delivery mediums, must
be determined.
2. Sound playback capabilities offered by end user’s system
must be studied.
3. The type of sound, whether background music, special
sound effects, or spoken dialog, must be decided.
4. Digital audio or MIDI data should be selected on the
basis of the location and time of use.
Advantages & Disadvantages of Using Audio

• Sound adds life to any multimedia application and


plays important role in effective marketing
presentations.
• Advantages
– Ensure important information is noticed.
– Add interest.
– Can communicate more directly than other
media.
Advantages & Disadvantages of Using Audio

• 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.

For a monophonic recording:


 sampling rate * duration of recording in seconds *
(bit resolution / 8) * 1

For a stereo recording:


 sampling rate * duration of recording in seconds *
(bit resolution / 8) * 2
Digital Audio File size
• Resolution is measured in bits per sample.
Since there are 8 bits in a byte, you have to
divide the bit resolution by 8.)
• Q: what will be file size for a 10-second mono
recording at 22.05 kHz, 8-bit resolution?
22050 * 10 * 8 / 8 * 1
= 220,500 bytes
• What will be file size of 10-second stereo
recording at 44.1 kHz,16-bit resolution ?

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;

• Formats with lossless compression, such as FLAC,


Monkey's Audio (filename extension .ape), WavPack (
filename extension .wv), TTA, ATRAC Advanced Lossless,
ALAC (filename extension .m4a), MPEG-4 SLS, MPEG-4 ALS,
MPEG-4 DST,
Windows Media Audio Lossless (WMA Lossless), and
Shorten (SHN).

• Formats with lossy compression, such as Opus, MP3, Vorbis,


Musepack, AAC, ATRAC and Windows Media Audio Lossy
(WMA lossy).
Wave/WAV
• WAV stands for Waveform Audio File Format.
• It’s a standard that was developed by
Microsoft and IBM back in 1991.
• The uncompressed audio format developed by
Microsoft
• Wav files can be either mono or stereo files
and of different sample rates and resolutions
• Many platforms support wav files
UNIX/NeXT audio (.au)
• ”Original” format of networked audio
• Many early versions of browsers and
programming languages (e.g. Java) support au-
files
• Au was originally developed by Sun
AIFF
• Audio Interchange File Format and is
uncompressed

• Originally the sound format of Amiga & Apple


computers

• AIFF file consists of so-called chunks in which


the qualities of audio + the actual audio data
are stored
MPEG (mp3)
• Nowadays very popular compressed audio
format. It is lossy format.
• Mp3 is one of the subcategories of MPEG
standard
• Mpeg 1 Layer 3 (mp3) was originally targeted
for transmitting speech over networks
• Several settings can be adjusted when
packaging audio into mp3 format
RealAudio
• .ra/.rm files
• The first audio format to use streaming
technology
• The sound file can be listened while it is been
streamed into the harddrive (The complete file
doesn’t need to be loaded)
• Many internet radio stations use RealAudio as
the broadcasting format
Other Audio Formats
• Besides the afore mentioned there are
may audio formats for different uses:
– WMA
– Ogg
– Monkey’s Audio (.ape)
– FLAC
• In addition the audio editors produce files
which include project information + actual
audio data
Summary
• There are two main types of digital audio
– Sampled audio
• Captured by sampling an analogue waveform at
a set rate
– MIDI data
• Instructions on how to perform some musical
composition
• Sampled audio requires more storage space than
MIDI information

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy