FIR Filter For Audio Practitioners

Similar documents
Filter Hose Tutorial Created based on v1.3.0

Signals and Filtering

Small Room and Loudspeaker Interaction


Application Note 4. Analog Audio Passive Crossover

Processor Setting Fundamentals -or- What Is the Crossover Point?

Application Note 7. Digital Audio FIR Crossover. Highlights Importing Transducer Response Data FIR Window Functions FIR Approximation Methods

Improving room acoustics at low frequencies with multiple loudspeakers and time based room correction

HOW TO SETUP A QC TEST FOR A DELAY LINE

App Note Highlights Importing Transducer Response Data Generic Transfer Function Modeling Circuit Optimization Digital IIR Transform IIR Z Root Editor

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

Professional Loudspeaker Systems and their Real World applications. High Performances Crossovers for. By Mario Di Cola, Audio Labs Systems,

Excelsior Audio Design & Services, llc

An Enclosure Design for TEBM35C10-4 BMR Loudspeaker Driver

AURALiC Flexible Filter Mode Explanation

Experiment 2 Effects of Filtering

Excelsior Audio Design & Services, llc

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

Crossover Design by Software

Gibb s Phenomenon Analysis on FIR Filter using Window Techniques

Digital Filters Using the TMS320C6000

04 August 2017 Charlie Hughes. Optimizing Loudspeaker Directivity Through the Crossover Region

Design of a Line Array Point Source Loudspeaker System

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

Part One. Efficient Digital Filters COPYRIGHTED MATERIAL

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

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

ijdsp Workshop: Exercise 2012 DSP Exercise Objectives

EXPERIMENT 1: Characteristics of Passive and Active Filters

FIR window method: A comparative Analysis

APPLICATION NOTE MAKING GOOD MEASUREMENTS LEARNING TO RECOGNIZE AND AVOID DISTORTION SOUNDSCAPES. by Langston Holland -

IT Series Woofers and Compression Drivers

EQ s & Frequency Processing

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

Low Pass Filter Introduction

EE 422G - Signals and Systems Laboratory

Design and comparison of butterworth and chebyshev type-1 low pass filter using Matlab

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

Practical applications of digital filters

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

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

Low frequency sound reproduction in irregular rooms using CABS (Control Acoustic Bass System) Celestinos, Adrian; Nielsen, Sofus Birkedal

A White Paper Of The Installation Series Loudspeakers

SIA Software Company, Inc.

AUDIO SIEVING USING SIGNAL FILTERS

A Simple Exercise in Practitioner Level FIR Filters 1/7/2014

F I R Filter (Finite Impulse Response)

Ultimate Equalizer V8.0 Supplemental User Manual

Topic. Filters, Reverberation & Convolution THEY ARE ALL ONE

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

FIR Filter Design using Different Window Techniques

An Introduction to Digital Steering

Technical Guide. Installed Sound. Recommended Equalization Procedures. TA-6 Version 1.1 April, 2002

Photo Story The Time-Behaviour of Equalisers in dependancy of the Quality factor

a Full Range System Excelsior Audio Design & Services State of the Art Loudspeaker Design for Live Sound Subwoofer Alignment with a Full Range System

ENGINEERING STAFF REPORT. The JBL Model L40 Loudspeaker System. Mark R. Gander, Design Engineer

DSP in Loudspeakers. By Francis Rumsey Staff Technical Writer

Application Note 5. Analog Audio Active Crossover

CHAPTER 2 FIR ARCHITECTURE FOR THE FILTER BANK OF SPEECH PROCESSOR

Practical Applications of the Wavelet Analysis

MITIGATING INTERFERENCE ON AN OUTDOOR RANGE

DSP Crossover Implementation & Design. Al Clark Danville Signal Processing, Inc. Paul Beckmann - DSP Concepts, Inc.

Excelsior Audio. Subwoofer Alignment with a Full Range System. a Full Range System Excelsior Audio Design & Services, LLC

Digital Filters FIR and IIR Systems

SCUBA-2. Low Pass Filtering

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

EEM478-DSPHARDWARE. WEEK12:FIR & IIR Filter Design

All About Equalizers

Implementation of Decimation Filter for Hearing Aid Application

PART I: The questions in Part I refer to the aliasing portion of the procedure as outlined in the lab manual.

Crossover Filter Shape Comparisons A White Paper from Linea Research Paul Williams July 2013

Signal Processing Toolbox

Current and future developments in loudspeaker management systems

LECTURE 3 FILTERING OBJECTIVES CHAPTER 3 3-1

Sound Tuning Magazine

Design of FIR Filters

Lecture Summary Chapter 2 Summation

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

GEORGIA INSTITUTE OF TECHNOLOGY. SCHOOL of ELECTRICAL and COMPUTER ENGINEERING. ECE 2026 Summer 2018 Lab #8: Filter Design of FIR Filters

Digital Filtering: Realization

DESIGN OF FIR AND IIR FILTERS

the 82nd Convention 1987 March London

Massachusetts Institute of Technology Department of Electrical Engineering & Computer Science 6.341: Discrete-Time Signal Processing Fall 2005

Signal Processing for Digitizers

Perceptual Study and Auditory Analysis on Digital Crossover Filters*

4.5 Fractional Delay Operations with Allpass Filters

Notes on OR Data Math Function

An Introduction to Electronic Beam Steering

Window Method. designates the window function. Commonly used window functions in FIR filters. are: 1. Rectangular Window:

Digital Signal Processing of Speech for the Hearing Impaired

Suppose you re going to mike a singer, a sax, or a guitar. Which mic should you choose? Where should you place it?

ROOM IMPULSE RESPONSE SHORTENING BY CHANNEL SHORTENING CONCEPTS. Markus Kallinger and Alfred Mertins

Reducing comb filtering on different musical instruments using time delay estimation

Presented at the 108th Convention 2000 February Paris, France

EE 264 DSP Project Report

QUANTUM MASTERING LPEQ

Validation & Analysis of Complex Serial Bus Link Models

PDA500PF. A Powerful 512taps FIR is available for the System Phase Correction, based on System Response measurement.

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

LECTURER NOTE SMJE3163 DSP

Transcription:

Introduction Electronic correction in the form of Equalization (EQ) is one of the most useful audio tools for loudspeaker compensation/correction, whether it compensates from non linearities in the loudspeaker or for altering the effect of room acoustics. Two audio filter types are typically used: IIR and FIR. IIR stands for Infinite Impulse Response and FIR stands for Finite Impulse Response. Each has its own pluses and minuses. This article intends to introduce key terminologies and outline few basic uses of FIR filters for audio system optimization. The IIR filter is based on the idea of an analog/passive filter and has minimum phase characteristics. An example of a passive crossover typically found in a loudspeaker is shown in figure 1. The IIR filter is common and can be used in the passive/analog domain and in a digital signal processor (DSP). Several common terms that relate to IIR (some relate to FIR too) are: passive/analog crossover, minimum phase filter, analog graphic/parametric EQ. FIR filters on the other hand are commonly implemented in the digital domain. Figure 1 Phase Response An IIR filter has a minimum phase characteristic. Minimum phase is a condition where the phase response and frequency response are related by the Hilbert Transform (predictable from each other). In IIR, changes in frequency response will produce changes in the phase response. The minimum phase response is the least amount of phase shift possible for a given magnitude response. A digital IIR filter is setup as shown in figure 2, containing a high pass filter (HPF) at 60Hz, Butterworth 12dB/oct, a low pass filter at 12500Hz, Butterworth 12dB/oct, a 3dB 1/3oct wide peak EQ at 300Hz and a +3dB 1/3 oct wide peak EQ at 3000Hz. This table is a screenshot from Filter Hose. Figure 2 The reader can observe the transfer function (figure 3 right) and the zoomed filter s impulse response (figure 3 left). 1

Figure 3 Figure 3 the right graph shows the frequency response (red curve) and the phase response (green curve) of the IIR filter. As previously discussed, the changes in magnitude are followed by changes in phase, thus the phase response has its own shape. Figure 3 the left graph shows the filter s impulse response which has a peak very close to 0ms. Typically, there is minimal processing delay introduced by an IIR minimum phase filter. Side note: Not all IIR filters are minimum phase. All Pass Filters are non minimum phase IIR filters. An FIR filter can also create a similar transfer function as shown in figure 3. Figure 4 is an FIR filter created using 48kHz sample rate and 1024 taps. Although an FIR filter can be created as minimum phase, but what is powerful with FIR is the ability to independently control the frequency and phase responses. This is what is commonly called a linear phase FIR filter. Figure 4 Figure 4 the left graph shows the filter s impulse response. Since the peak of the impulse response is located at 10.65ms, this shows a processing delay caused by the filter. In other words, the output will be delayed by an additional 10.65ms, which can be too long for live stage monitoring or overdub recording but can be acceptable for audio mastering or music listening use (without video). Figure 4 the right graph shows the transfer function of the FIR filter with the processing delay removed by cyclic shifting the impulse response for easier viewing. The reader can observe the phase response that is flat at 0deg (there is no phase shift caused by the filter) and the frequency response is similar to figure 3 right. 2

Digital FIR Filter Properties In the digital world, sample rate (fs) is one of the most limiting conditions to recognize. The FIR filter depends on the sample rate of the hardware/software. One can t just change the sample rate of a filter and expect the same result. As the name implies, an FIR filter has a finite duration or a certain number of taps. An FIR s tap is simply a coefficient value and the impulse response of an FIR filter is the filter s coefficients. The number of taps (N) is the amount of the memory needed to implement the filter. More taps mean higher frequency resolution, which in turn means narrower filters and/or steeper roll offs. Frequency resolution = fs / N. By dividing the sample rate by N, a practitioner is able to calculate the frequency resolution of the filter. In the example above (figure 4), the FIR is created using 48kHz sample rate and N=1024. This yields a frequency resolution of 46.875Hz. For a quick and rough estimation, we can multiply the frequency resolution by 3 (three) to predict the effective low frequency limit of the filter. 46.875Hz x 3 141Hz. This means an FIR filter with fs = 48kHz and N = 1024 will be effective at 141Hz and above. This is just a quick and rough estimation based on a sample rate and number of taps, however other calculation parameters or filter editing will heavily affect the final result. To create a steep high pass at low frequency (below 200Hz), one may require a high N value which may not be practical. Therefore it is common to implement a HPF as an IIR filter in addition to an FIR filter. Filter s Processing Delay Another important factor is editing the filter. Figure 4 shows the FIR filter with 10.65ms processing delay. When the location of the filter s impulse is cyclic shifted and appropriate windowing is performed based on the new impulse location, the result filter s transfer function may change. Please observe figure 5 (with 6ms processing delay), figure 6 (with 3ms processing delay) and compare them to figure 4 (with 10ms processing delay). All phase response curves in figure 4, 5 and 6 are observed by cyclic shifting the filter s impulse response peak to 0ms. Figure 5 3

Figure 6 The reader can observe how the low frequency roll off changes and how the phase is not as flat in the low frequency region. In general, FIR filter can work effectively to do correction for frequencies below 100Hz if a long processing delay can be tolerated. Here is another example of a 3 way horn loaded loudspeaker measurement. The loudspeaker s transfer function is shown in figure 7. Figure 7 Two FIR filters (fs = 48 khz, N = 2048, frequency resolution = 23.3 Hz) are created using different processing delay to linearize the loudspeaker s phase response only, without affecting the frequency response of the loudspeaker. Figure 8 and figure 9 are showing the filter s transfer function (left graph) and the calculated output (right graph). Figure 8 Figure 8 shows the result of a filter with 30ms processing delay. The filter s frequency response is mostly flat with a little bit of dip around 45Hz. This setup will work nice to linearize the phase response of the 4

loudspeaker system. However, if we shorten the processing delay to 10ms in the filter creation process, the result will be very different. Figure 9 Figure 9 the left graph shows the filter s transfer function with 10ms processing delay. Observe a drop starting at 80Hz in the filter s frequency response. The right graph shows the predicted result of the loudspeaker where the phase response is successfully flattened, but the low frequency response does not extend as low as the original loudspeaker s response shown in figure 7. Windowing FIR has a finite duration as the name states. Therefore in the creation process, an audio practitioner needs to define where the finite points are. FIR filters are not very good at handling specific frequency response (especially low frequency) because one needs to truncate the impulse of the FIR filter (hence it s called finite). The act of further truncating is called windowing. Typically, FIR filters are calculated based on an ideal filter and are then truncated. Here is several illustrative examples about windowing processes. Figure 10 5

Figure 11 Figure 10 shows what is commonly called a rectangular window. The window weights all values evenly inside the rectangle/window and the truncation is likely to be abrupt at the end of the filter. This can cause ringing or add other coloration to the sound outside the intended use of the FIR filter. The rectangular window can be useful in specific occasions, but tapering the edges of the filter s impulse response to smooth out any discontinuities is generally recommended. Figure 11 shows Hann windowing. The windowing process does not just cut the tail based on the length we want, but also tapers the tail of the filter. The coefficient s values go to zero at the end of the tail. Processing delay and windowing setup/editing process are very important to the final result of the FIR filter. Creating FIR based on Measurement Creating an FIR filter in order to create a conjugate of the transfer function, frequency response only, or phase response only is becoming popular as the FIR capable DSPs are more widely available. Software such as Filter Hose can help users define an FIR filter based on measured data to create a conjugate filter or create a custom FIR filter (the latter is typically done for creating crossover or targeting a specific curve, not discussed in this article). Several FIR filter applications whose purpose is to create a conjugate of a measured data are as follows: 1. Creating a conjugate for a single measurement point For a one person listening spot (such as studio use), one measurement can be taken at the sweetspot position from each loudspeaker. An FIR filter can be developed to create a conjugate of the transfer function at that point. This is useful to smooth out room effect and improve several loudspeaker non linearities. The filter has many data points but it is for a unique position in space. 6

2. Flattening spatial averages or power response By measuring the frequency response at different listener s positions, one can average the frequency responses. This should be done per loudspeaker and good results can be achieved by averaging the frequency response at more than three locations. Averaging should not include phase response, only the magnitude. The measurement can be taken simply by using an RTA. This is another useful way to compensate for the room s modal behavior in a home theater environment, music listening room, or for sound system optimization for commercial/public places. 3. Loudspeaker correction To properly create a loudspeaker correction, a controlled measurement environment is required. Control in this context means controlling the amount of reflected sound that is captured in the measurement. The simplest and most effective way to do a good loudspeaker measurement is to do an outdoor ground plane measurement under supportive weather conditions or in a very large room. By placing the loudspeaker and mic on the reflective and smooth ground, one can get a good measurement data without a destructive interfering reflection from the floor. When creating an FIR filter to linearize the phase response of a loudspeaker, its best to use measured data from a controlled measurement environment. 4. Combination There are many possibilities to measure a loudspeaker and create FIR filters. One can create a loudspeaker correction using the outdoor ground plane method and create an FIR filter to linearize the loudspeaker s direct field response. Then bring the loudspeaker inside the room and measure several spots in the room to create a power response/modeal compensation. The two filters can then be convolved/combined. Just like combining IIR filters, several FIR filters with different functions can be combined too. FIR filters are produced very differently than IIR filters. Both have pluses and minuses and the final result will depend on the intentions of the filter s creator. We would like to thank Pat Brown (www.prosoundtraining.com) and John Loufik for their insights and for reviewing this article prior to publication. 7