IMGD-1001 The Game Development Process Game Audio (Content by professor Brian Moriarty)

Slides:



Advertisements
Similar presentations
Multimedia: Digitised Sound Data Section 3. Sound in Multimedia Types: Voice Overs Special Effects Musical Backdrops Sound can make multimedia presentations.
Advertisements

Introduction to Digital Audio
Digital Audio Teppo Räisänen LIIKE/OAMK. General Information Auditive information is transmitted by vibrations of air molecules The speed of sound waves.
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.
Sound can make multimedia presentations dynamic and interesting.
4.1Different Audio Attributes 4.2Common Audio File Formats 4.3Balancing between File Size and Audio Quality 4.4Making Audio Elements Fit Our Needs.
Time-Frequency Analysis Analyzing sounds as a sequence of frames
Dale & Lewis Chapter 3 Data Representation Analog and digital information The real world is continuous and finite, data on computers are finite  need.
Chapter 4: Representation of data in computer systems: Sound OCR Computing for GCSE © Hodder Education 2011.
Audio 1 Subject:T0934 / Multimedia Programming Foundation Session:8 Tahun:2009 Versi:1/0.
I Power Higher Computing Multimedia technology Audio.
From the air to the iPod. Minute disturbances in the air, caused by a vibrating object Air molecules bunch together, then spread out Changes in density.
1 Digital Audio Compression. 2 Formats  There are many different formats for storing and communicating digital audio:  CD audio  Wav  Aiff  Au 
Digital Audio.
Digital audio recording Kimmo Tukiainen. My background playing music since I was five first time in a studio at fourteen recording on my own for six months.
EET 450 Chapter 18 – Audio. Analog Audio Sound is analog Consists of air pressure that has a variety of characteristics  Frequencies  Amplitude (loudness)
Digital Audio Multimedia Systems (Module 1 Lesson 1)
Introduction to Sound Sounds are vibrations that travel though the air or some other medium A sound wave is an audible vibration that travels through.
 Continuous sequence of vibrations of air  (Why no sound in space? Contrary to Star Wars etc.)  Abstraction of an audio wave:  Ear translates vibrations.
Audio Fundamentals Lesson 2 Sound, Sound Wave and Sound Perception
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.
Digital Audio What do we mean by “digital”? How do we produce, process, and playback? Why is physics important? What are the limitations and possibilities?
Introduction to Interactive Media 10: Audio in Interactive Digital Media.
Lecture # 22 Audition, Audacity & Sound Editing Sound Representation.
By Frankie, K. F. Yip Chapter 6 Speech. By Frankie, K. F. YipLecture 6 - Sound2 Sound Waves.
Computing with Digital Media: A Study of Humans and Technology Mark Guzdial, School of Interactive Computing.
COMP Representing Sound in a ComputerSound Course book - pages
1 Week 10: Audio Recording. 2 Overview  What is sound?  What does analogue mean?  Analogue-to-Digital conversion  Key terms in digital audio  Compression.
1 4-Integrating Peripherals in Embedded Systems (cont.)
Computer Some basic concepts. Binary number Why binary? Look at a decimal number: 3511 Look at a binary number: 1011 counting decimal binary
Media Representations - Audio
Digital Recording Theory Using Peak. Listening James Tenney, Collage #1 (“Blue Suede”),  Available in Bracken Library, on James Tenney Selected.
CHAPTER SEVEN SOUND. CHAPTER HIGHLIGHTS Nature of sound – Sine waves, amplitude, frequency Traditional sound reproduction Digital sound – Sampled – Synthesized.
Overview of Multimedia A multimedia presentation might contain: –Text –Animation –Digital Sound Effects –Voices –Video Clips –Photographic Stills –Music.
Introduction to SOUND.
1 Audio Compression. 2 Digital Audio  Human auditory system is much more sensitive to quality degradation then is the human visual system  redundancy.
More Meaningful Jargon Or, All You Need to Know to Speak Like a Geek Sound.
Digital Recording. Digital recording is different from analog in that it doesn’t operate in a continuous way; it breaks a continuously varying waveform.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2009.
Chapter 12 The Principles of Computer Music Contents Digital Audio Processing Noise Reduction Audio Compression Digital Rights Management (DRM)
1 Lecture 14 - Digital Audio Turning sound into bits, and bits back into sound.
Chapter 2 Basic Science: Analog and Digital Audio.
Multimedia – Sound Dr. Lina A. Nimri Lebanese University Faculty of Economic Sciences and Business Administration 1 st branch.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2014.
IMGD-1001 The Game Development Process Class 15 Thursday, 24 September 2009.
Multimedia Sound. What is Sound? Sound, sound wave, acoustics Sound is a continuous wave that travels through a medium Sound wave: energy causes disturbance.
Digital Audio I. Acknowledgement Some part of this lecture note has been taken from multimedia course made by Asst.Prof.Dr. William Bares and from Paul.
1 Digital Audio Turning sound into bits, and bits back into sound.
Digital Audio Hygiene Alistair Hirst OMNI Audio Theory and Practice.
Lifecycle from Sound to Digital to Sound. Characteristics of Sound Amplitude Wavelength (w) Frequency ( ) Timbre Hearing: [20Hz – 20KHz] Speech: [200Hz.
Introduction to Digital Audio
Chapter 4 Fundamentals of Digital Audio
Sound / Audio.
Learning Objectives Be able to explain how sound can be sampled and stored in digital form. Understand how sampling rate affects digital audio quality.
Properties of Sound Sound is caused by the disturbance of air molecules by an object that sets those molecules in motion. Those molecules travel in waves.
Multimedia: Digitised Sound Data
High Resolution Digital Audio
Introduction to Digital Audio
Data Representation Keywords Sound
Technology ICT Option: Audio.
Introduction to Digital Audio
Introduction to Digital Audio
Introduction to Digital Audio
Digital Music Scott Bennett 1/3/2019.
Chapter 4: Representing sound
Representing Sound 2.6 – Data Representation.
Assist. Lecturer Safeen H. Rasool Collage of SCIENCE IT Dept.
Introduction to Digital Audio
Recap In previous lessons we have looked at how numbers can be stored as binary. We have also seen how images are stored as binary. This lesson we are.
Presentation transcript:

IMGD-1001 The Game Development Process Game Audio (Content by professor Brian Moriarty)

Audible vibration in an elastic medium (usually air) Sound

Compression (positive pressure) Rarefaction (negative pressure)

Amount of pressure change = Amplitude Varies continuously over time

Rate of vibration/pressure change = Frequency Measured in cycles per second (Hertz or Hz)

Frequency range of human hearing: Approximately 20 to 20,000 Hz

Analog recording and playback Transducers: Convert one type of energy to another All transducers introduce distortion

Digital audio Experimental recordings: Late ‘60s Experimental recordings: Late ‘60s Jazz/classical: Early 70s Jazz/classical: Early 70s First symphonic recording: 1976 First symphonic recording: 1976 First major label recording: 1979 First major label recording: 1979 Ry Cooder’s Bop Till You Drop Ry Cooder’s Bop Till You Drop Compact Disc Compact Disc Jointly created by Sony/Phillips Jointly created by Sony/Phillips Introduced October 1, 1982 Introduced October 1, 1982 Billy Joel’s 52nd Street Billy Joel’s 52nd Street Biggest seller Biggest seller Beatles 1 (30M+ copies) Beatles 1 (30M+ copies)

Digital audio based on sampling Amplitude of signal is measured (and usually recorded) at precise time intervals, converted to stream of numbers

Digital recording and playback Extremely accurate, low noise and distortion Almost immeasurable wow or flutter Easily edited and manipulated Essentially perfect replication

Digital sampling (“digitizing”) Sample rate Sample rate Number of samples taken per second Number of samples taken per second Also measured in Hertz Also measured in Hertz Sample resolution Sample resolution Range of numbers used to describe each sample Range of numbers used to describe each sample Measured in binary bits Measured in binary bits 8 bits = 256 values (± 127) 8 bits = 256 values (± 127) 16 bits = 65,536 values (± 32K) 16 bits = 65,536 values (± 32K) 24 bits = 16,777,216 values 24 bits = 16,777,216 values

How often to sample? Depends on desired frequency range Depends on desired frequency range Nyquist frequency = Sample rate required to fully express a signal Nyquist frequency = Sample rate required to fully express a signal 2X maximum required frequency 2X maximum required frequency 2X 20 kHz = 40 kHz minimum sample rate to represent full human range 2X 20 kHz = 40 kHz minimum sample rate to represent full human range

How much to sample? Depends on desired dynamic range Depends on desired dynamic range Dynamic range = Difference between softest and loudest sounds Dynamic range = Difference between softest and loudest sounds Measured in decibels (dB); 1 dB = faintest perceptible sound Measured in decibels (dB); 1 dB = faintest perceptible sound Real-world range: dB (anechoic chamber) to 140 dB (beside jet engine) Real-world range: dB (anechoic chamber) to 140 dB (beside jet engine) Each bit of sampling resolution approximately doubles dynamic range Each bit of sampling resolution approximately doubles dynamic range

Home audio formats Compact Disc Compact Disc Sample rate: 44.1 kHz Sample rate: 44.1 kHz Sample resolution: 16 bits Sample resolution: 16 bits Dynamic range: >90 dB Dynamic range: >90 dB Two channels for stereo Two channels for stereo “CD quality” “CD quality” HD/BluRay DVD HD/BluRay DVD Up to 8 channels 96 kHz 24-bit audio Up to 8 channels 96 kHz 24-bit audio Dynamic range: >120 dB Dynamic range: >120 dB

“CD quality” data rate 44,100 samples per second 44,100 samples per second 16 bits (2 bytes) per sample 16 bits (2 bytes) per sample 2 channels 2 channels 44,100 x 2 x 2 = 176,400 bytes/sec or MB per minute 44,100 x 2 x 2 = 176,400 bytes/sec or MB per minute Typical pop song MB if uncompressed Typical pop song MB if uncompressed

Compressed digital audio Lossless compression Lossless compression Preserves data perfectly Preserves data perfectly Compression ratio: 2:1 typical Compression ratio: 2:1 typical Lossy compression Lossy compression Discards some data to increase compression ratio Discards some data to increase compression ratio The trick is: What to throw away? The trick is: What to throw away?

The game changer: MP3 (1994) Lossy compression algorithm based on auditory masking Lossy compression algorithm based on auditory masking Loud low-frequency sounds can make softer high-frequency sounds inaudible Loud low-frequency sounds can make softer high-frequency sounds inaudible Perceptual coding: Throw away high frequencies that “can’t be heard anyway” Perceptual coding: Throw away high frequencies that “can’t be heard anyway” Compression ratio: 10:1 or better Compression ratio: 10:1 or better Pop song becomes a 3 MB file Pop song becomes a 3 MB file

The MP3 Phenomenon First Web appearance: Late ‘94 First Web appearance: Late ‘94 Winamp, mp3.com (Summer ’97) Winamp, mp3.com (Summer ’97) First portable players (Spring ’98) First portable players (Spring ’98) 32 MB Eiger MPMan F10, Rio PMP MB Eiger MPMan F10, Rio PMP300 Napster (June ‘99) Napster (June ‘99) Created by Shawn Fanning (19), Northeastern University Created by Shawn Fanning (19), Northeastern University

Game audio: Early days Apple II and PC: Click the speaker Apple II and PC: Click the speaker Atari, C64, early consoles: FM synths Atari, C64, early consoles: FM synths Macintosh (January 1984) Macintosh (January 1984) AdLib PC sound card (1976) AdLib PC sound card (1976) Creative Labs Sound Blaster (1989) Creative Labs Sound Blaster (1989) AdLib with digital audio + game port AdLib with digital audio + game port CD-ROM (1985) CD-ROM (1985) CD-R (1990) CD-R (1990) MIDI/music synthesis MIDI/music synthesis

Game audio: Today All game audio is digital All game audio is digital Music, SFX, VO delivered pre-rendered Music, SFX, VO delivered pre-rendered Typical assets Typical assets.wav (bigger, no decoding).wav (bigger, no decoding).mp3 (small, decoded, may require license because of patent).mp3 (small, decoded, may require license because of patent).ogg (small, decoded, no license).ogg (small, decoded, no license).flac (smaller, decoded).flac (smaller, decoded) Real-time mixing, effects, spatialization Real-time mixing, effects, spatialization