Echo Generation and Simulated Reverberation R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2003.

Slides:



Advertisements
Similar presentations
Time-Frequency Analysis Analyzing sounds as a sequence of frames
Advertisements

Non-recursive Comb Filter a z -m K K Ka t m samples impulse response f f = SR/m f 180 o   
Effects. Dynamic Range Processors Fixed Time Delay Effects Variable Time Delay Effects Reverberation Effects Time and Pitch Changing Effects Distortion.
Guitar Effects Processor Using DSP
Sound waves Pg. 45 in NB.
Foundations of Physics
3-D Sound and Spatial Audio MUS_TECH 348. Environmental Acoustics and Computational Simulation.
ELEC 407 DSP Project Algorithmic Reverberation – A Hybrid Approach Combining Moorer’s reverberator with simulated room IR reflection modeling Will McFarland.
SWE 423: Multimedia Systems Chapter 3: Audio Technology (1)
Faculty of Computers and Information Fayoum University 
Phys 250 Ch15 p1 Chapter 15: Waves and Sound Example: pulse on a string speed of pulse = wave speed = v depends upon tension T and inertia (mass per length.
FFT-based filtering and the Short-Time Fourier Transform (STFT) R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2003.
Sampling, Reconstruction, and Elementary Digital Filters R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
Implementation of Basic Digital Filter Structures R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2003.
Real Time DSP and the Motorola DSP Chip R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2003.
1 Manipulating Digital Audio. 2 Digital Manipulation  Extremely powerful manipulation techniques  Cut and paste  Filtering  Frequency domain manipulation.
Methods for Tone and Signal Synthesis R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
Oscillations 1. Different types of motion: Uniform motion 1D motion with constant acceleration Projectile motion Circular motion Oscillations 2. Different.
Harmonics and Overtones Waveforms / Wave Interaction Phase Concepts / Comb Filtering Beat Frequencies / Noise AUD202 Audio and Acoustics Theory.
So far: Historical overview of speech technology  basic components/goals for systems Quick review of DSP fundamentals Quick overview of pattern recognition.
Sound.
CELLULAR COMMUNICATIONS DSP Intro. Signals: quantization and sampling.
DSP Term Project By: Ashley Downs And Jeff Malen By: Ashley Downs And Jeff Malen.
Chapter 3: Sound Wave Intensity of Periodic Sound Waves
EE513 Audio Signals and Systems Noise Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
DSP. What is DSP? DSP: Digital Signal Processing---Using a digital process (e.g., a program running on a microprocessor) to modify a digital representation.
SOUND UNIT NOTES. The Nature of Sound Sound is a disturbance that travels through a medium as a longitudinal wave.
Sound Acoustics is the study of sound. All sounds are waves produced by vibrating objects - tuning forks, vocal chords, reeds, lips, columns of air, strings,
Waves.
Waves and Sound AP Physics 1. What is a wave A WAVE is a vibration or disturbance in space. A MEDIUM is the substance that all SOUND WAVES travel through.
EE Audio Signals and Systems Effects Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Fourier Concepts ES3 © 2001 KEDMI Scientific Computing. All Rights Reserved. Square wave example: V(t)= 4/  sin(t) + 4/3  sin(3t) + 4/5  sin(5t) +
Ch 16. Waves and Sound Transverse Wave Longitudinal Wave
Physics of Sound Part 1 Sound waves How they are generated and travel.
Characteristic Review and Propagation
Chapter 14 Waves and Sound
 1) Determine the wave speed of a wave that has a period of 3 minutes and a wavelength of 0.05 m.  2) How are electromagnetic and mechanical waves different?
University Physics: Waves and Electricity Ch17. Longitudinal Waves Lecture 4 Dr.-Ing. Erwin Sitompul
Audio Systems Survey of Methods for Modelling Sound Propagation in Interactive Virtual Environments Ben Tagger Andriana Machaira.
Chapter 16 Waves and Sound The Nature of Waves 1.A wave is a traveling disturbance. 2.A wave carries energy from place to place.
Sound 13-1 A “physical phenomenon that stimulates the sense of hearing.”
EE Audio Signals and Systems Room Acoustics Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Sound Waves Chapter 13. General Characteristics Longitudinal wave; requires elastic medium for propagation Series of compressions and rarefactions in.
Wave Characteristics and Speed. a traveling disturbance that carries energy through matter or space matter moves horizontally or vertically just a little,
Chapters 16, 17 Waves.
Periodic Motion Common Example: Pendulum Some elements of periodic motion we can describe –Oscillation or Cycle –Period, T –Frequency, f –Amplitude, A.
Effects. Effects in Music n All music that is recorded or amplified relies on effects to enhance certain characteristics of the sound. n Guitarists typically.
Automatic Equalization for Live Venue Sound Systems Damien Dooley, Final Year ECE Progress To Date, Monday 21 st January 2008.
Automatic Equalization for Live Venue Sound Systems Damien Dooley, Final Year ECE Initial Presentation, Tuesday 2 nd October 2007.
SPH3U: Waves & Sound Wave Speed & Sound. The Universal Wave Equation Recall that the frequency of a wave is the number of complete cycles that pass a.
2 pt 3 pt 4 pt 5pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt 2pt 3 pt 4pt 5 pt 1pt 2pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4pt 5 pt 1 pt Waves 1 Waves 2SoundLightMisc.
Time Based Processors. Reverb source:
Sound and Hearing. Basic Facts Longitudinal wave Audible range (human): 20Hz – 20,000Hz.
ARCHITECTURAL ACOUSTICS
Consider the possible standing waves that could exist on a 6.00-m long stretched rope (fixed at both ends). a. What is the wavelength of the fourth harmonic.
Physics Mrs. Dimler SOUND.  Every sound wave begins with a vibrating object, such as the vibrating prong of a tuning fork. Tuning fork and air molecules.
Sound and LightSection 1 Properties of Sound 〉 What are the characteristics of sound waves? 〉 Sound waves are caused by vibrations and carry energy through.
Chapter The Nature of Waves 1.A wave is a traveling disturbance. 2.A wave carries energy from place to place.
Interference and beats Pg. 47. Objectives Investigate and analyze characteristics of waves, including frequency and amplitude. Investigate and analyze.
Objective Sound and Psychoacoustics. Viers on Location Sound Gathering production sound Nat, b-roll, interview, dialog “Technique will trump technology”
Unit 12: Waves Waves.
Sound.
Lecture 11 WAVE.
Unit 12: Waves Waves.
Objective Sound and Psychoacoustics
Interference and beats
Unit 11: Waves Waves.
Basic Digital Audio Effects
Chapter 20 The Energy of Waves.
Unit 11: Waves Waves.
Presentation transcript:

Echo Generation and Simulated Reverberation R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2003

ECEN4002 Spring 2003Echo and Reverb R. C. Maher2 Recirculating Delay Line Recall that a simple delay FIFO (first-in, first-out) queue can be implemented using a modulo buffer Now, consider a recirculating buffer: + Delay Line (z -N ) k output can also be taken here

ECEN4002 Spring 2003Echo and Reverb R. C. Maher3 Recirculating Delay (cont.) + Delay Line (z -N ) k x[n]y[n] N poles equally spaced around circle (radius k 1/N )

ECEN4002 Spring 2003Echo and Reverb R. C. Maher4 Recirculating Delay (cont.) Example: unit sample response (N=8, k=0.8)

ECEN4002 Spring 2003Echo and Reverb R. C. Maher5 Recirculating Delay (cont.) Frequency response of system A “comb” filter

ECEN4002 Spring 2003Echo and Reverb R. C. Maher6 Echo Generator If length N is short, comb filter effect (audio coloration) is noticeable If length N corresponds to a time delay of 200ms or more, output perceived as an echo of the input Scaling of input is typically needed to prevent overflow

ECEN4002 Spring 2003Echo and Reverb R. C. Maher7 Acoustics Sound propagates through air as a longitudinal wave Speed of sound: –343 20°C (331 0°C) –About 1125 ft/s –About 1 ft/ms (light travels about 1 ft/ns) –About 5 seconds per mile Audible wavelengths: 1.7cm to 17m

ECEN4002 Spring 2003Echo and Reverb R. C. Maher8 Human Hearing Characteristics Frequency sensitivity roughly 20 Hz – 20kHz –3 decades, or 10 octaves –Compares to less than one octave for human visual system (wavelengths: 3800 – 7600 angstroms) Amplitude sensitivity roughly 20  Pa – 20Pa –Atmospheric pressure: 10 5 Pa –Minimum audible sound corresponds to motion a fraction of diameter of hydrogen atom! –Any better, and we would “hear” thermal noise Difference judgments good, absolute judgments poor

ECEN4002 Spring 2003Echo and Reverb R. C. Maher9 Acoustical Transfer Function Linear Time-Invariant (LTI) systems can be fully described by an impulse response Fourier Transform of the impulse response is the transfer function Acoustical path from a sound source to the listener’s ear is LTI, so we can describe the acoustical system with a transfer function

ECEN4002 Spring 2003Echo and Reverb R. C. Maher10 Reflections and Reverberation Direct sound arrival is followed by reflections from room surfaces Overlapping reflections are heard as reverberation Direct-to-Reverberant ratio gives cues to size of room, type of room surfaces, and distance from source

ECEN4002 Spring 2003Echo and Reverb R. C. Maher11 Direct Sound and Reflections Sound Source

ECEN4002 Spring 2003Echo and Reverb R. C. Maher12 Reverb Simulation Method 1: obtain impulse response of real room, then convolve with input signal –Results can be good, but computation and storage requirements are high: impulse response sequence for 3-5 seconds is ~200k Method 2: use recirculating delay lines to create an artificial impulse response –Less computation and storage, but tricky to get satisfactory sound quality

ECEN4002 Spring 2003Echo and Reverb R. C. Maher13 Reverb Simulation (cont.) For good reverb: –echo density (echoes per second) must increase as time goes on –response should be quasi-random (no spectral coloration) –high frequencies typically decay faster than low frequencies

ECEN4002 Spring 2003Echo and Reverb R. C. Maher14 Reverb Simulation (cont.) Plan: use parallel recirculating delay lines with incommensurate delays + Delay Line (z -N 1 ) k1k1 + + Delay Line (z -N 2 ) k2k2

ECEN4002 Spring 2003Echo and Reverb R. C. Maher15 Other Improvements Cascade of all pass recirculators + Delay Line (z -N ) k + -k N poles and zeroes equally spaced around circle (pole radius k 1/N, zero radius k -1/N )

ECEN4002 Spring 2003Echo and Reverb R. C. Maher16 Other Improvements (cont.) Add lowpass filter to feedback path: shortens high frequency reverb time: more like natural reverberation + Delay Line (z -N ) k LPF

ECEN4002 Spring 2003Echo and Reverb R. C. Maher17 EVM Note: External Memory To use external memory on EVM, need to program the bus control register and the address attribute register 0 (see Family Manual) movep #$040821,x:M_AAR0;Compare 8 most significant bits ;Look for a match with address ;Y: xxxx xxxx xxxx xxxx ;No pack, no mux, Y enabled ;P and X disabled ;AAR0 pin active low movep #$012421,x:M_BCR ;One ext. wait state Access to external memory is slower than internal memory: wait state stalls processor