School of Informatics CG087 Time-based Multimedia Assets Sampling & SequencingDr Paul Vickers1 Sampling & Sequencing Combining MIDI and audio.

Slides:



Advertisements
Similar presentations
Analog Representations of Sound Magnified phonograph grooves, viewed from above: When viewed from the side, channel 1 goes up and down, and channel 2 goes.
Advertisements

Sound can make multimedia presentations dynamic and interesting.
Dale & Lewis Chapter 3 Data Representation Analog and digital information The real world is continuous and finite, data on computers are finite  need.
From Sound to Music CSC 161: The Art of Programming Prof. Henry Kautz 11/16/2009.
Int 2 Multimedia Revision. Digitised Sound Analogue sound recorded from person, or real instruments.
Eee116j1 1 Digital Information Engineering Science EEE116J1 Prof Paul Maguire w.
The Illinois Society of Electroneurodiagnostic Technologists (ISET) Fall Meeting: Electronics Crash Course for Technologists Saturday, November 9, 2013.
Analog to Digital Conversion of Sound Adam White.
Motivation Application driven -- VoD, Information on Demand (WWW), education, telemedicine, videoconference, videophone Storage capacity Large capacity.
SIMS-201 Characteristics of Audio Signals Sampling of Audio Signals Introduction to Audio Information.
IT-101 Section 001 Lecture #8 Introduction to Information Technology.
CHAPTER 5 Discrete Sampling and Analysis of Time-Varying Signals Analog recording systems, which can record signals continuously in time, digital data-acquisition.
Storey: Electrical & Electronic Systems © Pearson Education Limited 2004 OHT 26.1 Data Acquisition and Conversion  Introduction  Sampling  Signal Reconstruction.
Discussion #25 – ADCECEN 3011 Conversion Mosiah 5:2 2 And they all cried with one voice, saying: Yea, we believe all the words which though has spoken.
CEN352, Dr. Ghulam Muhammad King Saud University
SCA Introduction to Multimedia
1 Digitisation Conversion of a continuous electrical signal to a digitally sampled signal Analog-to-Digital Converter (ADC) Sampling rate/frequency, e.g.
5. Multimedia Data. 2 Multimedia Data Representation  Digital Audio  Sampling/Digitisation  Compression (Details of Compression algorithms – following.
Fundamentals of Digital Audio. The Central Problem n Waves in nature, including sound waves, are continuous: Between any two points on the curve, no matter.
Sampling Theory. Time domain Present a recurring phenomena as amplitude vs. time  Sine Wave.
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.
 Principles of Digital Audio. Analog Audio  3 Characteristics of analog audio signals: 1. Continuous signal – single repetitive waveform 2. Infinite.
MDIA 308 Digital technologies. Converting analog to digital ADC – analog to digital conversion An analog voltage is converted in binary code Binary =
Digital Data Patrice Koehl Computer Science UC Davis.
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.
Thursday 27 th September. Periods Music Technology A2.
LE 460 L Acoustics and Experimental Phonetics L-13
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?
Computer Science 121 Scientific Computing Winter 2014 Chapter 13 Sounds and Signals.
Fall 2004EE 3563 Digital Systems Design Audio Basics  Analog to Digital Conversion  Sampling Rate  Quantization  Aliasing  Digital to Analog Conversion.
Digital Sound and Video Chapter 10, Exploring the Digital Domain.
Key terms Sampling rate – how often we read the value of the signal Resolution – the separation between “levels” for our samples (can we read the value.
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.
Data Communications & Computer Networks, Second Edition1 Chapter 2 Fundamentals of Data and Signals.
COMP Representing Sound in a ComputerSound Course book - pages
CSC361/661 Digital Media Spring 2002
Computer Some basic concepts. Binary number Why binary? Look at a decimal number: 3511 Look at a binary number: 1011 counting decimal binary
Announcements Chapter 11 for today No quiz this week Instructor got behind…. We'll be back in MGH389 on Friday.
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.
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.
Modication by tuti 1 LECTURE 7 THE USES OF DIGITAL AUDIO IN MULTIMEDIA.
Overview of Multimedia A multimedia presentation might contain: –Text –Animation –Digital Sound Effects –Voices –Video Clips –Photographic Stills –Music.
Chapter 3. Lesson Objectives Equations Chapter
Introduction to SOUND.
More Meaningful Jargon Or, All You Need to Know to Speak Like a Geek Sound.
1 Introduction to Information Technology LECTURE 6 AUDIO AS INFORMATION IT 101 – Section 3 Spring, 2005.
Digital Recording. Digital recording is different from analog in that it doesn’t operate in a continuous way; it breaks a continuously varying waveform.
V. Rouillard  Introduction to measurement and statistical analysis DIGITAL SAMPLING - DIGITISATION Digital sampling is mainly used in data acquisition.
Analogue & Digital. Analogue Sound Storage Devices.
Sound and Digital Sound v © Allan C. Milne Abertay University.
Digital Audio. Acknowledgement Some part of this lecture note has been taken from multimedia course made by Asst.Prof.Dr. William Bares and from Paul.
CSCI-100 Introduction to Computing Hardware Part II.
Multimedia Sound. What is Sound? Sound, sound wave, acoustics Sound is a continuous wave that travels through a medium Sound wave: energy causes disturbance.
Lecture 2 Analog to digital conversion & Basic discrete signals.
1 What is Multimedia? Multimedia can have a many definitions Multimedia means that computer information can be represented through media types: – Text.
Fundamentals of Audio Production. Chapter 3 1 Fundamentals of Audio Production Chapter Three: Digital Audio.
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.
DATA REPRESENTATION: SOUNDS GCSE Computing. Learning Objective ■ To understand how sounds are represented in Binary ■ To be able to convert a sound wave.
Multimedia: Digitised Sound Data
Lesson Objectives Explain how sound can be sampled and stored in digital form Explain how sampling intervals and other considerations affect the size of.
Multimedia Systems and Applications
Introduction to Multimedia
COMS 161 Introduction to Computing
CEN352, Dr. Ghulam Muhammad King Saud University
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.
Digital Audio Application of Digital Audio - Selected Examples
Presentation transcript:

School of Informatics CG087 Time-based Multimedia Assets Sampling & SequencingDr Paul Vickers1 Sampling & Sequencing Combining MIDI and audio

CG087 Time-based Multimedia Assets School of Informatics Sampling & SequencingDr Paul Vickers2 Introduction To create audio assets we often want to combine MIDI data with audio How to combine multiple audio assets to create a single artefact? How to add in MIDI which is not an audio format? –Need to convert synth output to audio We will use a special program called a sequencer –Like a multi-track tape recorder it allows us to build up songs/tracks from component parts

CG087 Time-based Multimedia Assets School of Informatics Sampling & SequencingDr Paul Vickers3 Recording sound First we need to revisit some audio principles Recall that all sounds are made up of one or more sinusoidal components The sound waves are continually varying analogue signals We can record to analogue tape using a microphone But how do we get sounds into a digital computer?

CG087 Time-based Multimedia Assets School of Informatics Sampling & SequencingDr Paul Vickers4 Sampling The conversion of an analogue audio signal into a digital one is called sampling Analogous to a movie camera running at 30 fps –Analogue-to-digital Converter (ADC) presented with continually varying analogue signal –Signal is inspected/sampled at regular intervals and the signal’s voltage converted to a binary value –Sound reproduced by sending binary values (samples) to a DAC

CG087 Time-based Multimedia Assets School of Informatics Sampling & SequencingDr Paul Vickers5 An ADC

CG087 Time-based Multimedia Assets School of Informatics Sampling & SequencingDr Paul Vickers6 Sampling illustration 528 Hz signal Sampled at 6 KHz Notice the points at which the signal is sampled

CG087 Time-based Multimedia Assets School of Informatics Sampling & SequencingDr Paul Vickers7 Under sampling & aliasing Sampling rate too low Result not accurate Results in aliasing

CG087 Time-based Multimedia Assets School of Informatics Sampling & SequencingDr Paul Vickers8 Aliasing When unwanted artefacts introduced into the signal as a result of too low a sample rate Think of a wagon wheel in a western film –the spokes appear to move backwards –Frame rate = 30 fps –If wheels turning at <= 15 rpm, then spokes move forward, otherwise they appear to move slowly backwards

CG087 Time-based Multimedia Assets School of Informatics Sampling & SequencingDr Paul Vickers9 Nyquist’s theorem What is the minimum sampling rate that can faithfully reproduce a signal? Nyquist’s theorem shows min rate to be twice the highest frequency component of the signal Human ear works in range 20 Hz - 20 KHz, therefore, sample rate should be 40 KHz CD system uses 44.1 KHz to get round problems with filter around 20 KHz

CG087 Time-based Multimedia Assets School of Informatics Sampling & SequencingDr Paul Vickers10 Dynamic range CD system uses 16 bit sampling, meaning the amplitude of input can be divided into 65,536 discrete values What happens if you use lower resolutions (say, 8 bits) to save space? –8 bit resolution gives 256 quantisation values Resolution determines dynamic range –The range of quietest to loudest sounds –Large the DR, greater your amplitude range, or greater difference between loudest & softest sounds

CG087 Time-based Multimedia Assets School of Informatics Sampling & SequencingDr Paul Vickers11 Kb requirements for sampling formats

CG087 Time-based Multimedia Assets School of Informatics Sampling & SequencingDr Paul Vickers12 Combining audio assets When combining audio assets, need to know about their sample rates to ensure proper results Playing back a KHz sample at 44.1 KHz will cause it to play twice as fast (and at double the pitch) –Like playing a 33 rpm record at 45 rpm –Remember the confusion when 12” singles first came out? You will need to resample

CG087 Time-based Multimedia Assets School of Informatics Sampling & SequencingDr Paul Vickers13 Resampling DOP will only accept audio files in , 22.05, & 44.1 KHz formats If you have a 16 KHz file you need to resample it –If you import it into DOP it will be converted to KHz without resampling meaning it will sound slower. Resampling involves re-recording a file as if it were a live source. You can resample at any sample rate you like using Cool Edit Pro

CG087 Time-based Multimedia Assets School of Informatics Sampling & SequencingDr Paul Vickers14 Sequencing The assembling of audio assets along a timeline to create a composition Usually you separate your composition into tracks –e.g. track for bird sounds, another for drum loops, another for vocals, etc. Sequencers like DOP, Cubase, etc. allow you to mix audio tracks with MIDI tracks –Though the whole thing eventually needs to be turned into a single audio file

CG087 Time-based Multimedia Assets School of Informatics Sampling & SequencingDr Paul Vickers15 Example “Jingle” in DOP See MIDI & audio tracks

CG087 Time-based Multimedia Assets School of Informatics Sampling & SequencingDr Paul Vickers16 Issues Need to consider pitch and tempo of sources Pitch shifting & time stretching audio is computationally expensive and results aren’t always acceptable Big tempo changes in MIDI can sound awful Pitch shifting MIDI data is simple Editing MIDI data simple. Audio is harder to edit

CG087 Time-based Multimedia Assets School of Informatics Sampling & SequencingDr Paul Vickers17 Pitch shifting examples (files on Blackboard) Original file - C Mutes.mp3 Pitch shifted –A Mutes –D Mutes –E Mutes Notice that durations remain the same Now listen to C Mutes Octave –Shift range too big –Doesn’t sound realistic

CG087 Time-based Multimedia Assets School of Informatics Sampling & SequencingDr Paul Vickers18 Time stretching Original file –Bongo fills 125 bpm (mono).mp3 Slowed down version –Bongo fills 104 bpm (mono).mp3

CG087 Time-based Multimedia Assets School of Informatics Sampling & SequencingDr Paul Vickers19 Other technologies Java Media Framework Beatnik Audio Engine and the eXtensible Music Format Jsyn (Java audio synthesis) at