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

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

Reducing comb filtering on different musical instruments using time delay estimation

Simulating Saturated Vacuum Tube Characteristics of a Valve Guitar Preamp

ECE 5655/4655 Laboratory Problems

A Guitar Overdrive/Distortion Effect of Digital Signal Processing

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

FIR/Convolution. Visulalizing the convolution sum. Convolution

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

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

How to Record & Mix Acoustic Guitars

Problem Point Value Your score Topic 1 28 Discrete-Time Filter Analysis 2 24 Improving Signal Quality 3 24 Filter Bank Design 4 24 Potpourri Total 100

The University of Texas at Austin Dept. of Electrical and Computer Engineering Midterm #1

The Future of Sound. Made Perfectly Clear.

CMPT 468: Delay Effects

Discrete Fourier Transform (DFT)

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

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

SUPERVISED SIGNAL PROCESSING FOR SEPARATION AND INDEPENDENT GAIN CONTROL OF DIFFERENT PERCUSSION INSTRUMENTS USING A LIMITED NUMBER OF MICROPHONES

Lecture 17 z-transforms 2

The University of Queensland School of Information Technology and Electrical Engineering. ELEC3004/7312: Signals, Systems and Controls

Signals and Filtering

Lab 6 - MCU CODEC IIR Filter ReadMeFirst

Chapter 3 Data and Signals 3.1

CONTENTS PREFACE. Chapter 1 Monitoring... 1 CHAPTER 2 THE MICROPHONE Welcome To The Audio Recording Basic Training...xi

Laboratory Assignment 2 Signal Sampling, Manipulation, and Playback

A White Paper on Danley Sound Labs Tapped Horn and Synergy Horn Technologies

4.5 Fractional Delay Operations with Allpass Filters

Project 2. Project 2: audio equalizer. Fig. 1: Kinter MA-170 stereo amplifier with bass and treble controls.

MUS 302 ENGINEERING SECTION

Discrete-Time Signal Processing (DTSP) v14

What applications is a cardioid subwoofer configuration appropriate for?

The University of Texas at Austin Dept. of Electrical and Computer Engineering Final Exam

Laboratory Assignment 4. Fourier Sound Synthesis

A FEEDFORWARD ACTIVE NOISE CONTROL SYSTEM FOR DUCTS USING A PASSIVE SILENCER TO REDUCE ACOUSTIC FEEDBACK

A Pitch-Controlled Tremolo Stomp Box

DREAM DSP LIBRARY. All images property of DREAM.

Designing Filters Using the NI LabVIEW Digital Filter Design Toolkit

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

EE 233 Circuit Theory Lab 3: First-Order Filters

SIGMA-DELTA CONVERTER

Lowpass A low pass filter allows low frequencies to pass through and attenuates high frequencies.

INTERNATIONAL BACCALAUREATE PHYSICS EXTENDED ESSAY

Problem Point Value Your score Topic 1 28 Filter Analysis 2 24 Filter Implementation 3 24 Filter Design 4 24 Potpourri Total 100

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

Low Pass Filter Introduction

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

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

Experiment 2 Effects of Filtering

Analog & Digital Communication

Excelsior Audio Design & Services, llc

FIR Filter For Audio Practitioners

Microphone a transducer that converts one type of energy (sound waves) into another corresponding form of energy (electric signal).

BASIC ELECTRONICS PROF. T.S. NATARAJAN DEPT OF PHYSICS IIT MADRAS

EQ s & Frequency Processing

DESC9115 Written Review 2: Digital Implementation of a Leslie Speaker Effect. Digital Audio Systems: DESC9115, Semester

Pre- and Post Ringing Of Impulse Response

Practical Impedance Measurement Using SoundCheck

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

YEDITEPE UNIVERSITY ENGINEERING FACULTY COMMUNICATION SYSTEMS LABORATORY EE 354 COMMUNICATION SYSTEMS

Lecture 3, Multirate Signal Processing

On-Chip Implementation of Cascaded Integrated Comb filters (CIC) for DSP applications

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

What you Need: Exel Acoustic Set with XL2 Analyzer M4260 Measurement Microphone Minirator MR-PRO

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

GUJARAT TECHNOLOGICAL UNIVERSITY

USER GUIDE PREFIX PREMIUM STEREO ONBOARD BLENDER

Lab 4 Digital Scope and Spectrum Analyzer

Introduction to Equalization

Please feel free to contact our shop anytime for help or with questions. Phone:

Acoustic Resonance Lab

Frequency Domain Representation of Signals

Lecture Summary Chapter 2 Summation

ASN Filter Designer Professional/Lite Getting Started Guide

Continuous vs. Discrete signals. Sampling. Analog to Digital Conversion. CMPT 368: Lecture 4 Fundamentals of Digital Audio, Discrete-Time Signals

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

EXPERT SERIES Inside Passive Cardioid Loudspeaker Technology

2017 VCE VET Music Industry: Sound Production examination report

NAME STUDENT # ELEC 484 Audio Signal Processing. Midterm Exam July Listening test

Contents. Sound Advice on Microphone Techniques 5. Condenser Microphones 7. Moving-coil Mics 9. Ribbon Mics 11. Pickup/Polar Patterns 12

How To... Commission an Installed Sound Environment

The Filter Wizard issue 13: Buenos Notches! The Filter Wizard versus the vuvuzela Kendall Castor-Perry

application guide House of Worship

Digital Filtering: Realization

M-16DX 16-Channel Digital Mixer

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

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

D10. Cardioid Dynamic Kick Drum Microphone. Applications: Kick drum Floor toms Guitar cabinets Bass cabinets

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

Homework Assignment 13

Audiofrog UMI-1 Tuning CD Liner Notes

VIBRATO DETECTING ALGORITHM IN REAL TIME. Minhao Zhang, Xinzhao Liu. University of Rochester Department of Electrical and Computer Engineering

Definition Install iw63 DC

Analog Circuits and Systems

baby bottle LARGE-DIAPHRAGM STUDIO CONDENSER MICROPHONE

Waveshaping Synthesis. Indexing. Waveshaper. CMPT 468: Waveshaping Synthesis

Technology Super Live Audio Technology (SLA)

Since the advent of the sine wave oscillator

835 fx. Instruction manual

A Digital Signal Processor for Musicians and Audiophiles Published on Monday, 09 February :54

New Technique Accurately Measures Low-Frequency Distortion To <-130 dbc Levels by Xavier Ramus, Applications Engineer, Texas Instruments Incorporated

Transcription:

Phase Correction System Using Delay, Phase Invert and an All-pass Filter University of Sydney DESC 9115 Digital Audio Systems Assignment 2 31 May 2011 Daniel Clinch SID: 311139167

The Problem Phase is one of the big issues in audio recording and reproduction. Current recording studio techniques often involve large multi-microphone setups as engineers try to create unique sounds by combining the different characters of microphones and their placements in a room. This requires great care to be taken with the placement and physical alignment of microphones to prevent certain frequencies being cancelled out when the signals are mixed together. However, with the rise of the untrained engineer and the home recording studio, this care and attention to detail in the recording process is being lost. Consequently, inexperienced engineers often complain about thin sounds when mixing multiple microphones together even though each individual microphone may sound great. More and more, people are looking to their digital audio workstations to fix the problems with their recordings after the fact. When correcting phase alignment issues resulting from a time delay between two microphones (for example) on a single source, one or more of the following techniques are usually used; A 180 degree phase inversion to one of the signals A simple delay to the earlier of the two signals or by moving one of the microphones to an in phase position. While these can be effective they do have their limitations. A 180 degree phase inversion may improve the sound to some degree, but the best sounding result may lie somewhere between zero and 180 degrees. A delay may be effective for correcting errors caused by differences in arrival times at the transducers. However, timing may be unacceptably altered if the required corrective delay is too long and any desirable artefacts from the difference between the arrival of the two signals are now lost. Moving one of the microphones to an in phase position may work, but the sound will change and may not be desirable. This may also be impractical if not impossible in some circumstances. These methods all occur in the time domain, but we can also adjust the phase response of a signal in the frequency domain by using an all-pass filter. The all-pass filter is somewhat under represented in the current software market and when combined with a phase invert and a delay line you have a complete tool for correcting phase issues Specification This system consists of three parts, a delay line, a phase invert and an all-pass filter all combined in the one convenient tool. Fig 1. System block diagram

The delay line, as its name suggests, delays the input signal by a given amount allowing it to be aligned in the time domain with another later occurring signal. As most adjustments will usually be small, the delay time is adjusted in milliseconds. Using milliseconds as the unit allows for easy calculation of the delay time if the distance between the microphones is known. A 180 degree phase inversion is included to perform the phase flip that is commonly found on mixing consoles and most digital audio workstations. It simply inverts the polarity of the input signal. At the heart of this system is the all-pass filter. The all-pass filter has a unique response compared to other filters. There is no change in gain across the frequency spectrum when it is applied to a signal, however, the phase relationships of the frequency components are effected. When the phase response of a first order all pass filter is plotted, there is a constantly increasing phase shift from zero degrees at 0 Hz, approaching 180 degrees at higher frequencies. In other words, the higher the frequency, the greater the phase shift. The all-pass filter performs phase shift in the frequency domain without effecting the time domain. Implementation Delay Line A value for the delay given in millisecond units is converted into seconds and calculated as samples with the formula; delay (samples) = fs * (delay(ms)/1000) Eq. 1 fs = sampling frequency in samples/second An array of zeros equal to the length of the delay is then generated and concatenated to the front of the input signal, delaying the output. The delay will always be entered in milliseconds, but the number of samples required to represent that delay will always be dependent on the sampling frequency of the system. 180 degree Phase inversion The magnitude values of a sampled periodic waveform are represented by positive and negative integers. A phase inversion is simply achieved by multiplying these magnitude values of the signal by -1, changing the sign of every integer. Inverted signal = signal * -1 Eq. 2 All-pass Filter The first order all-pass filter is essentially a combination of FIR and IIR comb filters with a single sample delay line. The FIR filter produces sharp notches in the signal's frequency response while the IIR filter produces broad notches with sharp peaks. The IIR filter's sharp peaks are centred on the FIR filter's sharp notches. When combined, the peaks and notches cancel out and result in a flat magnitude response across all frequencies and an ever increasing phase shift with frequency. Since the phase shift of a first order all-pass filter increases continuously from zero degrees to 180 degrees with frequency there is a frequency at the midpoint where the phase shift is 90 degrees. This frequency which I have called f90 is the all-pass filter parameter that the operator will adjust.

The first order all-pass filter is given by the equation; Where c tunes the filter to the desired f90; y(n) = cx(n) + x(n - 1) cy(n 1) Eq. 3 y(n) = all-pass filter output x(n) = all-pass filter input c = feed forward and feedback coefficient for f90 c = (tan (pi * f90 / fs) -1) / (tan (pi * f90 / fs) + 1) Eq. 4 fs = sampling rate of the system (Hz) f90 = frequency (Hz) where the phase shift is 90 degrees As indicated in Equation 2, c has a positive sign as the feed forward coefficient and negative sign as the feed back coefficient. This ensures that the centres of the sharp notches of the FIR filter and the centres of the sharp peaks of the IIR filter are perfectly lined up. For the system to remain stable c must have a value of less than one. If this value exceeds one the system will feedback with ever increasing gain resulting in distortion of the signal. The first order all-pass filter can be drawn as a block diagram; Fig 2. All-pass filter block diagram with a delay (T) of 1 sample Evaluation The system has been tested in its basic form and has been shown to function as expected. For clarity the tests have been done with a 5ms long, 1kHz sine wave. The accompanying figures clearly show the effects of the system. Figure 3 is a simple 5ms delay applied to the input signal. As expected the signal has been delayed with no other effects. Figure 4 is the phase inversion. Only the polarity of the waveform has been inverted. Figure 5 is the all-pass filter with f90 set to 1kHz. As expected the result is a phase shift of 90 degrees and this is most clear at the end of the sample plot. Figure 6 applies the 5ms delay, phase invert and all-pass filter (with f90 of 1kHz) to the input signal. All parts of the system function as expected when combined.

Fig 3. Effect of a 5ms delay Fig 4. Effect of phase invert

Fig 5. Effect of the all-pass filter with f90 of 1kHz Fig 6. Effect of 5ms delay, phase invert and all-pass filter with f90 of 1kHz

Further Evaluation While the sine wave signals used in the initial testing show that all of the functions work, they are not representative of real world scenarios. This system will find a lot of use in music recording and that is where further evaluations should be undertaken. The following scenarios are representative of real world situations; Bass guitar A signal from a D.I. Box and a signal from a microphone on the cabinet. Compared to the D.I. Signal, the microphone signal will be delayed slightly (amount dependent on the distance from the speaker) and the amplifier/speaker system will produce significant phase shift to the bass signal. Electric guitar Multiple microphones (2-3) at different distances from the guitar amplifier with one microphone wired 180 degrees out of phase. The different arrival times at the microphones will cause cancellations as will the incorrectly wired microphone. Acoustic guitar Multiple microphones (2-3) at different distances from the guitar with one microphone wired 180 degrees out of phase. Drums A bass drum with two microphones, one close and one distant. Drums A snare drum with two microphones, one on top and one on the bottom. Test users will be presented with these scenarios and will be given the opportunity to correct them firstly with conventional tools (delay, manually moving the audio files, phase invert) and then using only the phase correction system. At the completion of each scenario they will complete a survey to gather their impressions of the effectiveness, functionality and quality of the phase correction system. The data gathered will be used for further development of the system. References 1. Williams, Arthur B. and Taylor, Fred J., Electronic Filter Design Handbook: Third Edition, New York, McGraw-Hill Inc, 1995 2. Winder, Steve, Analog and Digital Filter Design: Second Edition, New York, Newnes, 2002 3. Zolzer, Udo, DAFX Digital Audio Effects, New York, John Wiley and sons Ltd, 2002