Business and Computing Deanery Multimedia Week 9 Sound.

Slides:



Advertisements
Similar presentations
3.01C Multimedia Elements and Guidelines 3.01 Explore multimedia systems, elements and presentations.
Advertisements

CS335 Principles of Multimedia Systems Audio Hao Jiang Computer Science Department Boston College Oct. 11, 2007.
Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and Applets.
CNIT 132 – Week 9 Multimedia. Working with Multimedia Bandwidth is a measure of the amount of data that can be sent through a communication pipeline each.
Sound in multimedia How many of you like the use of audio in The Universal Machine? What about The Universal Computer? Why or why not? Does your preference.
4.1Different Audio Attributes 4.2Common Audio File Formats 4.3Balancing between File Size and Audio Quality 4.4Making Audio Elements Fit Our Needs.
1 Multimedia on the Web: Issues of Bandwidth Bandwidth is a measure of the amount of data that can be sent through a communication pipeline each second.
Part A Multimedia Production Rico Yu. Part A Multimedia Production Ch.1 Text Ch.2 Graphics Ch.3 Sound Ch.4 Animations Ch.5 Video.
Audio 1 Subject:T0934 / Multimedia Programming Foundation Session:8 Tahun:2009 Versi:1/0.
Chapter 14 Sound. Sound  Sound can be used for narration, background soundtracks, rollover noises, and for sound effects to complement animations. 
I Power Higher Computing Multimedia technology Audio.
Introduction to Macromedia Flash 8
AUDIO VIDEO FLASH DIGITAL MEDIA: COMMUNICATION AND DESIGN
Chapter 9 Audio.
Digital Audio Multimedia Systems (Module 1 Lesson 1)
1 Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System NET201.
Digital audio. In digital audio, the purpose of binary numbers is to express the values of samples that represent analog sound. (contrasted to MIDI binary.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
Digital Sound and Video Chapter 10, Exploring the Digital Domain.
Fundamentals Rawesak Tanawongsuwan
1 1 Multimedia. 2 What is SOUND? Sound comprises the spoken word, voices, music and even noise. It is a complex relationship involving: a vibrating object.
Introduction to Interactive Media 10: Audio in Interactive Digital Media.
Chapter 15 Video. Importing Video Into Flash Once you import video into Flash MX 2004, you can control it using behaviors and very basic ActionScript,
COMP Representing Sound in a ComputerSound Course book - pages
XP Tutorial 5 Buttons, Behaviors, and Sounds. XP New Perspectives on Macromedia Flash MX Buttons Interactive means that the user has some level.
Business and Computing Deanery Multimedia Week 6 Animation.
1 Lecture 12: Multimedia Not in Web 101 Text  Important Multimedia Issues  Audio  Movies and Video  Multimedia and HTML Documents.
Tutorial 5 Making a Document Interactive. XP Objectives Explore the different button states Add a button from the Button library Create a button Learn.
Chapter 11 Adding Sound and Video. Chapter 11 Lessons 1.Work with sound 2.Specify synchronization options 3.Modify sounds 4.Use ActionScript with sound.
MULTIMEDIA - WHAT IS IT? DEFINITION 1: Uses a VARIETY of media ELEMENTS for instruction Media elements are: text, sound, graphics, moving images (real.
CHAPTER SEVEN SOUND. CHAPTER HIGHLIGHTS Nature of sound – Sine waves, amplitude, frequency Traditional sound reproduction Digital sound – Sampled – Synthesized.
© 2012 Adobe Systems Incorporated. All Rights Reserved. Copyright 2012 Adobe Systems Incorporated. All rights reserved. ® INTRODUCTION TO FLASH ANIMATION.
Copyright © 2003 Pearson Education, Inc. Chapter 3, Slide 1 by Michael Kay The Web Wizard’s Guide to Flash.
® Copyright 2010 Adobe Systems Incorporated. All rights reserved. ® ® 1 INTRODUCTION TO ADOBE FLASH PROFESSIONAL CS5.
Sound and audio. Table of Content 1.Introduction 2.Properties of sound 3.Characteristics of digital sound 4.Calculate audio data size 5.Benefits of using.
COSC 1P02 Introduction to Computer Science 4.1 Cosc 1P02 Week 4 Lecture slides “Programs are meant to be read by humans and only incidentally for computers.
Multimedia Elements: Sound, Animation, and Video.
Sound on the Web. Using Sound on a Web Site Conveying information  pronounce a word or describe a product Set a mood  music to match the web page scene.
Copyright © 2003 Pearson Education, Inc. Chapter 5 – Slide 1 by Michael Kay The Web Wizard’s Guide to Flash.
Overview of Multimedia A multimedia presentation might contain: –Text –Animation –Digital Sound Effects –Voices –Video Clips –Photographic Stills –Music.
GIF - Graphics Interchange Format JPEG - Joint Photographic Experts Group PNG - Portable Network Graphics GIF images are limited to the 8 bit palette which.
Multimedia Technology and Applications Chapter 2. Digital Audio
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 9 This presentation © 2004, MacAvon Media Productions Sound.
Sound element Week - 11.
Chapter 16 Video. Importing Video Into Flash  Once you import video into Flash, you can control it using behaviors and very basic ActionScript, target.
2006 Adobe Systems Incorporated. All Rights Reserved. 1 INTRODUCTION TO ADOBE FLASH CS3.
Introduction to Flash Animation CS 318. Topics Introduction to Flash and animation The Flash development environment Creating Flash animations  Layers.
5-1 OBJ Copyright 2003, Paradigm Publishing Inc. Adding Sound, Video, and Basic Interactivity with Buttons Macromedia Flash Design & Application.
Copyright © 2003 Pearson Education, Inc. Chapter 6 – Slide 1 by Michael Kay The Web Wizard’s Guide to Flash.
Digital Media Dr. Jim Rowan ITEC 2110 Audio. What is audio?
© 2011 The McGraw-Hill Companies, Inc. All rights reserved Chapter 4: Sound.
Sound in Multimedia Psychology of sound what do you use it for? what techniques for its communication exist? Science of sound why does it exist? how it.
Marwan Al-Namari 1 Digital Representations. Bits and Bytes Devices can only be in one of two states 0 or 1, yes or no, on or off, … Bit: a unit of data.
Digital Audio III. Sound compression (I) Compression of sound data requires different techniques from those for graphical data Requirements are less stringent.
CSCI-100 Introduction to Computing Hardware Part II.
Digital Media Dr. Jim Rowan ITEC 2110 Audio. What is audio?
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
© 2011 Delmar, Cengage Learning Chapter 11 Adding Sound and Video.
CDM105 Session 12 Macromedia FLASH MX 2004 Part 5 : Sounds, publishing your movies, and the ‘Get URL’ action.
© 2011 The McGraw-Hill Companies, Inc. All rights reserved Chapter 4: Sound.
Packages that we use Within ICT we primarily use Dreamweaver CS3 and Flash CS3 This is embedded in an Adobe Design Premium CS3 package (Go to Start >
Digital Sound Dr. Kairui Chen GGC.
Multimedia: making it Work
Adding Buttons, Actions, and Sounds
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Introduction to Multimedia
Sound Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman
Assist. Lecturer Safeen H. Rasool Collage of SCIENCE IT Dept.
Digital Audio Application of Digital Audio - Selected Examples
Chapter 9 Audio.
Presentation transcript:

Business and Computing Deanery Multimedia Week 9 Sound

Multimedia 2 Last week Lecture Media dictionary Bitmaps Your interface Supported session Using imported artwork Look at navigation

Multimedia 3 This week Lecture Your interface and Flash navigation Sound Chapter 9 Digital Multimedia, 2nd edition The nature of sound Digitization Compression File formats Working with sound Supported session Working with sound Look at navigation

Multimedia 4 Interactivity and Flash An event triggers every action In Flash no action occurs unless something triggers it There are two types of events in Flash Movie events User events All actions in Flash are a form of ActionScript

Multimedia 5 Flash and interaction Behaviors Ready made scripts You can use behaviors to control movie clips, video, and sound files. ActionScript A script can consist of a single command, such as instructing a SWF file to stop playing, Or a series of commands and statements, such as first evaluating a condition and then performing an action

Multimedia 6 Flash and navigation Frame to frame navigation Behaviors on (release) { //Movieclip GotoAndStop Behavior this.gotoAndStop("50"); //End Behavior Load another movie ActionScript

Multimedia 7 Events, handlers and actions Whenever a user clicks the mouse or presses a key, an event is generated. In a SWF file, frames, buttons, movie clips, and text fields all generate events to which your user can respond Actions this.gotoAndStop("50"); this.gotoAndPlay("50");

Multimedia 8 Sound in multimedia Consider why you would use sound, will it add to your multimedia production? List how it could be used in your multimedia production What controls would you use? Why?

The Nature of Sound Conversion of energy into vibrations in the air (or some other elastic medium) Most sound sources vibrate in complex ways leading to sounds with components at several different frequencies Frequency spectrum – relative amplitudes of the frequency components Range of human hearing: roughly 20Hz– 20kHz, falling off with age 275–276 Chapman N and Chapman J (2004).

Waveforms Sounds change over time e.g. musical note has attack and decay, speech changes constantly Frequency spectrum alters as sound changes Waveform is a plot of amplitude against time Provides a graphical view of characteristics of a changing sound Can identify syllables of speech, rhythm of music, quiet and loud passages, etc 276–280 Chapman N and Chapman J (2004).

Multimedia 11 Amplitude Amplitude is perceived as loudness High amplitudeLower amplitude Click on the amplitudes to hear the difference.

Multimedia 12 Frequency Frequency is perceived as pitch. High frequencyLow frequency Click on the frequencies to hear the difference.

Multimedia 13 Sampling and Quantization Why is the sampling rate important? Why is the quantisation level important? 36 Sampling Quantisation Chapman N and Chapman J (2004).

Multimedia 14 Sampling Theorem If the highest frequency component of a signal is at fh the signal can be properly reconstructed if it has been sampled at a frequency > 2fh Nyquist rate Undersamping leads to aliasing Sound distortion, image 'jaggies' or Moiré patterns, jerky or retrograde motion 40–41 Chapman N and Chapman J (2004).

Digitization – Sampling Captures amplitude values at regular intervals Sampling rate is expressed in kHz (1000 per second) Sampling Theorem implies minimum rate of 40kHz to reproduce sound up to limit of hearing CD: 44.1kHz Sub-multiples often used for low bandwidth – e.g kHz for Internet audio DAT: 48kHz (Hence mixing sounds from CD and DAT will require some resampling, best avoided) 281–282 Chapman N and Chapman J (2004).

Multimedia 16 Sampling standards Telephone Quality kHz, 8-bit depth, Mono (10kb/sec) Radio Quality , 8-bit depth, Mono (21 kb/sec) CD Quality kHz, 16-bit depth, Stereo (172 kb/sec)

Digitization – Quantization 16 bits, quantization levels, CD quality 8 bits: audible quantization noise, can only use if some distortion is acceptable, e.g. voice communication Dithering – introduce small amount of random noise before sampling Noise causes samples to alternate rapidly between quantization levels, effectively smoothing sharp transitions 283–285 Chapman N and Chapman J (2004).

Undersampling & Dithering 283–284 Chapman N and Chapman J (2004).

Multimedia 19 Stereo Stereo sound is composed of TWO very similar sound waves. Subtle differences in location and movement Must have a separate sound wave per channel (twice the size file)

Multimedia 20 Mono Uses only one channel Good way to keep file sizes small As a general rule, use mono where possible.

Data Size Sampling rate r is the number of samples per second Sample size s bits Each second of digitized audio requires rs/8 bytes CD quality: r = 44100, s = 16, hence each second requires just over 86 kbytes (k=1024), each minute roughly 5Mbytes (mono) 287 Chapman N and Chapman J (2004).

Clipping If recording level is set too high, signal amplitude will exceed maximum that can be recorded, leading to unpleasant distortion But if level is set too low, dynamic range will be restricted 287–288 Chapman N and Chapman J (2004).

Sound Editing Timeline divided into tracks Sound on each track displayed as a waveform 'Scrub' over part of a track e.g. to find pauses Cut and paste, drag and drop May combine many tracks from different recordings (mix-down) 289 Chapman N and Chapman J (2004).

Effects and Filters Noise gate Low pass and high pass filters Notch filter De-esser Click repairer Reverb Graphic equalizer Envelope Shaping Pitch alteration and time stretching etc 290–295 Chapman N and Chapman J (2004).

Compression In general, lossy methods required because of complex and unpredictable nature of audio data CD quality, stereo, 3-minute song requires over 25 Mbytes Data rate exceeds bandwidth of dial-up Internet connection Difference in the way we perceive sound and image means different approach from image compression is needed 295 Chapman N and Chapman J (2004).

Perceptually-Based Compression Identify and discard data that doesn't affect the perception of the signal Needs a psycho-acoustical model, since ear and brain do not respond to sound waves in a simple way Threshold of hearing – sounds too quiet to hear Masking – sound obscured by some other sound 298–299 Chapman N and Chapman J (2004).

MP3 MPEG Audio, Layer 3 Three layers of audio compression in MPEG-1 (MPEG-2 essentially identical) Layer 1...Layer 3, encoding proces increases in complexity, data rate for same quality decreases e.g. Same quality 192kbps at Layer 1, 128kbps at Layer 2, 64kbps at Layer 3 10:1 compression ratio at high quality Variable bit rate coding (VBR) 300–301 Chapman N and Chapman J (2004).

AAC Advanced Audio Coding Defined in MPEG-2 standard, extended and incorporated into MPEG-4 Not backward compatible with earlier standards Higher compression ratios and lower bit rates than MP3 Subjectively better quality than MP3 at the same bit rate 301 Chapman N and Chapman J (2004).

Audio Formats Platform-specific file formats AIFF, WAV, AU Multimedia formats used as 'container formats' for sound compressed with different codecs QuickTime, Windows Media, RealAudio MP3 has its own file format, but MP3 data can be included as audio tracks in QuickTime movies and SWFs 302 Chapman N and Chapman J (2004).

MIDI Musical Instruments Digital Interface Instructions about how to produce music, which can be interpreted by suitable hardware and/or software cf. vector graphics as drawing instructions Standard protocol for communicating between electronic instruments (synthesizers, samplers, drum machines) Allows instruments to be controlled by hardware or software sequencers 303–304 Chapman N and Chapman J (2004).

MIDI and Computers MIDI interface allows computer to send MIDI data to instruments Store MIDI sequences in files, exchange them between computers, incorporate into multimedia Computer can synthesize sounds on a sound card, or play back samples from disk in response to MIDI instructions Computer becomes primitive musical instrument (quality of sound inferior to dedicated instruments) 304 Chapman N and Chapman J (2004).

Multimedia 32 Editing sound Use a piece of Sound Editing Software Cool Edit 2000 Sound manipulation program open, create or record new sound files Edit existing sounds Mix audio or musical parts, touch them up, and add effects Adobe Audition

Multimedia 33 Sound and Flash Sounds that continuously, independent of the Timeline Or you can synchronize animation to a sound track. You can add sounds to buttons to make them more interactive Macromedia, Flash MX 2004

Multimedia 34 Event sounds and Stream sounds An Event sound must download completely before it begins playing, and it continues playing until explicitly stopped Stream sounds begin playing as soon as enough data for the first few frames has been downloaded; stream sounds are synchronized to the Timeline for playing on a website. Macromedia, Flash MX 2004

Multimedia 35 Importing sound You can import the following sound file formats into Flash: WAV (Windows only) AIFF (Macintosh only) MP3 (Windows or Macintosh) Select File > Import > Import to Library To add a sound to a document from the library, you assign the sound to a layer and set options in the Sound controls in the Property inspector It is recommended that you place each sound on a separate layer. To define the starting point of a sound or to control the volume of the sound as it plays, you use the sound- editing controls in the Property inspector Macromedia, Flash MX 2004

Multimedia 36 Controlling sound You can control sound playback using sound Behaviors or ActionScript The most common sound-related task in Flash is starting and stopping sounds at keyframes in synchronization with animation You can use Flash to compress sound when it is published Macromedia, Flash MX 2004

Multimedia 37 Sync options Event The entire sound must download first Can be triggered more than once Will play all the way through Start Cannot have multiple instances Stop Stops Event or Start sound Stream Breaks the sound up into frame-sized pieces which means it does not all need to be downloaded before the Movie can play

Multimedia 38 Sound strategy Re-use sound from the library It is only stored once Loop shorter sounds in place of importing longer sounds Compress as much as possible without loss of quality Use separate sound-editing program to simplify and remove extraneous noise Kay M. (2003)

Multimedia 39 A question Scenario: You have been asked by Hope library to add a sound track to a flash movie on using the library Discuss and critically compare two methods of incorporating sound within your Flash movie The MP3 sound track that the library have given you is poor quality, discuss the reasons that may have caused this during the digitisation process

Multimedia 40 Activity Play a CD Copy a portion of a track Experiment with sound effects Add fades Export 30 secs as an mp3 Make a media dictionary entry Add to a Flash movie Insert controls using Behaviours

Multimedia 41 For Next Week Accessibility Publishing and distribution Independent study Attend the supported session to get to know Flash Create accessible Flash Content Publishing

Multimedia 42 References Chapman N and Chapman J (2004). Digital Multimedia, Second Edition. London. Wiley Flash Help and How Do I Kay M. (2003) The Web Wizard's Guide to Flash, Pearson Education, USA