Topic. Filters, Reverberation & Convolution THEY ARE ALL ONE

Similar documents
Topic. Spectrogram Chromagram Cesptrogram. Bryan Pardo, 2008, Northwestern University EECS 352: Machine Perception of Music and Audio

Topic 2. Signal Processing Review. (Some slides are adapted from Bryan Pardo s course slides on Machine Perception of Music)

Digital Filters IIR (& Their Corresponding Analog Filters) Week Date Lecture Title

Sistemas de Aquisição de Dados. Mestrado Integrado em Eng. Física Tecnológica 2016/17 Class 6, 31st October

Signals and Filtering

Discrete Fourier Transform, DFT Input: N time samples

Digital Filters FIR and IIR Systems

ECEGR Lab #8: Introduction to Simulink

Digital Signal Processing. VO Embedded Systems Engineering Armin Wasicek WS 2009/10

Lab 4 Digital Scope and Spectrum Analyzer

MATLAB for Audio Signal Processing. P. Professorson UT Arlington Night School

y(n)= Aa n u(n)+bu(n) b m sin(2πmt)= b 1 sin(2πt)+b 2 sin(4πt)+b 3 sin(6πt)+ m=1 x(t)= x = 2 ( b b b b

Lab 18 Delay Lines. m208w2014. Setup. Delay Lines

Hideo Okawara s Mixed Signal Lecture Series. DSP-Based Testing Fundamentals 14 FIR Filter

1. In the command window, type "help conv" and press [enter]. Read the information displayed.

Brief Introduction to Signals & Systems. Phani Chavali

Discrete-Time Signal Processing (DTSP) v14

STUDY OF ADAPTIVE SIGNAL PROCESSING

FFT analysis in practice

REAL-TIME PROCESSING ALGORITHMS

CG401 Advanced Signal Processing. Dr Stuart Lawson Room A330 Tel: January 2003

Filters. Signals are sequences of numbers. Simple algebraic operations on signals can perform useful functions: shifting multiplication addition

Biomedical Signals. Signals and Images in Medicine Dr Nabeel Anwar

CS3291: Digital Signal Processing

Implementation of Decimation Filter for Hearing Aid Application

Design of FIR Filters

Data Acquisition Systems. Signal DAQ System The Answer?

Laboratory Assignment 4. Fourier Sound Synthesis

DSP Laboratory (EELE 4110) Lab#10 Finite Impulse Response (FIR) Filters

Current and future developments in loudspeaker management systems

FIR/Convolution. Visulalizing the convolution sum. Frequency-Domain (Fast) Convolution

Signal Processing Summary

DIGITAL SIGNAL PROCESSING WITH VHDL

CMPT 468: Delay Effects

Experiment 6: Multirate Signal Processing

LECTURE 3 FILTERING OBJECTIVES CHAPTER 3 3-1

FIR Filter For Audio Practitioners

Microcomputer Systems 1. Introduction to DSP S

FIR/Convolution. Visulalizing the convolution sum. Convolution

Wireless PHY: Modulation and Demodulation

Outline. Discrete time signals. Impulse sampling z-transform Frequency response Stability INF4420. Jørgen Andreas Michaelsen Spring / 37 2 / 37

SIGNALS AND SYSTEMS LABORATORY 13: Digital Communication


Signals and Systems Lecture 6: Fourier Applications

Laboratory Assignment 1 Sampling Phenomena

Signal processing preliminaries

SMS045 - DSP Systems in Practice. Lab 1 - Filter Design and Evaluation in MATLAB Due date: Thursday Nov 13, 2003

Computer-Aided Design (CAD) of Recursive/Non-Recursive Filters

This tutorial describes the principles of 24-bit recording systems and clarifies some common mis-conceptions regarding these systems.

Digital Signal Processing for Audio Applications

THE NEXT GENERATION AIRBORNE DATA ACQUISITION SYSTEMS. PART 1 - ANTI-ALIASING FILTERS: CHOICES AND SOME LESSONS LEARNED

ECE503: Digital Filter Design Lecture 9

EECE 301 Signals & Systems Prof. Mark Fowler

McGraw-Hill Irwin DIGITAL SIGNAL PROCESSING. A Computer-Based Approach. Second Edition. Sanjit K. Mitra

Lecture 2 Review of Signals and Systems: Part 1. EE4900/EE6720 Digital Communications

SIGMA-DELTA CONVERTER

Cepstrum alanysis of speech signals

Chapter-2 SAMPLING PROCESS

Islamic University of Gaza. Faculty of Engineering Electrical Engineering Department Spring-2011

F I R Filter (Finite Impulse Response)

ROOM IMPULSE RESPONSES AS TEMPORAL AND SPATIAL FILTERS ABSTRACT INTRODUCTION

ELECTRONOTES APPLICATION NOTE NO Hanshaw Road Ithaca, NY August 3, 2017

TIMA Lab. Research Reports

Electrical & Computer Engineering Technology

INTRODUCTION TO COMPUTER MUSIC SAMPLING SYNTHESIS AND FILTERS. Professor of Computer Science, Art, and Music

Appendix B. Design Implementation Description For The Digital Frequency Demodulator

ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015

EE 311 February 13 and 15, 2019 Lecture 10

Biomedical Instrumentation B2. Dealing with noise

Final Exam Study Guide: Introduction to Computer Music Course Staff April 24, 2015

Gibb s Phenomenon Analysis on FIR Filter using Window Techniques


Corso di DATI e SEGNALI BIOMEDICI 1. Carmelina Ruggiero Laboratorio MedInfo

Live multi-track audio recording

Sampling and Reconstruction of Analog Signals

ECE 556 BASICS OF DIGITAL SPEECH PROCESSING. Assıst.Prof.Dr. Selma ÖZAYDIN Spring Term-2017 Lecture 2

Phase Correction System Using Delay, Phase Invert and an All-pass Filter

Fourier Series and Gibbs Phenomenon

Lecture 3 Review of Signals and Systems: Part 2. EE4900/EE6720 Digital Communications

Audio System Evaluation with Music Signals

FINITE IMPULSE RESPONSE (FIR) FILTERS

Discrete-time Signals & Systems

B.Tech III Year II Semester (R13) Regular & Supplementary Examinations May/June 2017 DIGITAL SIGNAL PROCESSING (Common to ECE and EIE)

Understanding the Behavior of Band-Pass Filter with Windows for Speech Signal

INFINITE IMPULSE RESPONSE (IIR) FILTERS

CHAPTER 2 FIR ARCHITECTURE FOR THE FILTER BANK OF SPEECH PROCESSOR

ece 429/529 digital signal processing robin n. strickland ece dept, university of arizona ECE 429/529 RNS

DSP Laboratory (EELE 4110) Lab#11 Implement FIR filters on TMS320C6711 DSK.

Digital Signal Processing ETI

Week 1 Introduction of Digital Signal Processing with the review of SMJE 2053 Circuits & Signals for Filter Design

AN2182 Application note

Realtime auralization employing time-invariant invariant convolver

Digital Signal Processing

Signals and Systems Lecture 6: Fourier Applications

ELT COMMUNICATION THEORY

Case study for voice amplification in a highly absorptive conference room using negative absorption tuning by the YAMAHA Active Field Control system

Moving from continuous- to discrete-time

DIGITAL SIGNAL PROCESSING FOR THE AUDITORY SCIENTIST: A TUTORIAL INTRODUCTION

Signals. Continuous valued or discrete valued Can the signal take any value or only discrete values?

Topic 6. The Digital Fourier Transform. (Based, in part, on The Scientist and Engineer's Guide to Digital Signal Processing by Steven Smith)

Transcription:

Topic Filters, Reverberation & Convolution THEY ARE ALL ONE

What is reverberation? Reverberation is made of echoes Echoes are delayed copies of the original sound In the physical world these are caused by reflections off of walls and other surfaces In the digital world, this is done with impulse response functions and convolution

Impulse response An impulse is this signal: δ () t 1 if t = 0 = 0 else -4-2 0 2 4 1 The impulse response h(t) of a filter is what happens when you do convolution of the impulse signal with the filter signal. The impulse response h(t) of a filter is the IFFT of the transfer function H(w) of that filter.

Example:1 tap delay

They are all ONE Reverb is filtering Filtering is convolution Convolution is reverb Bryan Pardo, 2008, Northwestern University EECS 352: Machine Perception of Music and Audio

Example: 5 tap delay

Acting as a low-pass filter The 5-tap delay makes 5 copies of the signal and sums them. You re summing multiple, slightly-offset copies. This causes high-frequency events to average out in the wash (low-pass filtering). What would happen if the copies are offset by the exact period of some frequency in the audio?

Note: Delay and filters The impulse response function of your filter has some length. That length determines how many samples go by before the filter s response becomes steady. Therefore, filtering imposes delays

Convolution = Filtering (in the time domain) Output Signal y(t) Filter h(t) Source Signal x(t) y(t) = h(t)* x(t) Impulse response function

Multiplication = Filtering (in the frequency domain) Output Signal y(t) Filter h(t) Source Signal x(t) Y(ω ) = H(ω )X (ω ) Transfer function

A room is a filter Carnegie Hall

Reverberant Rooms are louder (why?) make speech harder to understand (why?) may emphasize certain frequencies (why)?

Getting the impulse response Walk into a QUIET room with a recorder Turn on the recorder Clap your hands ONCE (this is your impulse) The recording captures the room s impulse response and other noise (air conditioner, etc.) Bryan Pardo, 2008, Northwestern University EECS 352: Machine Perception of Music and Audio

Noise and Distortion Source Signal X(w) Filter H(w) Distortion D(w) + Output Signal Y(w) Noise N(w) Distortion and noise make it a lot harder to estimate H Bryan Pardo, 2008, Northwestern University EECS 352: Machine Perception of Music and Audio

Estimating the transfer function H Assume we know what X is (because we made it) and what Y is ( cause we recorded it). Hope noise and distortion are not correlated with X. Call noise + distortion N. Then XkHk [ ] [ ] + Nk [ ] = Yk [ ] Bryan Pardo, 2008, Northwestern University EECS 352: Machine Perception of Music and Audio

Estimating H(k) (in the frequency domain) XkHk [ ] [ ] = Yk [ ] so... Hk [ ] = Yk [ ]/ Xk [ ]...more or less. Bryan Pardo, 2008, Northwestern University EECS 352: Machine Perception of Music and Audio

Estimating H Estimate H a lot of times, in the hopes that the noise will wash out in the mix Hk ˆ [ ] YkXk [ ] [ ] / XkXk [ ] [ ] where 1 YkXk [ ] [ ] = Y [ kx ] [ k] n n N N n= 1 The average value Over N estimates Bryan Pardo, 2008, Northwestern University EECS 352: Machine Perception of Music and Audio

Caveats This only works on the frequencies where there was energy in the input signal X. If there wasn t energy at a frequency then we re out of luck. So, best to use a broadband sound for X. Note: An impulse is broadband.

Adding room reverb to a recording Record an impulse in the room Estimate the impulse response of the room using the method described previously Record something in another quiet room (with the microphone up close to the source) Convolution between your new recording and the impulse response function of the first room

FIR Filter FIR means Finite Impulse Response Means it will stop making noise once you stop putting noise through it There are also Infinite Impulse Response (IIR) filters. These have feedback To find out more about IIR filters, take a DSP class.

Building a low-pass FIR filter Pick width of your LOW pass band (O Hz to X Hz, where X can be up to the Nyquist rate) Create a desired transfer function (don t forget the mirror frequencies above the Nyquist rate). Take the IFFT of the transfer function This is your impulse response function.

An 8-point 250 Hz low-pass filter Matlab Index h(x) H (k) 1 2 3 4 5 6 7 8 0.71 0.26-0.18 0.06 0.06 0.06-0.18 0.26 1 1 1 0 0 0 1 1 DC offset Complex conjugates Nyquist frequency Better index 0 1 2 3 4 (-4) -3-2 -1 Frequency of FFT 0 S/N 2S/N 3S/N 4S/N -3S/N -2S/N -S/N If S=1000 Hz and N = 8 0 125Hz 250Hz 375Hz 500Hz -375Hz -250Hz -125Hz Bryan Pardo, 2008, Northwestern University EECS 352: Machine Perception of Music and Audio

The same 8-point low-pass filter (another view)

A 32-point low-pass filter for 8kHz sample rate

Making a high-pass FIR filter Pick how wide you want your pass band to be Create a transfer function (don t forget the mirror frequencies) from 0 up to the desired width Take the IFFT of the transfer function to get the impulse response function Multiply this by a sine wave at the Nyquist frequency You now have the transfer function

Making a band-pass FIR filter Just like making a high-pass filter EXCEPT Instead of multiplying by a sine at fs/2 (the Nyquist rate), you pick a sine wave whose frequency is at the center of your pass band. There are a few more details, but that is the basic idea.

Design issues to worry about There are lots of design issues here Ringing Side lobes Sharpness of cutoff We re not going to get into it all here (Take that DSP class, if interested)