Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 7: Latency + Additive Synth Ken Greenebaum.

Slides:



Advertisements
Similar presentations
Introduction to Sequences. The Real Number System/Sequences of Real Numbers/Introduction to Sequences by Mika Seppälä Sequences Definition A sequence.
Advertisements

Module 2 Modal Analysis ANSYS Dynamics.
Copyright 2001, Agrawal & BushnellVLSI Test: Lecture 181 Lecture 18 DSP-Based Analog Circuit Testing  Definitions  Unit Test Period (UTP)  Correlation.
From Sound to Music CSC 161: The Art of Programming Prof. Henry Kautz 11/16/2009.
Physics 12 Source: Giancoli Chapters 11 and 12
Pure Tones and the Sine Wave
Physics 1251 The Science and Technology of Musical Sound Unit 1 Session 9 Transients and Resonances Unit 1 Session 9 Transients and Resonances.
EE Audio Signals and Systems Psychoacoustics (Pitch) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Chapter 7 Principles of Analog Synthesis and Voltage Control Contents Understanding Musical Sound Electronic Sound Generation Voltage Control Fundamentals.
SIMS-201 Characteristics of Audio Signals Sampling of Audio Signals Introduction to Audio Information.
IT-101 Section 001 Lecture #8 Introduction to Information Technology.
9.2 Musical Instruments. New Ideas for today Sound and waves Pitch String and wind instruments.
PH 105 Dr. Cecilia Vogel Lecture 19. OUTLINE  PERCUSSION  Membrane vibrations  Labeling convention  plates  bells  bars  Indefinite pitch.
EE2F2 - Music Technology 11. Physical Modelling Introduction Some ‘expressive instruments don’t sound very convincing when sampled Examples: wind or.
Chapter 13 Vibrations and Waves.  When x is positive, F is negative ;  When at equilibrium (x=0), F = 0 ;  When x is negative, F is positive ; Hooke’s.
7/5/20141FCI. Prof. Nabila M. Hassan Faculty of Computer and Information Fayoum University 2013/2014 7/5/20142FCI.
Copyright © 2008 Pearson Education Inc., publishing as Pearson Addison-Wesley PowerPoint ® Lectures for University Physics, Twelfth Edition – Hugh D. Young.
Human Psychoacoustics shows ‘tuning’ for frequencies of speech If a tree falls in the forest and no one is there to hear it, will it make a sound?
EE513 Audio Signals and Systems Noise Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Harmonics, Timbre & The Frequency Domain
LOOK 8/19/2015Theatre Arts 1(T) Sound: Properties and Functions Theatre Arts 1(T)
Physics and Sound Zhimin & Dave. Motivation Physical simulation Games Movies Special effects.
infinity-project.org Engineering education for today’s classroom 53 Design Problem - Digital Band Build a digital system that can create music of any.
GCT731 Fall 2014 Topics in Music Technology - Music Information Retrieval Overview of MIR Systems Audio and Music Representations (Part 1) 1.
Lecture 1 Signals in the Time and Frequency Domains
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 17:Wavetable Synthesis Ken Greenebaum.
Sound barrier is the buildup of sound waves in front of an object moving near the speed of sound. Sonic boom is created when an object breaks the sound.
Beats and Tuning Pitch recognition Physics of Music PHY103.
Synthesis advanced techniques. Other modules Synthesis would be fairly dull if we were limited to mixing together and filtering a few standard waveforms.
Multimedia Specification Design and Production 2013 / Semester 2 / week 3 Lecturer: Dr. Nikos Gazepidis
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 23:Physical Modeling III/ambience Ken Greenebaum.
Module 2 SPECTRAL ANALYSIS OF COMMUNICATION SIGNAL.
Wireless and Mobile Computing Transmission Fundamentals Lecture 2.
Sound Waves Sound waves are divided into three categories that cover different frequency ranges Audible waves lie within the range of sensitivity of the.
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 11: Modulation Ken Greenebaum.
Copyright © 2011 by Denny Lin1 Computer Music Synthesis Chapter 6 Based on “Excerpt from Designing Sound” by Andy Farnell Slides by Denny Lin.
Fundamentals of Audio Production. Chapter 1 1 Fundamentals of Audio Production Chapter One: The Nature of Sound.
Chapter 5 Pitch: The Simplest Musical Implication of Characteristic Oscillations.
1 Introduction to Information Technology LECTURE 6 AUDIO AS INFORMATION IT 101 – Section 3 Spring, 2005.
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 6: Wrapped I/O Ken Greenebaum.
Lecture 11 (end of) Fourier Transforms Remember Phils Problems and your notes = everything Today Finish Fourier.
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 18:Noise Ken Greenebaum.
Physics 1251 The Science and Technology of Musical Sound Unit 1 Session 7 Good Vibrations Unit 1 Session 7 Good Vibrations.
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.
1 1 bd Systems, Inc. Advanced Technology Division Waveform Reconstruction via Wavelets October 2005 Revision B bd Systems, Inc. Advanced Technology Division.
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 22:Physical Modeling II Ken Greenebaum.
Introduction to psycho-acoustics: Some basic auditory attributes For audio demonstrations, click on any loudspeaker icons you see....
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 9: Panning/Balance Ken Greenebaum.
Percussion Instruments
Chapter 15 Sound What is Sound? a pressure disturbance
1/27/2016Tech I Lighting Unit1 Sound: Properties and Functions Technical Theatre I.
Copyright © 2008 Pearson Education Inc., publishing as Pearson Addison-Wesley PowerPoint ® Lectures for University Physics, Twelfth Edition – Hugh D. Young.
Pitch What is pitch? Pitch (as well as loudness) is a subjective characteristic of sound Some listeners even assign pitch differently depending upon whether.
Stationary Waves Stationary waves are produced by superposition of two progressive waves.
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 4: Interfaces Ken Greenebaum.
Time Compression/Expansion Independent of Pitch. Listening Dies Irae from Requiem, by Michel Chion (1973)
Applied Psychoacoustics Lecture 4: Pitch & Timbre Perception Jonas Braasch.
3.3 Waves and Stuff Science of Music 2007 Last Time  Dr. Koons talked about consonance and beats.  Let’s take a quick look & listen at what this means.
LIGO-G9900XX-00-M DMT Monitor Verification with Simulated Data John Zweizig LIGO/Caltech.
FCI. Faculty of Computer and Information Fayoum University FCI.
Unit 6 Part 2: Simple Harmonic Motion Book Section 10.2.
Measurement and Instrumentation
Pitch What is pitch? Pitch (as well as loudness) is a subjective characteristic of sound Some listeners even assign pitch differently depending upon whether.
CS 591 S1 – Computational Audio -- Spring, 2017
Pitch What is pitch? Pitch (as well as loudness) is a subjective characteristic of sound Some listeners even assign pitch differently depending upon whether.
Hearing Biomechanics Standing waves.
Active Figure 18.4 The superposition of two identical waves y1 and y2 (blue and green) to yield a resultant wave (red). (a) When y1 and y2 are in phase,
Review Section I.
Presentation transcript:

Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 7: Latency + Additive Synth Ken Greenebaum

Copyright 2004 Ken Greenebaum Assignments Picking up complexities/subtleties Picking up complexities/subtleties Math Math Data structures Data structures Algorithms Algorithms Aesthetics Aesthetics Opportunities for creativity Opportunities for creativity

Copyright 2004 Ken Greenebaum Assignment 3a: Partials synthesizer Sum of exponentially decaying sinusoids Sum of exponentially decaying sinusoids G(t) = Σ n Φ n e -δ n t cos(ω n t) G(t) = Σ n Φ n e -δ n t cos(ω n t) G(t) waveform over time G(t) waveform over time Φ n (phi) Initial Amplitude Φ n (phi) Initial Amplitude δ n (delta) Damping Constant δ n (delta) Damping Constant ω n (omega) Frequency of partial n ω n (omega) Frequency of partial n

Copyright 2004 Ken Greenebaum Assignment 3a: Partials synthesizer Name partials.c Name partials.c Input (stdin) Input (stdin) List of floating point, ASCII, parameters List of floating point, ASCII, parameters Lines of the form Lines of the form Φ 1 δ 1 ω 1 Φ 1 δ 1 ω 1 Φ 2 δ 2 ω 2 Φ 2 δ 2 ω 2 EOF EOF

Copyright 2004 Ken Greenebaum Assignment 3a: Partials synthesizer Output (PABLIO) Output (PABLIO) Sum of partials Sum of partials 48000Hz Frame Rate 48000Hz Frame Rate

Copyright 2004 Ken Greenebaum Assignment 3a: Partials synthesizer Challenges Challenges Synthesizing variable number of partials Synthesizing variable number of partials Adding partials with minimal clipping Adding partials with minimal clipping Halting program after energy dies out Halting program after energy dies out

Copyright 2004 Ken Greenebaum Assignment 3a: Partials synthesizer Hint: Synth variable number of partials Hint: Synth variable number of partials Parse input into data structure Parse input into data structure Traverse data structure for each sample Traverse data structure for each sample Hint: Adding partials with minimal clipping Hint: Adding partials with minimal clipping Halting program after energy dies out Halting program after energy dies out

Copyright 2004 Ken Greenebaum Assignment 3a: Partials synthesizer Hint: Adding partials with minimal clipping Hint: Adding partials with minimal clipping Scale each accordingly Scale each accordingly Beware: no partial is normalized Beware: no partial is normalized Partials loose energy quickly but at diff rates Partials loose energy quickly but at diff rates Most partials will start with < max power Most partials will start with < max power

Copyright 2004 Ken Greenebaum Assignment 3a: Partials synthesizer Hint: Halting program after energy dies out Hint: Halting program after energy dies out Partials will trend to zero over time Partials will trend to zero over time Program may be halted when output Program may be halted when output Is within epsilon of zero Is within epsilon of zero Ultimately < JND of silence! Ultimately < JND of silence! For an extended number of samples For an extended number of samples

Copyright 2004 Ken Greenebaum Assignment 3a: Partials synthesizer Extra Hint: GNUPlot is your friend Extra Hint: GNUPlot is your friend You may use GNUPlot as a CAD You may use GNUPlot as a CAD Will help you understand the dynamics Will help you understand the dynamics

Copyright 2004 Ken Greenebaum Assignment 3b: Collision Named collision.c Named collision.c Takes 4 fp command line arguments Takes 4 fp command line arguments Length ( units) Length ( units) Solid/Hollowness (0-1) (1=Solid) Solid/Hollowness (0-1) (1=Solid) Metal/Woodenness (0-1) (1=Pine) Metal/Woodenness (0-1) (1=Pine) How hard struck (0-1) (0=missed, 1=max) How hard struck (0-1) (0=missed, 1=max)

Copyright 2004 Ken Greenebaum Assignment 3b: collision Output Output A list of partials for 3a! A list of partials for 3a!

Copyright 2004 Ken Greenebaum Assignment 3b: Collision Challenges Challenges No single correct solution No single correct solution

Copyright 2004 Ken Greenebaum Assignment 3 Collision and Partial must work together Collision and Partial must work together Example: Example: collision | partial collision | partial

Copyright 2004 Ken Greenebaum Assignment 3 Deliverables Makefile that builds collision.exe, partial.exe Makefile that builds collision.exe, partial.exe Should pickup PABLIO.h’s,.lib from c:\cs245 Should pickup PABLIO.h’s,.lib from c:\cs245 collision.c collision.c partial.c partial.c Data files Data files Collision data:.col Collision data:.col Partial data:.par Partial data:.par

Copyright 2004 Ken Greenebaum Assignment 3 Deliverables Makefile that builds collision.exe, partial.exe Makefile that builds collision.exe, partial.exe Should pickup PABLIO.h’s,.lib from c:\cs245 Should pickup PABLIO.h’s,.lib from c:\cs245 collision.c collision.c partial.c partial.c Partial, collision data files to generate Partial, collision data files to generate Chime.XXX Middle C wind chime Chime.XXX Middle C wind chime Liberty.XXX Liberty Bell Liberty.XXX Liberty Bell Bass.XXX Bass drum Bass.XXX Bass drum SolidDesk.XXX Fist on solid desk SolidDesk.XXX Fist on solid desk HollowDesk.XXX First on hollow desk HollowDesk.XXX First on hollow desk

Copyright 2004 Ken Greenebaum Collisions Bang Bang Why does it make a sound? Why does it make a sound? Why does it make this sound? Why does it make this sound?

Copyright 2004 Ken Greenebaum Collisions Bang2 Bang2 Why does it make a different sound? Why does it make a different sound?

Copyright 2004 Ken Greenebaum Collisions Bang (excite) physical object Bang (excite) physical object It resonates (vibrates) It resonates (vibrates) Re-radiates energy Re-radiates energy As sound (by moving air) As sound (by moving air) As heat (by internal friction) As heat (by internal friction)

Copyright 2004 Ken Greenebaum Collisions Different objects sound different when struck Different objects sound different when struck Due to different characteristics Due to different characteristics Physical Physical Geometry Geometry Termination Termination Composition Composition Internal friction Internal friction Rigidity Rigidity

Copyright 2004 Ken Greenebaum Collisions Same object will sound different when struck with different intensity Same object will sound different when struck with different intensity Different vibration modes excited Different vibration modes excited

Copyright 2004 Ken Greenebaum Collisions Vibration modes understood for Vibration modes understood for Strings Strings Bars Bars Round membranes Round membranes Square membranes (arrows pt to nodal lines) Square membranes (arrows pt to nodal lines)

Copyright 2004 Ken Greenebaum Collisions Vibration modes Vibration modes 1 st 12 modes of an ideal membrane 1 st 12 modes of an ideal membrane

Copyright 2004 Ken Greenebaum Collisions Physics of some idealized objects understood Physics of some idealized objects understood String String Bar Bar Membrane Membrane Square Square Round Round Boils down to an equation/algorithm Boils down to an equation/algorithm

Copyright 2004 Ken Greenebaum Collisions Can model non-idealized objects Can model non-idealized objects Using FEA Using FEA (Finite Element Analysis) (Finite Element Analysis) Can be very accurate Can be very accurate Used in civil engineering, etc. Used in civil engineering, etc. Computationally expensive Computationally expensive

Copyright 2004 Ken Greenebaum Collisions Can model non-ideal objects Can model non-ideal objects Real objects are non-ideal Real objects are non-ideal Most sound apps don’t require accuracy Most sound apps don’t require accuracy Less expensive/accurate methods appropriate Less expensive/accurate methods appropriate But some do when modeling: But some do when modeling: Symphony hall Symphony hall Supersonic jet Supersonic jet Ramjet Ramjet

Copyright 2004 Ken Greenebaum Collision Synthesiser Synth techniques good for different sounds Synth techniques good for different sounds Exponentially damped sinusoids Exponentially damped sinusoids Model strikes/collisions Model strikes/collisions

Copyright 2004 Ken Greenebaum Collision Synthesiser Parameters of sine terms Parameters of sine terms Damping Damping controls ringing controls ringing Frequency Frequency correspond to modes/harmonics correspond to modes/harmonics Amplitude Amplitude Corresponds to relative strength of harmonics Corresponds to relative strength of harmonics

Copyright 2004 Ken Greenebaum Collision Synthesiser Parameters parameters to collision synth Parameters parameters to collision synth Length of bar Length of bar Wood-Metal rank Wood-Metal rank Solid-Hollow rank Solid-Hollow rank HARD to generalize! HARD to generalize!

Copyright 2004 Ken Greenebaum Collision Synthesiser Parameters parameters to collision synth Parameters parameters to collision synth Length of bar Length of bar Controls the freq of the fundamental Controls the freq of the fundamental Wood-Metal rank Wood-Metal rank Influences the damping factor Influences the damping factor Meta/Glass rings Meta/Glass rings Wood is highly damped Wood is highly damped Influences the harmonics Influences the harmonics Solid-Hollow rank Solid-Hollow rank Influences the damping Influences the damping Influences the harmonics Influences the harmonics

Copyright 2004 Ken Greenebaum Collision Synthesizer Sum of exponentially decaying sinusoids Sum of exponentially decaying sinusoids G(t) = Σ n Φ n e -δ n t cos(ω n t) G(t) = Σ n Φ n e -δ n t cos(ω n t) G(t) Collision waveform over time G(t) Collision waveform over time Φ n (phi) Initial Amplitude Φ n (phi) Initial Amplitude Mallet hardness/Impact strength Mallet hardness/Impact strength δ n (delta) Damping Constant δ n (delta) Damping Constant Material Material ω n (omega) Frequency of partial n ω n (omega) Frequency of partial n Size/Configuration Size/Configuration

Copyright 2004 Ken Greenebaum Collision Synthesizer ω n partials based on material struck ω n partials based on material struck Strings are harmonic Strings are harmonic ω n = n ω 1 ω n = n ω 1 Solid plates are inharmonic Solid plates are inharmonic Random frequency shifts in harmonic pattern Random frequency shifts in harmonic pattern Solid bars Solid bars ω n = (2n + 1) 2/9 ω n = (2n + 1) 2/9 Rectangular resonators Rectangular resonators ω (p.q.r) = c/2 sqrt(p 2 /l 2 + q 2 /w 2 + r 2 /h 2 ) ω (p.q.r) = c/2 sqrt(p 2 /l 2 + q 2 /w 2 + r 2 /h 2 ) c = velocity of sound c = velocity of sound l,w,h = length, width, height of box l,w,h = length, width, height of box

Copyright 2004 Ken Greenebaum Perceivable Auditory Latencies Latency: Latency: Time between human input and resulting computer output Time between human input and resulting computer output

Copyright 2004 Ken Greenebaum Perceivable Auditory Latencies Latency is a fact of life/physics Latency is a fact of life/physics Need to commute to work Need to commute to work Can’t just jump to the weekend Can’t just jump to the weekend Have to wait through this class to get to lunch Have to wait through this class to get to lunch

Copyright 2004 Ken Greenebaum Perceivable Auditory Latencies Commute Latency Strategies Commute Latency Strategies Leave for work earlier Leave for work earlier Work from home Work from home Listen to Books on tape in car Listen to Books on tape in car Might not eliminate latency but Might not eliminate latency but Make it useful Make it useful Tolerable Tolerable Not noticeable Not noticeable

Copyright 2004 Ken Greenebaum Perceivable Auditory Latencies Some latency can be beneficial Some latency can be beneficial Work may be performed while waiting Work may be performed while waiting Can get ready for the next activity Can get ready for the next activity The delay might be relaxing The delay might be relaxing

Copyright 2004 Ken Greenebaum Perceivable Auditory Latencies Keys: Keys: Understanding perception Understanding perception Designing systems to: Designing systems to: Make latency undetectable Make latency undetectable Mask latency Mask latency

Copyright 2004 Ken Greenebaum Perceivable Auditory Latencies Design tradeoffs (typically) Design tradeoffs (typically) More latency More latency More robustness More robustness Higher quality rendering Higher quality rendering Less latency Less latency More interactive More interactive

Copyright 2004 Ken Greenebaum Perceivable Auditory Latencies Human perception of Audio latency Human perception of Audio latency Measured long ago Measured long ago Research not commonly known Research not commonly known Figures difficult to come by Figures difficult to come by

Copyright 2004 Ken Greenebaum Perceivable Auditory Latencies Ken’s hypothesis: Ken’s hypothesis: Humans are edge detectors Humans are edge detectors

Copyright 2004 Ken Greenebaum Perceivable Auditory Latencies Interaural time difference Interaural time difference ≈10 μS (microseconds) ≈10 μS (microseconds) (CD sample time 22.7 μS) (CD sample time 22.7 μS) dt

Copyright 2004 Ken Greenebaum Perceivable Auditory Latencies Three edge phenomena: Three edge phenomena: Separation between clicks Separation between clicks Gap in continuous signal Gap in continuous signal Variation in duration of signal Variation in duration of signal Similar levels of acuity ≈ 2ms (milli seconds) Similar levels of acuity ≈ 2ms (milli seconds)

Copyright 2004 Ken Greenebaum Perceivable Auditory Latencies Separation between clicks Separation between clicks dt Clicks

Copyright 2004 Ken Greenebaum Perceivable Auditory Latencies Gap in continuous signal Gap in continuous signal Gaps dt

Copyright 2004 Ken Greenebaum Perceivable Auditory Latencies Variation in duration of signal Variation in duration of signal Duration dt

Copyright 2004 Ken Greenebaum Perceivable Auditory Latencies Precedence effect Precedence effect Two separate events perceived as one Two separate events perceived as one 5-50ms depending on stimulus (click easiest) 5-50ms depending on stimulus (click easiest) dt

Copyright 2004 Ken Greenebaum Optional Readings: Perry Cook : Real Sound Synthesis Perry Cook : Real Sound Synthesis Pgs Pgs Rossing & Fletcher : Principles of Vibration and Sound Rossing & Fletcher : Principles of Vibration and Sound Berg & Stork: The Physics of Sound Berg & Stork: The Physics of Sound

Copyright 2004 Ken Greenebaum Next class: Additive Synthesis Additive Synthesis Physical materials Physical materials Next assignment: Collision Synth Next assignment: Collision Synth