Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 9: Panning/Balance Ken Greenebaum.

Slides:



Advertisements
Similar presentations
MUSC1010 – WEEK 3 Adobe Audition. Mixing Waves and Phase Figure 1 - Two simple waves in phase Figure 2 - Two simple waves out of phase Figure 3 - two.
Advertisements

SWE 423: Multimedia Systems Chapter 3: Audio Technology (2)
Speech Compression. Introduction Use of multimedia in personal computers Requirement of more disk space Also telephone system requires compression Topics.
What makes a musical sound? Pitch n Hz * 2 = n + an octave n Hz * ( …) = n + a semitone The 12-note equal-tempered chromatic scale is customary,
Graphing Sine and Cosine. Video Graphing Calculator Mode— Radians Par Simul Window— –X min = -1 –X max = 2  –X scale =  /2 Window— –Y min = -3 –Y max.
EE2F2 - Music Technology 9. Additive Synthesis & Digital Techniques.
Improvement of Audio Capture in Handheld Devices through Digital Filtering Problem Microphones in handheld devices are of low quality to reduce cost. This.
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 2: Fundamentals Ken Greenebaum.
Hearing Detection Loudness Localization Scene Analysis Music Speech.
Properties of Sound EQ: How does intensity, loudness, frequency and pitch affect sound waves?
Resident Physics Lectures
SIMS-201 Characteristics of Audio Signals Sampling of Audio Signals Introduction to Audio Information.
IT-101 Section 001 Lecture #8 Introduction to Information Technology.
Back to Stereo: Stereo Imaging and Mic Techniques Huber, Ch. 4 Eargle, Ch. 11, 12.
Hospital Physics Group
Exam and Assignment Dates Midterm 1 Feb 3 rd and 4 th Midterm 2 March 9 th and 10 th Final April 20 th and 21 st Idea journal assignment is due on last.
Graphs of Trig Functions
Distributed constants Lumped constants are inadequate models of extended circuit elements at high frequency. Examples are telephone lines, guitar strings,
Copyright © 2007, Pearson Education, Inc., Publishing as Pearson Addison-Wesley. The wave model Sinusoidal waves Sound and light waves Energy & Intensity.
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
3-D Spatialization and Localization and Simulated Surround Sound with Headphones Lucas O’Neil Brendan Cassidy.
Lecture of Norm Margolus. Physical Worlds Some regular spatial systems: –1. Programmable gate arrays at the atomic scale –2. Fundamental finite-state.
Fitting a Model to Data Reading: 15.1,
Implementing 3D Digital Sound In “Virtual Table Tennis” By Alexander Stevenson.
1 Manipulating Digital Audio. 2 Digital Manipulation  Extremely powerful manipulation techniques  Cut and paste  Filtering  Frequency domain manipulation.
Introduction to Wavelets
Aliasing and Anti-Aliasing Copyright Zachary Wartell, University of North Carolina at Charlotte, All Rights Reserved Revision: 10/24/2007 3:38:00 AM ©Zachary.
Copyright © 2009 Pearson Education, Inc. Lecture 1 – Waves & Sound a) Simple Harmonic Motion (SHM)
Binaural Sound Localization and Filtering By: Dan Hauer Advisor: Dr. Brian D. Huggins 6 December 2005.
Inputs to Signal Generation.vi: -Initial Distance (m) -Velocity (m/s) -Chirp Duration (s) -Sampling Info (Sampling Frequency, Window Size) -Original Signal.
Pro Tools 7 Session Secrets Chapter 5 Mixing in Pro Tools: Directing Audio Traffic.
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 17:Wavetable Synthesis Ken Greenebaum.
Chapter 21 Musical Sounds Noise Versus Music Pitch Pitch Loudness Loudness Quality Quality.
Synthesis advanced techniques. Other modules Synthesis would be fairly dull if we were limited to mixing together and filtering a few standard waveforms.
Acoustics/Psychoacoustics Huber Ch. 2 Sound and Hearing.
Coding No. 1  Seattle Pacific University Modulation Kevin Bolding Electrical Engineering Seattle Pacific University.
Monaural Input Channel An in-depth look at a single channel on the Mixing Console in the Main Stage.
Measuring sound intensity in decibel, dB Number of dB, decibel, dimensionless parameter - reference value, corresponding to threshold of sensitivity of.
Wireless and Mobile Computing Transmission Fundamentals Lecture 2.
The Care and Feeding of Loudness Models J. D. (jj) Johnston Chief Scientist Neural Audio Kirkland, Washington, USA.
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 11: Modulation Ken Greenebaum.
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.
Panning and Filters © Allan C. Milne Abertay University v
Properties of Sound Making Waves. Sound Waves ■Sound is created by vibrations.
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 24:Environment Ken Greenebaum.
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 6: Wrapped I/O Ken Greenebaum.
Reading Assignment! We’ll discuss the chapter by Gregory in your book on Thursday of next week.
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 18:Noise Ken Greenebaum.
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 14: Envelopes Ken Greenebaum.
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 20:Spectral Filtering Ken Greenebaum.
Chapter 21 Musical Sounds.
Intro-Sound-part1 Introduction to Processing Digital Sounds part 1 Barb Ericson Georgia Institute of Technology Oct 2009.
Microcomputer Systems Final Project “Speaker and Sound Modulation”
Digital Signal Processing
Sound “A sound man…”. Frequency The frequency of a sound wave is perceived as the pitch (note) –High frequency → high pitch → high note –“Middle C” has.
Digital Audio II. Volume Scaling The volume of a digitized audio source may be increased or decreased by multiplying each sample value by an appropriate.
Hearing Detection Loudness Localization Scene Analysis Music Speech.
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 4: Interfaces Ken Greenebaum.
Artifacts Ultrasound Physics George David, M.S.
1 CS 177 Week 7 Recitation Slides Modifying Sounds using Loops + Discussion of some Exam Questions.
SOUND PRESSURE, POWER AND LOUDNESS
Ultrasound Physics Image Formation ‘97. Real-time Scanning Each pulse generates one line Except for multiple focal zones frame one frame consists of many.
Ultrasound Physics Image Formation ‘97.
The Physics of Sound.
Ultrasound Physics Image Formation ‘97.
L6 and L7 Sound Intensity, Sound Level/Loudness (Decibels), The Ear
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Properties of Sound EQ: How does intensity, loudness, frequency and pitch affect sound waves?
3-D Sound and Spatial Audio
Properties of Sound EQ: How does intensity, loudness, frequency and pitch affect sound waves?
Presentation transcript:

Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 9: Panning/Balance Ken Greenebaum

Copyright 2004 Ken Greenebaum Sampling at 2f problematic Troubling: Troubling: sampling at exactly 2f sampling at exactly 2f can capture only zero crossings can capture only zero crossings

Copyright 2004 Ken Greenebaum Sampling at 2f problematic Should be problematic: Should be problematic: Shannon mandates: Shannon mandates: Signal of finite energy Signal of finite energy

Copyright 2004 Ken Greenebaum Sampling at 2f problematic Sine wave Sine wave Infinite extent Infinite extent Infinite energy Infinite energy Finite extent Finite extent Contains beginning/ending Contains beginning/ending Contains higher frequencies Contains higher frequencies

Copyright 2004 Ken Greenebaum Assignment 3B Collision Challenging/Creative Challenging/Creative Questions? Questions?

Copyright 2004 Ken Greenebaum Assignment 3B Collision Some people had difficulty Some people had difficulty This is OK This is OK Learn about audio challenges Learn about audio challenges Optional 3C for those individuals who want Optional 3C for those individuals who want Full experience Full experience Make up for lost credit on 3B Make up for lost credit on 3B

Copyright 2004 Ken Greenebaum 3B Collision Examples Examples Put.col,.par files on /pub Put.col,.par files on /pub

Copyright 2004 Ken Greenebaum Optional 3C GeneticCollision Parse.par file named on command line Parse.par file named on command line Generate (small) list of random partials Generate (small) list of random partials If no.par file provided If no.par file provided Play partials via popen() partial.exe Play partials via popen() partial.exe (programmatically open pipe) (programmatically open pipe)

Copyright 2004 Ken Greenebaum Optional 3C GeneticCollision while(1) while(1) Mutate current partial list twice Mutate current partial list twice Forming a, b mutations Forming a, b mutations Play a, b mutations Play a, b mutations Read char in raw mode Read char in raw mode (Hitting enter not required) (Hitting enter not required) Perform desired action Perform desired action

Copyright 2004 Ken Greenebaum Optional 3C GeneticCollision Commands: Commands: p: play/print current partials p: play/print current partials r: replay a,b mutations r: replay a,b mutations d: discard mutations and mutate current to form new a and b partials d: discard mutations and mutate current to form new a and b partials a: select mutation a as current + play it a: select mutation a as current + play it b: select mutation b as current + play it b: select mutation b as current + play it q: quit q: quit

Copyright 2004 Ken Greenebaum Optional 3C GeneticCollision Mutations: Mutations: Randomly change a parameter by a % Randomly change a parameter by a % Larger percentages less likely Larger percentages less likely Occasionally Occasionally copy a partial copy a partial Delete a partial from the list Delete a partial from the list

Copyright 2004 Ken Greenebaum Optional 3C GeneticCollision Iteratively select a or b mutations Iteratively select a or b mutations Attempting to evolve desired sound Attempting to evolve desired sound

Copyright 2004 Ken Greenebaum Optional 3C GeneticCollision For full credit turn in: For full credit turn in: geneticCollision.c, makefile geneticCollision.c, makefile 2.par files generated with program 2.par files generated with program Realistic sounds Realistic sounds Description of what the sounds are Description of what the sounds are Individual, not group extra credit Individual, not group extra credit

Copyright 2004 Ken Greenebaum Balance/Pan Methods to move audio energy Methods to move audio energy Forms of spatialization Forms of spatialization Making a sound appear to originate from a position in space Making a sound appear to originate from a position in space

Copyright 2004 Ken Greenebaum Spatialization techniques Will discuss in detail later in semmester Will discuss in detail later in semmester Simple overview of techniques: Simple overview of techniques: 2 speaker panning 2 speaker panning N speaker panning N speaker panning HRTF techniques HRTF techniques

Copyright 2004 Ken Greenebaum Balance Scale every right or left sample by R or L: Scale every right or left sample by R or L: R = (1 + Balance)/2 R = (1 + Balance)/2 L = 1 – R L = 1 – R Balance of: Balance of: -1 hard left -1 hard left 0 center 0 center 1 hard right 1 hard right

Copyright 2004 Ken Greenebaum Balance Left and right scaling for balance [-1,1] Left and right scaling for balance [-1,1]

Copyright 2004 Ken Greenebaum Digital volume issues Volume controls are meant to be turned Volume controls are meant to be turned Early digital volume controls sounded annoying Early digital volume controls sounded annoying Pop, pop, pop, pop Pop, pop, pop, pop Like a zipper! Like a zipper!

Copyright 2004 Ken Greenebaum Dezippering Every volume change imperceptible Every volume change imperceptible Every step less than JND threshold Every step less than JND threshold < 1 dB SPL < 1 dB SPL Two approaches Two approaches Control size of each step Control size of each step Make changes only at zero crossings Make changes only at zero crossings

Copyright 2004 Ken Greenebaum Issues with balance Poor for simulating position Poor for simulating position Perceived distance based on intensity Perceived distance based on intensity Not amplitude Not amplitude Intensity proportional to amplitude ^ 2 Intensity proportional to amplitude ^ 2 Intensity at midpoint Intensity at midpoint 0.5^ ^2 = ^ ^2 = 0.5 Intensity at far right or left Intensity at far right or left 1^2 + 0^2 = 1 1^2 + 0^2 = 1 Creating a 3dB “hole in the middle” Creating a 3dB “hole in the middle”

Copyright 2004 Ken Greenebaum Loudspeaker/apparent position Sound Source Listener  r 0  Azimuth  l

Copyright 2004 Ken Greenebaum Constant intensity panning Want intensity to be the same at any point Want intensity to be the same at any point Consider the trig identity: Consider the trig identity: Orthogonal speaker placement implies: Orthogonal speaker placement implies:

Copyright 2004 Ken Greenebaum Constant intensity panning Substituting we get: Substituting we get: Applying the identity: sin(  ) = cos(  +90  ) Applying the identity: sin(  ) = cos(  +90  )

Copyright 2004 Ken Greenebaum Constant intensity panning Eq. of gain curve: Eq. of gain curve: θ i angle between apparent source and speaker I θ i angle between apparent source and speaker I

Copyright 2004 Ken Greenebaum Constant intensity panning 1.707LeftRight Left speaker gain 0 Right speaker gain LeftRight

Copyright 2004 Ken Greenebaum Mixing non-spatialized sounds Assume Non-spatialized sounds come from the middle Assume Non-spatialized sounds come from the middle Gain = Gain = General n speaker case General n speaker case

Copyright 2004 Ken Greenebaum More spatialization to come We will return to spatialization later in semester and discuss We will return to spatialization later in semester and discuss Distance based attenuation Distance based attenuation Doppler Doppler Multiple speaker arrays Multiple speaker arrays Binaural sound/HRTFs Binaural sound/HRTFs

Copyright 2004 Ken Greenebaum Next class: Non-sinusoidal waves Non-sinusoidal waves Mixer assignment Mixer assignment