Chapter4 Sound
Chapter4 Sound
Chapter4 Sound
SOUND
1
Outline
Introduction to sound
Digital audio
MIDI audio
Digital audio vs MIDI audio
Multimedia System Sound
Audio file formats
2
What is SOUND?
3
The Power of Sound
• When an object vibrates it sets
the particles of the medium
around it vibrating.
• When something vibrates in the
air by moving back and forth
(such as the cone of a
loudspeaker), it creates waves of
pressure.
• When a vibrating object moves
forward, it pushes and
compresses the air in front of it
creating a region of high
pressure called compression.
waveform
https://www.youtube.com/watch?v=JVhYuqr03IQ
5
Sound Waves
Each sound wave has a unique waveform pattern.
A pleasant sound has a regular wave pattern. The
pattern is repeated over and over.
6
Sound Waves Properties
Wavelength:
distance between waves
Amplitude:
strength/height of waves
(volume)
Frequency: is a measure
of how many vibrations
occur in one second
7
Characteristic of Sound Waves
8
Frequency
Frequency is a measure of how many vibrations occur in one
second.
Frequency 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.
9
Amplitude
Amplitude is the strength/height of waves (volume).
The louder a sound, the more energy it has. This means loud sounds
have a large amplitude.
Quiet Loud
11
Digital Audio
To get audio into a computer, we have to digitize the
waveform (convert it into a series of bits).
101010111100000
Need to convert from Analog-to-Digital.
Digitization
An analog signal continually A digital signal is a series of
fluctuates in voltage up and numbers, with discrete
down (waveform) amplitudes
12
Sampling
Divide the horizontal axis (the x dimension) into
discrete pieces.
Decide on sample rate - number of samples point
taken per second (Hz).
13
Sampling
• Consider this waveform.
14
Digital Audio
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).
Waveform
15
Digital Audio
The three sampling frequencies most often used in multimedia
are
44.1 kHz
22.05 kHz
11.025 kHz.
16
Quantization
Divide the vertical axis (signal strength) into pieces.
The value of each sample is rounded off to the nearest integer.
17
Quantization and Clipping
Quantization
Produce an unwanted background hissing noise.
https://dspillustrations.com/pages/posts/misc/how-does-quantization-
noise-sound.html
18
Making Digital Audio Files
Quality factors for digital audio file :
1. Sampling Rate
How often the samples are taken (measured in kilohertz).
2. Quantization (Resolution)
The number of bits used to represent the value of a sample in a digitized signal.
Using more bits for the sample size yields a recording that sounds more like its original.
19
Digital Audio
Other than that, it also depends on:
The quality of original audio source.
20
Making Digital Audio Files
Basic Recording Software
• Multimedia sound is either
- Digitally recorded audio
- MIDI (Musical Instrumental Digital Interface) music.
21
Sound Editing Applications
This basic sound editing application could:
Trimming - Removing dead air or blank space from the front of a
recording and an unnecessary extra time off the end is your first
sound editing task.
Splicing and Assembly - remove the extraneous noises that
inevitably creep into recording.
Volume Adjustments
Format Conversion - in some cases your digital audio editing
software might read a format different from that read by your
presentation or authoring program.
Resampling or Down sampling – If we have sound recorded and
edited at 16-bit sampling rate and using lower rates then RS and
DS is necessary, to save disk space.
Fade-Ins and Fade-Outs- Help to smooth out a beginning and end
of the sound file.
Equalization- Modify a recording’s frequency so that it sounds
brighter or darker.
Time stretching – Alter the length (in time) of a sound file without
changing its pitch.
22
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
23
Midi Audio
Musical Instrument Digital Interface (MIDI)
.
MIDI (Musical Instrument Digital Interface) is a communications standard
developed in the early 1980s for electronic musical instruments and
computers.
24
Midi Audio
MIDI provides a protocol for passing detailed descriptions of a musical score,
such as the notes, the sequences of notes, and the instrument that will play
these notes.
MIDI score
Musical score
The length of MIDI files can be change without changing the pitch of the
music or degrading the audio quality.
When sent to a MIDI playback device (e.g. synthesizer), this results in sound.
25
To make MIDI scores, you will need:-
26
To make MIDI scores, you will need:-
3) Sound Synthesizer
https://www.youtube.com/watch?v=b0UyXpi40TM
Synthesizer
27
Midi Keyboard
MIDI keyboard is used to simplify the creation of music scores
(MIDI information)
28
Midi Audio
An advantage of structured data such as MIDI is the ease with which you can edit the
data.
Example:
Let’s say you have a piece of music being played on a piano, but your client
decides he wants the sound of a saxophone instead. If you had the music in
digitized audio, you would have to re-record and redigitize the music. When it is in
MIDI data, however, there is a value that designates the instrument to be used for
playing back the music. To change instruments, you just change that value.
29
Audio File Formats
MIDI
*.MID, *.KAR, *.MIDI, *.SMF
AUDIO DIGITAL
WINDOWS *.WAV
MACINTOSH *.AIFF
UNIX *.AU
REALAUDIO *.RA
MPEG3 *.MP3
30
MIDI Versus Digital Audio
MIDI DIGITAL AUDIO
Analogous to structured or vector Digitized audio is analogous to
graphics bitmapped images
Device dependent - File sound better Device independent - Quality of sound
than digital audio files when played on depends on sample rate and sample
a high-quality MIDI device size (resolution)
File size is much smaller than digitized File size is larger than MIDI file
audio - MIDI files embedded in web
pages load and play more quickly.
32
Advantage and Disadvantages of
using Audio
Advantages Disadvantages
Ensure important information is Easily overused.
noticed.
33
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.
34
Summary
There are two main types of digital audio
Sampled audio
35