Sound Pertemuan 6: Matakuliah: T0732 / Sistem Multimedia Tahun: 2007
Sound Pertemuan 6: Matakuliah: T0732 / Sistem Multimedia Tahun: 2007
Sound Pertemuan 6: Matakuliah: T0732 / Sistem Multimedia Tahun: 2007
Tahun : 2007
Sound
Pertemuan 6
Learning Outcomes
Pada akhir pertemuan ini, diharapkan mahasiswa akan
mampu :
• Menunjukkan Penggunaan Suara pada Aplikasi
Multimedia
Bina Nusantara
Outline Materi
• Sound
• Waveforms
• Analogue to Digital Converter (ADC)
• Digital Audio
• MIDI (Musical Instrument Digital Interface)
• Using Sound
Bina Nusantara
Sound
• Sound are rapid vibrations that are transmitted as variations
in air pressure
Bina Nusantara
Waveforms
Time for one cycle
distance
along wave
Cycle
Bina Nusantara
The characteristics of sound waves
• Sound is described in terms of two characteristics:
– Frequency
– Amplitude (or loudness)
• Frequency
– the rate at which sound is measured
– Number of cycles per second or Hertz (Hz)
– Determines the pitch of the sound as heard by our ears
– The higher frequency, the clearer and sharper the sound the higher pitch of
sound
• Amplitude
– Sound’s intensity or loudness
– The louder the sound, the larger amplitude.
pitch distance
along wave
Cycle
Bina Nusantara
Example waveforms
Piano
Pan flute
Snare drum
Bina Nusantara
Capture and playback of digital audio
Air pressure
variations Digital to
Analogue
Converter
Converts
back into
Captured via voltage DAC
microphone
Signal is
converted into
binary
Analogue (discrete form)
to Digital ADC 0101001101 Air pressure
Converter 0110101111 variations
Bina Nusantara
The Analogue to Digital Converter (ADC)
• An ADC is a device that converts analogue signals into digital signals
• It will monitor the continuous analogue signal at a set rate and convert what
it sees into a discrete value at that specific moment in time
Bina Nusantara
Digital sampling - Sampling frequency
Bina Nusantara
Digital sampling - Sampling frequency
Bina Nusantara
Sampling Parameters
• Sampling Rate
– Frequency of sampling
– Measure in Hertz
– The higher sampling rate, higher quality sound
but size storage is big.
– Standard Sampling rate:
• 48.000 kHz (DAT) - Digital Audio Tape, also DVD
• 44.100 kHz (CD) - Compact Disk - typical quality of
most sound cards
• 22.255 kHz - Medium quality
• 11.025 kHz - Low quality (frequently used for
speech)
Bina Nusantara
Sampling Parameters
• 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)
Bina Nusantara
Size sample
Bina Nusantara
Quantisation
• Samples are usually represented the audio sample as a
integers(discrete number) or digital
1 5
Bina Nusantara
Calculating the size of digital audio
• The formula is as follows:
rate × duration × resolution × number of channels
8
• The answer will be in bytes
• Where:
– sampling rate is in Hz
– Duration/time is in seconds
– resolution is in bits (1 for 8 bits, 2 for 16 bits)
– number of channels = 1 for mono, 2 for stereo, etc.
Bina Nusantara
Calculating the size of digital audio
• Example:
– Calculate the file size for 1 minute, 44.1 KHz, 16 bits, stereo
sound
– Where:
• sampling rate is 44,100 Hz
• duration/time is 60 seconds
• resolution is 16 bits
• number of channels for stereo is 2
rate × duration × resolution × number of channels
8
44100 * 60 * 16 *2
Bina Nusantara
8
Digital audio editing software
• One of the most powerful and professional PC-based software is previously
known as Cool Edit. It’s now known as Adobe Audition. Same program,
new company.
Bina Nusantara
Bina Nusantara
Editing Digital Audio
• Simple audio editing software allows:
– Recording of digital audio segments
– Trimming
– Splicing and assembly
– Volume adjustments of the entire segment
– Reversing Sounds
– Copy, cut, paste and delete segments of digital audio
Bina Nusantara
Audio formats
• .WAV (Developed by IBM and Microsoft)
• .AU (UNIX)
• .AIFF (Audio Interchange File Format)
• .MP3 (MPEG layer 3)
• .SND (Mac)
• .RA (RealAudio)
• .WMA (Windows Media Audio)
• .VOC (SoundBlaster)
Bina Nusantara
MIDI (Musical Instrument Digital Interface)
• MIDI is a standard for specifying a musical performance
Bina Nusantara
MIDI Setup
Bina Nusantara
MIDI sequencers
• A MIDI sequencer
allows musicians to
edit and create
musical compositions
like a word processor
– Cut and paste
– Insert / delete
Bina Nusantara
Advantages of MIDI
• MIDI files are compact; the size of the file is completely
independent of playback quality
• In some cases MIDI may sound better than digital audio (if
the MIDI sound source is of high quality)
Bina Nusantara
MIDI Versus Wav
• Quality recording, MIDI depend to the tools
• MIDI Advantages
– File Size small
– Size Storage also small
• MIDI Disadvantages
– Playback
– Cost and Skill
Bina Nusantara
How audio can be used effectively
• Cautions and warnings
– It is a good medium for alerting users to critical
information. Some uses include:
• Sounding an alarm when a limit is reached
• Alerting users when data is entered incorrectly
Bina Nusantara
Advantages and 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 medi
• Disadvantages
– Easily overused
– Requires special equipment for quality production
– Not as memorable as visual media
Bina Nusantara
Adding Sound to Multimedia Project
• Decide what kind of sound is needed and where you’ll
use them
Bina Nusantara