COMP1 5.4. Representing Sound in a ComputerSound Course book - pages 124 - 131.

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

Sound can make multimedia presentations dynamic and interesting.
GCSE Computing#BristolMet Session Objectives#10 MUST define the term sample rate COULD explain how sound can be sampled and stored in digital form SHOULD.
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.
Chapter 4: Representation of data in computer systems: Sound OCR Computing for GCSE © Hodder Education 2011.
I Power Higher Computing Multimedia technology Audio.
4-Integrating Peripherals in Embedded Systems (cont.)
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.
Image and Sound Editing Raed S. Rasheed Sound What is sound? How is sound recorded? How is sound recorded digitally ? How does audio get digitized.
Howell Istance School of Computing De Montfort University
Chapter 2 Fundamentals of Data and Signals
EET 450 Chapter 18 – Audio. Analog Audio Sound is analog Consists of air pressure that has a variety of characteristics  Frequencies  Amplitude (loudness)
Chapter 2: Fundamentals of Data and Signals. 2 Objectives After reading this chapter, you should be able to: Distinguish between data and signals, and.
Chapter 2 : Business Information Business Data Communications, 4e.
1 A Balanced Introduction to Computer Science, 2/E David Reed, Creighton University ©2008 Pearson Prentice Hall ISBN Chapter 12 Data.
5. Multimedia Data. 2 Multimedia Data Representation  Digital Audio  Sampling/Digitisation  Compression (Details of Compression algorithms – following.
Digital Audio Multimedia Systems (Module 1 Lesson 1)
Representing Sound in a computer Analogue  Analogue sound is produced by being picked up by a transducer (microphone) and converted in an electrical current.
Digital Data Patrice Koehl Computer Science UC Davis.
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.
Representation of Data in Computer Systems
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?
Lab #8 Follow-Up: Sounds and Signals* * Figures from Kaplan, D. (2003) Introduction to Scientific Computation and Programming CLI Engineering.
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.
Lecture # 22 Audition, Audacity & Sound Editing Sound Representation.
DTC 354 Digital Storytelling Rebecca Goodrich. Wave made up of changes in air pressure by an object vibrating in a medium—water or air.
By Frankie, K. F. Yip Chapter 6 Speech. By Frankie, K. F. YipLecture 6 - Sound2 Sound Waves.
CSCI-235 Micro-Computers in Science Hardware Part II.
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
CHAPTER SEVEN SOUND. CHAPTER HIGHLIGHTS Nature of sound – Sine waves, amplitude, frequency Traditional sound reproduction Digital sound – Sampled – Synthesized.
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
Objectives Data Representation Binary number system Binary Coded Decimal (BCD) Boolean Values Analogue & Digital data Use of ASCII code Memory addressing.
Signal Digitization Analog vs Digital Signals An Analog Signal A Digital Signal What type of signal do we encounter in nature?
Overview of Multimedia A multimedia presentation might contain: –Text –Animation –Digital Sound Effects –Voices –Video Clips –Photographic Stills –Music.
Introduction to SOUND.
Sound element Week - 11.
More Meaningful Jargon Or, All You Need to Know to Speak Like a Geek Sound.
Georgia Institute of Technology Introduction to Processing Digital Sounds part 1 Barb Ericson Georgia Institute of Technology Sept 2005.
1 Introduction to Information Technology LECTURE 6 AUDIO AS INFORMATION IT 101 – Section 3 Spring, 2005.
Analogue & Digital. Analogue Sound Storage Devices.
CS Spring 2009 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2009.
Encoding and Simple Manipulation
CSCI-100 Introduction to Computing Hardware Part II.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 3 – Digital Audio Representation Klara Nahrstedt Spring 2014.
1 What is Multimedia? Multimedia can have a many definitions Multimedia means that computer information can be represented through media types: – Text.
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.
Lifecycle from Sound to Digital to Sound. Characteristics of Sound Amplitude Wavelength (w) Frequency ( ) Timbre Hearing: [20Hz – 20KHz] Speech: [200Hz.
3.3 Fundamentals of data representation
Image and Sound Representation
Multimedia: Digitised Sound Data
Multimedia Systems and Applications
Introduction to Multimedia
Analogue & Digital.
Introduction to Digital Audio
Chapter 5:- Sound Eyad Alshareef Eyad Alshareef.
Introduction to Digital Audio
Introduction to Digital Audio
Chapter 4: Representing sound
Representing Sound 2.6 – Data Representation.
Analog to Digital Encoding
Introduction to Digital Audio
Digital Audio Application of Digital Audio - Selected Examples
Presentation transcript:

COMP Representing Sound in a ComputerSound Course book - pages

Input-Process-Output Inputcomputers read incoming data Processes or operate on it OutputDisplay or print information INPUTPROCESSINGOUTPUT

Data versus Information Data  the raw material which a computer accepts as input and then processes into useful information Information  processed data that provides understandable and useful information

Sound and data What is sound?  A pressure wave sensed by our ears. Analogue Sound  Pressure wave is captured by a transducer (often a microphone)  Transducer produces electrical voltage or current that varies in proportion to the sound pressure Transducer  Electrical signal then transmitted by telephone etc.  At receiving end electrical signal is used to create the sound by vibrating some mechanical surface in a loudspeaker, reproducing the original pressure wave

What is a transducer? A transducer is a device, that converts one type of energy to another for various purposes including measurement or information transfer. E.g  Antenna  Cathode Ray Tube  Loudspeaker  microphone

Coding Schemes Data is represented using various coding schemes. Different forms of information:  ASCII  Unicode  Binary Numbers  Gray Code  Boolean Values  Digitised Sound  Bit-mapped graphics / pixel

Analog data and analog signals Analog data Data that varies in a continuous manner E.g temperature Speech etc Analog signals An electrical signal that varies in a continuous manner E.g. electrical signals using a transducer (microphone) temp time

Digital data and digital signals Digital data Digital quantities vary in steps Analog quantities are sampled and become digital data: Digital Signals An electrical signal with voltage changes that are abrupt or in discreet steps HourTemp voltage interval

Sound- key terms Wavelength Sampling rate Frequency Interval Bit rate

Wavelength The wavelength is the distance between any point on one wave and the corresponding point on the next one; that is, the distance the wave travels in one cycle.

FrequencyFrequency * The frequency (f) is the number of waves, or vibrations, that pass a given point per second. (how many times per second the wave peaks) Frequency is measured in Hertz (Hz), where 1 Hz = 1 vibration/second

Amplitude The larger the amplitude, the louder the tone; the smaller the amplitude, the softer the tone. Loudness is measure in decibels. Smaller amplitude (A1) = softer sound Larger amplitude (A2) = louder sound

Digital Sound Digital Sound is represented in discreet steps – a binary pattern, so that the sound can be stored and processed by a computer Intervals: how often the sound is ‘sampled’ Amplitude: digital number representing height of wave amplitude interval

Converting Analogue to Digital SoundConverting Analogue to Digital Sound * Hardware needed to convert is : Analogue to Digital (A to D) converter to convert analogue to digital Digital to Analogue (D to A) converter to recreate sound wave Transforms wave form input to a digital from i.e. a binary pattern, so that it can be stored and processed

A-to-D Converter Analogue signals can be converted into digital form by using the variations in frequency (pitch) and the variation in amplitude (loudness) of the sound

A-to-D Converter and quantisation noise Height of analogue wave form can be sampled at regular spaced intervals, with the height being represented by say a 16 bit code Sampling resolution: Sampling resolution: The number of bits used to store one sound sample Sampling rateSampling rate: * the frequency at which samples are taken, the higher the sampling rate the more faithful the sound is represented

The conversion has three stages: Sampling of amplitude signals (PAM pulses) – sampling rate at least twice the highest frequency in the analog signal (Nyquist Theorem) Digitizing of the amplitude signals (PCM pulses) - PAM samples are quantised- the height of each PAM pulse is assigned a digital value. Encoding of the stream of bits. Each value is translated into e.g. a 7-bit number (8 th bit is sign)

Quantisation noise/error The difference between the original amplitude and its sampled value is known as quantisation noise. Quantisation error is due either to rounding or truncation

Sound Sampling

Sampled Sound and Nyquist’s TheoremNyquist’s Theorem Sampling at 1 time per cycle Sampling at 1.5 times per cycle Sampling at 2 times per cycle

Digital Audio Is typically created by taking 16-bit samples over a spectrum of 44.1 KHz. Stereo sound doubles the number of samples taken, with 44,100 samples per second taking 32 bits each. CD quality sound requires 1,4 million bits of data per second.

Sound Synthesis (sound generation) Sound can be generated using analogue or digital techniques Digital sound generation  Numbers representing sound waves are manipulated  Sampled sounds as well as pure tones and arithmetic operations are carried out on the bit patterns representing the sound

MIDI Musical Instrument Digital Interface Is a particular form of serial interface built into or added to the parts of an electronic music system  E.g. Microphone, electronic keyboard with MIDI It does not store sound waves but a digital representation of the notes to be played.

Streaming audio E.g. RealPlayer Streaming client receives the audio data – put into a buffer until it’s used. The client player reads the data from the buffer and plays it. As long as player is not trying to access data that hasn’t been received, the streaming is successful. Streaming avoids the need to download and store large files. It also prevents copying.

Factors that affect the quality of recorded sound 1) frequency range of the sound which is sampled/played back, The Loudness war*The Loudness war 2) the sample rate at which the sound is initially sampled in the recording process 3) the conversions that occur after sampling to reproduce the final digital sound (characterised by its bitrate) which gets played back.

File formats WAV format – supported by Windows. 1 minute requires 2.5Mb of disk space MPEG (Mp2, mpa, mp3, mp4) – is a compression algorithm. It removes frequencies that the brain and ear will not miss (psychoacoustic). 1 minute MP3 requires.25Mb

Example Analog signal of frequency 1,000 Hz is converted to PCM digital signal by sampling at a frequency of 2,000Hz (2000 samples per second). Each sample uses 8 bits. How many Bytes are required for the PCM-coded result if recording 10 seconds of analog signal?

Answer Sampling frequency of 2,000 Hz means 2,000 samples are taken per second. In 10 seconds this is 20,000 samples. One byte per sample Therefore 20,000 bytes of storage needed

Activity - In pairs Each group creates 2 questions on topic with a marking scheme Question to the rest of the class