uin-p05 sound

Upload: arif-muammar-hidayat-9491

Post on 08-Apr-2018

227 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/7/2019 UIN-P05 Sound

    1/31

    UIN Syahid JAKARTA 1

    SoundSession 05

    Subject : INF007 / Teknologi Multimedia

    Year : 2008

    UNIVERSITAS ISLAM NEGERI JAKARTA

  • 8/7/2019 UIN-P05 Sound

    2/31

    UIN Syahid JAKARTA 2

    Learning Outcomes

    Pada akhir pertemuan ini, diharapkan mahasiswa

    akan mampu :

    Menunjukkan Penggunaan Suara pada Aplikasi

    Multimedia

  • 8/7/2019 UIN-P05 Sound

    3/31

    UIN Syahid JAKARTA 3

    Outline Materi

    Sound

    Waveforms

    Analogue to Digital Converter (ADC)

    Digital Audio

    MIDI (Musical Instrument Digital Interface)

    Using Sound

  • 8/7/2019 UIN-P05 Sound

    4/31

    UIN Syahid JAKARTA 4

    Sound

    Sound are rapid vibrations that are transmitted as variations in airpressure

    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 aperceptor (brain). Example banging drum.

    As the sound vibrates it bumps into molecules of the surroundingmedium causing pressure waves to travel away from the source inall directions

    Types of Sound in Multimedia: Speech

    Music

    Sound Effect

  • 8/7/2019 UIN-P05 Sound

    5/31

    UIN Syahid JAKARTA

    Waveforms

    Sound waves are manifest as waveforms A waveform that repeats itself at regular intervals is

    called a periodic waveform

    Waveforms that do not exhibit regularity are called

    noise

    The unit of regularity is called a cycle

    This is known as Hertz (or Hz) after Heinrich Hertz

    One cycle = 1 Hz

    Sometimes written as kHz or kiloHertz (1 kHz = 1000 Hz)

  • 8/7/2019 UIN-P05 Sound

    6/31

    UIN Syahid JAKARTA 6

    Waveforms

    distance

    along waveCycle

    Time for one cycle

  • 8/7/2019 UIN-P05 Sound

    7/31

    UIN Syahid JAKARTA 7

    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 higherpitch of sound

    Amplitude

    Sounds intensity or loudness The louder the sound, the larger amplitude.

    In addition, all sounds have a duration and successive musicalsounds is called rhythm

  • 8/7/2019 UIN-P05 Sound

    8/31

    UIN Syahid JAKARTA 8

    The characteristics of sound

    waves

    distance

    along wave

    Cycle

    Time for one cycleAmplitude

    pitch

  • 8/7/2019 UIN-P05 Sound

    9/31

    UIN Syahid JAKARTA9

    Example waveforms

    PianoPiano

    Pan flutePan flute

    Snare drumSnare drum

  • 8/7/2019 UIN-P05 Sound

    10/31

    UIN Syahid JAKARTA 10

    Capture and playback of digital

    audio

    Air pressurevariations

    Captured viamicrophone

    Air pressure

    variations

    ADC

    Signal is

    converted into

    binary

    (discrete form)0101001101

    0110101111

    Analogueto DigitalConverter

    DAC

    Converts

    back into

    voltage

    Digital toAnalogueConverter

  • 8/7/2019 UIN-P05 Sound

    11/31

    UIN Syahid JAKARTA 11

    e na ogue o g a

    Converter (ADC)

    An ADC is a device that converts analogue signals into digitalsignals

    An analogue signal is a continuous value It can have any single value on an infinite scale

    A digital signal is a discrete value It has a finite value (usually an integer)

    An ADC is synchronised to some clock

    It will monitor the continuous analogue signal at a set rate and

    convert what it sees into a discrete value at that specific moment intime

    The process to convert the analogue to digital sound is calledSampling. Use PCM (Pulse Code Modulation)

  • 8/7/2019 UIN-P05 Sound

    12/31

    UIN Syahid JAKARTA 12

    Digital sampling - Sampling

    frequency

  • 8/7/2019 UIN-P05 Sound

    13/31

    UIN Syahid JAKARTA 13

    Digital sampling - Sampling

    frequency

  • 8/7/2019 UIN-P05 Sound

    14/31

    UIN Syahid JAKARTA 14

    Sampling

    Two parameters: Sampling Rate

    Frequency of sampling

    Measure in Hertz

    The higher sampling rate, higher quality sound but size storage isbig.

    Standard Sampling rate: 44.1 KHz for CD Audio 22.05 KHz

    11.025 KHz for spoken

    5.1025 KHz for audio effect

    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 morememory (or disk storage)

  • 8/7/2019 UIN-P05 Sound

    15/31

    UIN Syahid JAKARTA 15

    Quantisation

    Samples are usually represented theaudio sample as a integers(discrete

    number) or digital

    Sample points

  • 8/7/2019 UIN-P05 Sound

    16/31

  • 8/7/2019 UIN-P05 Sound

    17/31

    UIN Syahid JAKARTA 17

    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

    8channelsofnu berresolutiondurationrate

    vvv

    44100 * 60 * 16 *2

    8

  • 8/7/2019 UIN-P05 Sound

    18/31

    UIN Syahid JAKARTA 18

    Digital audio editing software

    One of the most powerful and professional PC-based packages is a tool called Sound Forge

  • 8/7/2019 UIN-P05 Sound

    19/31

    UIN Syahid JAKARTA 19

    Editing Digital Audio

    Trimming Splicing and assembly

    Volume adjustments

    Format conversion

    Resampling or downsampling

    Fade ins and fade outs

    Equalization

    Time Stretching Digital Signal processing

    Reversing Sounds

  • 8/7/2019 UIN-P05 Sound

    20/31

    UIN Syahid JAKARTA 20

    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

    Others audio editing software: COOL Edit Pro

    Gold Wave

    PROSONIQ SonicWORX

    Samplitude Studio

  • 8/7/2019 UIN-P05 Sound

    21/31

    UIN Syahid JAKARTA 21

    Audio formats

    .WAV (Developed by IBM and Microsoft) .AU (UNIX)

    .AIFF (Audio Interchange File Format)

    .MP3 (MPEG layer3) .SND (Mac)

    .RA (RealAudio)

    .WMA (Windows Media Audio)

    .VOC (SoundBlaster)

  • 8/7/2019 UIN-P05 Sound

    22/31

    UIN Syahid JAKARTA 22

    MIDI (Musical Instrument Digital

    Interface)

    MIDI is a standard for specifying a musical performance

    It allows different electronic devices to communicatetogether Rather than send raw digital audio, it sendsinstructions to musical instruments telling them what

    note to play, at what volume, using what sound, etc.

    The synthesiser that receives the MIDI events isresponsible for generating the actual sounds. Example:Keyboard Piano

    MIDI data is not digitized sound: it is a shorthandrepresentation of music stored in numeric form

  • 8/7/2019 UIN-P05 Sound

    23/31

    UIN Syahid JAKARTA 23

    MIDI Setup

  • 8/7/2019 UIN-P05 Sound

    24/31

    UIN Syahid JAKARTA 24

    MIDI sequencers

    A MIDIsequencer

    allows

    musicians to

    edit and create

    musical

    compositions

    like a word

    processor

    Cut and paste Insert / delete

  • 8/7/2019 UIN-P05 Sound

    25/31

    UIN Syahid JAKARTA25

    Advantages of MIDI

    MIDI files are compact; the size of the file is completelyindependent of playback quality

    In some cases MIDI may sound better than digital audio(if the MIDI sound source is of high quality)

    MIDI data is completely editable: you can change thelength of a MIDI file by varying its tempo withoutchanging the pitch

    Still used a lot in studio environment to connectsynthesizers and other equipment

  • 8/7/2019 UIN-P05 Sound

    26/31

    UIN Syahid JAKARTA26

    Disadvantages of MIDI

    MIDI does not represent sound but musicalinstruments, so playback is very rarely accurate(usually same score, wrong instrument)

    MIDI cannot easily be used to play spokendialog

    An old format, people have already begun

    forgetting it

  • 8/7/2019 UIN-P05 Sound

    27/31

    UIN Syahid JAKARTA27

    MIDI Versus Wav

    Quality recording, MIDI depend to the tools

    Audio .wav easier to create compare than MIDI

    MIDI Advantages File Size small

    Size Storage also small

    MIDI Advantages Playback

    Cost and Skill

  • 8/7/2019 UIN-P05 Sound

    28/31

    UIN Syahid JAKARTA28

    How audio can be used effectively

    Examples of uses of audio: Cautions and warnings

    It is a good medium for alerting users to criticalinformation. Some uses include:

    Sounding an alarm when a limit is reached Alerting users when data is entered incorrectly

    Music and Sound Effects These make multimedia interaction more real.

    Some uses include: Musical background for a video segment

    Birds Songs accompanying photographs in biologicalfield training

  • 8/7/2019 UIN-P05 Sound

    29/31

    UIN Syahid JAKARTA29

    How audio can be used effectively

    Sound-related data. Some uses include:

    Helping mechanics diagnose engine trouble

    Training medical students to recognize different

    breathing sounds

    Direct voice communication.

    Some uses include:

    Leaving a voice message for other users of an

    application

    Consulting with an expert during a troubleshooting

    procedure.

  • 8/7/2019 UIN-P05 Sound

    30/31

    UIN Syahid JAKARTA30

    Advantages and Disadvantages

    of using audio

    Sound adds life to any multimedia applicationand plays important role in effective marketingpresentations

    Advantages Ensure important information is noticed

    Add interest

    Can communicate more directly than other media

    Disadvantages Easily overused Requires special equipment for quality production

    Not as memorable as visual media

  • 8/7/2019 UIN-P05 Sound

    31/31

    UIN Syahid JAKARTA31

    Adding Sound to Multimedia

    Project

    Decide what kind of sound is needed and whereyoull use them

    Decide when to use midi and when to use digitalaudio

    Acquire source material

    Edit the sounds to fit your project

    Test the sounds to be sure they are timedproperly