Resonator Factoring. Julius Smith and Nelson Lee

Similar documents
WARPED FILTER DESIGN FOR THE BODY MODELING AND SOUND SYNTHESIS OF STRING INSTRUMENTS

REALSIMPLE Basic Virtual Acoustic Guitar Lab

SECTION 7: FREQUENCY DOMAIN ANALYSIS. MAE 3401 Modeling and Simulation

E : Lecture 8 Source-Filter Processing. E : Lecture 8 Source-Filter Processing / 21

Digital Filtering: Realization

Subtractive Synthesis. Describing a Filter. Filters. CMPT 468: Subtractive Synthesis

EE 470 Signals and Systems

THE BEATING EQUALIZER AND ITS APPLICATION TO THE SYNTHESIS AND MODIFICATION OF PIANO TONES

Tunable Multi Notch Digital Filters A MATLAB demonstration using real data

EE 422G - Signals and Systems Laboratory

FX Basics. Filtering STOMPBOX DESIGN WORKSHOP. Esteban Maestre. CCRMA - Stanford University August 2013

MUS421/EE367B Applications Lecture 9C: Time Scale Modification (TSM) and Frequency Scaling/Shifting

Flanger. Fractional Delay using Linear Interpolation. Flange Comb Filter Parameters. Music 206: Delay and Digital Filters II

SIA Software Company, Inc.

Lecture 17 z-transforms 2

Acoustics, signals & systems for audiology. Week 4. Signals through Systems

DSP Based Corrections of Analog Components in Digital Receivers

Team proposals are due tomorrow at 6PM Homework 4 is due next thur. Proposal presentations are next mon in 1311EECS.

ECE 203 LAB 2 PRACTICAL FILTER DESIGN & IMPLEMENTATION

Signal Processing for Speech Applications - Part 2-1. Signal Processing For Speech Applications - Part 2

FIR/Convolution. Visulalizing the convolution sum. Convolution

Quantification of glottal and voiced speech harmonicsto-noise ratios using cepstral-based estimation

Signals & Systems for Speech & Hearing. Week 6. Practical spectral analysis. Bandpass filters & filterbanks. Try this out on an old friend

Electrical & Computer Engineering Technology

Introduction to Digital Signal Processing Using MATLAB

Frequency-Response Masking FIR Filters

Signal Processing Libraries for FAUST

MUMT618 - Final Report Litterature Review on Guitar Body Modeling Techniques

Biomedical Instrumentation B2. Dealing with noise

Adaptive Filters Application of Linear Prediction

DIGITAL FILTERS. !! Finite Impulse Response (FIR) !! Infinite Impulse Response (IIR) !! Background. !! Matlab functions AGC DSP AGC DSP

Introduction to Signals and Systems Lecture #9 - Frequency Response. Guillaume Drion Academic year

Modeling and Analysis of Systems Lecture #9 - Frequency Response. Guillaume Drion Academic year

ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet

Sound Synthesis Methods

Laboratory Assignment 4. Fourier Sound Synthesis

Poles and Zeros of H(s), Analog Computers and Active Filters

University of Washington Department of Electrical Engineering Computer Speech Processing EE516 Winter 2005

Equalizers. Contents: IIR or FIR for audio filtering? Shelving equalizers Peak equalizers

Digital Filters. Linearity and Time Invariance. Implications of Linear Time Invariance (LTI) Music 270a: Introduction to Digital Filters

Infinite Impulse Response Filters

Advanced Audiovisual Processing Expected Background

Copyright S. K. Mitra

MUS420 Lecture Time Varying Delay Effects

WHAT ELSE SAYS ACOUSTICAL CHARACTERIZATION SYSTEM LIKE RON JEREMY?

System analysis and signal processing

Creating a Virtual Cello Music 421 Final Project. Peder Larson

Design IIR Band-Reject Filters

The Fundamentals of Mixed Signal Testing

List and Description of MATLAB Script Files. add_2(n1,n2,b), n1 and n2 are data samples to be added with b bits of precision.

THE PERCEPTION OF ALL-PASS COMPONENTS IN TRANSFER FUNCTIONS

INTRODUCTION TO COMPUTER MUSIC PHYSICAL MODELS. Professor of Computer Science, Art, and Music. Copyright by Roger B.

Direction-Dependent Physical Modeling of Musical Instruments

EE482: Digital Signal Processing Applications

Qäf) Newnes f-s^j^s. Digital Signal Processing. A Practical Guide for Engineers and Scientists. by Steven W. Smith

University of Southern Queensland Faculty of Health, Engineering & Sciences. Investigation of Digital Audio Manipulation Methods

4.5 Fractional Delay Operations with Allpass Filters

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

Advanced AD/DA converters. Higher-Order ΔΣ Modulators. Overview. General single-stage DSM II. General single-stage DSM

Department of Electronics &Electrical Engineering

CMPT 468: Delay Effects

Microcomputer Systems 1. Introduction to DSP S

Advanced AD/DA converters. Higher-Order ΔΣ Modulators. Overview. General single-stage DSM. General single-stage DSM II ( 1

Music 270a: Fundamentals of Digital Audio and Discrete-Time Signals

FOURIER analysis is a well-known method for nonparametric

Digital Signal Processing

Overview of Code Excited Linear Predictive Coder

DIGITAL SIGNAL PROCESSING WITH VHDL

Cleveland State University MCE441: Intr. Linear Control Systems. Lecture 12: Frequency Response Concepts Bode Diagrams. Prof.

SGN Audio and Speech Processing

Concordia University. Discrete-Time Signal Processing. Lab Manual (ELEC442) Dr. Wei-Ping Zhu

Synthesis Techniques. Juan P Bello

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

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 3

Response spectrum Time history Power Spectral Density, PSD

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

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

speech signal S(n). This involves a transformation of S(n) into another signal or a set of signals

Impact of String Stiffness on Virtual Bowed Strings

On Minimizing the Look-up Table Size in Quasi Bandlimited Classical Waveform Oscillators

Implementation of cross-talk canceling filters with warped structures - Subjective evaluation of the loudspeaker reproduction of stereo recordings

Mel Spectrum Analysis of Speech Recognition using Single Microphone

INFINITE IMPULSE RESPONSE (IIR) FILTERS

SIGMA-DELTA CONVERTER

Dynamic Vibration Absorber

Laboratory Assignment 1 Sampling Phenomena

On the Most Efficient M-Path Recursive Filter Structures and User Friendly Algorithms To Compute Their Coefficients

EE482: Digital Signal Processing Applications

R. W. Erickson. Department of Electrical, Computer, and Energy Engineering University of Colorado, Boulder

SINUSOIDAL MODELING. EE6641 Analysis and Synthesis of Audio Signals. Yi-Wen Liu Nov 3, 2015

Advanced audio analysis. Martin Gasser

AUDL Final exam page 1/7 Please answer all of the following questions.

Reference: PMU Data Event Detection

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

Discrete-Time Signal Processing (DTSP) v14

Laboration Exercises in Digital Signal Processing

Modal Parameter Estimation Using Acoustic Modal Analysis

EECS 452 Midterm Exam (solns) Fall 2012

Friday, 1/27/17 Constraints on A(jω)

Digital Speech Processing and Coding

Transcription:

Resonator Factoring Julius Smith and Nelson Lee RealSimple Project Center for Computer Research in Music and Acoustics (CCRMA) Department of Music, Stanford University Stanford, California 9435 March 13, 29 Outline Mode Extraction by Inverse Filtering Shortened Resonator Impulse Response Localized Single-Mode Inverse Filter Example for a Guitar Body Work supported by the Wallenberg Global Learning Network 1

Body Resonator Factoring A valuable way of shortening the excitation table in commuted waveguide synthesis is to factor the body resonator into its most-damped and least-damped modes. The most-damped modes are then commuted and convolved with the external excitation. The least-damped modes can be left in parametric form (recursive digital filter sections) Advantages: Excitation table is shortened Excitation-table signal-to-quantization-noise ratio is improved The most important resonances remain parametric, facilitating real-time control. Multiple body outputs become available (e.g., for more diverse spatialization) Resonators are often available in a separate effects unit, making them free Provides a fairly continuous memory vs. computation trade-off 2

Mode Extraction Techniques The goal of resonator factoring is to identify and remove the least-damped resonant modes of the impulse response. This means finding and removing the narrowest peaks in the frequency response. Two Basic Methods: 1. Complex spectral subtraction (equivalent to subtracting a second-order impulse-response) H r (z) = H(z) b + b 1 z 1 1 + a 1 z 1 + a 2 z 2 Must accurately estimate phase and amplitude, as well as frequency and bandwidth Requires resonators in parallel with residual residual not readily commuted with string 2. Inverse-filtering H r (z) = H(z) ( 1 + a 1 z 1 + a 2 z 2) Factored resonator components are in cascade (series) Residual (damped) modes more easily commuted with the string Only need to measure frequency and bandwidth, not amplitude and phase 3

Mode Extraction by Inverse Filtering Various methods are applicable for estimating spectral peak parameters: (1) Direct amplitude-response peak measurement on FFT magnitude data Center frequency Bandwidth (2) Weighted digital filter design (3) Linear prediction (special case of (2)) (4) Sinusoidal modeling (like (1) but looking across multiple time frames) (5) Late impulse-response analysis (useable with all methods) (6) Work over Auditory frequency scale such as the Bark scale (useable with all methods) 4

Example of Body Resonator Factoring Example of weighted digital filter design using invfreqz in Matlab: 25 Equation-Error Fit, Noise = 1, In-Band Weighting = 1 (tsid.m) 2 15 "Measured" modal peak Parametric fit to modal peak Magnitude (db) 1 5-5 Weighting function bandwidth -1 5 1 15 2 25 3 35 4 Frequency (Hz) 5

Shortened Body Impulse Response Classical guitar body impulse response body before and after removing the first peak (main Helmholtz air resonance) using a second-order inverse filter: a) 1 Body Impulse Response Amplitude.5 -.5-1 1 2 3 4 5 b) 1 Body IR Shortened by Removing Main Air Resonance Amplitude.5 -.5-1 1 2 3 4 5 Time (msec) Shortened excitation can be truncated to 1 ms Shortened excitation can often be replaced by a filtered noise burst 6

Corresponding Amplitude Response Normalized Bark-warped amplitude response, classical guitar body, before and after second-order FIR inverse filtering: a) Body Frequency Response -2-4 -6 2 4 6 8 1 12 b) Body Frequency Response after Main Air Mode Removed -2-4 -6 2 4 6 8 1 12 Frequency (khz) 7

Localized Second-Order Mode Elimination Filter H r (z) = A(z) A(z/r) A(z) = inverse filter determined by peak frequency peak bandwidth = 1 + a 1z 1 + a 2 z 2 1 + a 1 rz 1 + a 2 r 2 z 2 A(z/r) = same polynomial with roots contracted by r For r 1 (but < 1 for stability), poles and zeros substantially cancel far away from the removed mode mode removal is localized. Similar in spirit to dc blocker r can be interpreted as the new pole radius for the canceled pole. Ideally, r should equal the radius of the neighboring poles so that all will decay at the same rate (recall late reverb synthesis story) 8

Matlab for Localized Peak Removal freq = 14.98; % estimated peak frequency in Hz bw = 1; % peak bandwidth estimate in Hz R = exp( - pi * bw / fs); % pole radius z = R * exp(j * 2 * pi * freq / fs); % pole itself B = [1, -(z + conj(z)), z * conj(z)] % inverse filter numerator r =.9; % zero/pole factor (notch isolation) A = B.* (r.^ [ : length(b)-1]); % inverse filter denominator residual = filter(b,a,bodyir); % apply inverse filter 9

Localized Peak Removal Example In this example, r =.9 (arbitrary choice - not critical) a) Warped Body Frequency Response -2-4 -6 2 4 6 8 1 12 b) Warped Body Frequency Response after Main Air Mode Removed -2-4 -6 2 4 6 8 1 12 Warped Frequency (khz*) 1

Close-Up on Localized Peak Removal Example a) Warped Body Frequency Response -2-4 -6.2.4.6.8 1 1.2 1.4 b) Warped Body Frequency Response after Main Air Mode Removed -2-4 -6.2.4.6.8 1 1.2 1.4 Warped Frequency (khz*) First eighth of previous figure. 11