Design of Linear Phase Band Pass Finite Impulse Response Filter Based on Modified Particle Swarm Optimization Algorithm Assistant Lecturer
Total Page:16
File Type:pdf, Size:1020Kb
Load more
Recommended publications
-
Crossover Filter Shape Comparisons a White Paper from Linea Research Paul Williams July 2013
Crossover Filter Shape Comparisons A White Paper from Linea Research Paul Williams July 2013 Overview In this paper, we consider the various active crossover Fig.1 - Well behaved Magnitude Response filter types that are in general use and compare the 6 properties of these which are relevant to professional audio. We also look at a new crossover filter type and 0 consider how this compares with the more traditional 6 types. 12 Why do we need crossover filtering? 18 Professional loudspeaker systems invariably require two or more drivers with differing properties to enable the Magnitude,dB 24 system to cover the wide audio frequency range effectively. Low frequencies require large volumes of air 30 to be moved, requiring diaphragms with a large surface 36 3 4 area. Such large diaphragms would be unsuitable for 100 1 .10 1 .10 high frequencies because the large mass of the Frequency, Hz diaphragm could not be efficiently accelerated to the Low required velocities. It is clear then that we need to use High drivers with different properties in combination to cover Sum the frequency range, and to split the audio signal into bands appropriate for each driver, using a filter bank. In Phase response its simplest form, this filtering would comprise a This is a measure of how much the phase shift suffered high-pass filter for the high frequency driver and a by a signal passing from input to the summed acoustic low-pass filter for the low frequency driver. This is our output (again assuming ideal drivers) varies with crossover filter bank (or crossover network, or just changing frequency. -
Bachelor Thesis
BACHELOR THESIS Investigating Mastering Engineers' Usage of and Opinions on Linear Phase Equalizing in Digital Mastering Camilla Näsström 2016 Bachelor of Arts Audio Engineering Luleå University of Technology Department of Arts, Communication and Education C. Näsström Bachelor Thesis Acknowledgements Thanks to Jonas Ekeroot for supervising through this whole research project. Thanks to Nyssim Lefford and Jan Berg for the help with going from the first idea to the final result. I also want to thank the engineers participating in the interviews for taking their time sharing knowledge and experience. 2016 2 C. Näsström Bachelor Thesis Abstract This qualitative study investigates what mastering engineers think of linear phase responses in equalizers; how, when and why they would use it or not. Four engineers, working part time or full time with mastering, were interviewed in order to gain information about their thoughts and opinions on the subject. Meaning condensation was used to analyze the interviews. Results showed usage of and opinions on linear phase equalizers varied among the engineers. Some special areas suitable for linear phase equalization were brought up. Pre-ringing seemed to be an artifact that made two of the engineers avoid linear phase equalizing for most of their work. Readers might get some understanding of a linear phase response in filters and its applications in different mastering situations. 2016 3 C. Näsström Bachelor Thesis Table of contents 1 Introduction ............................................... 5 4.1 Analysis ............................................. 13 2. Background ............................................... 5 4.1.1 Meaning condensation .............. 13 2.1 The revolution of digital audio ............ 5 4.1.2 Audible qualities of a good 2.2 Digital audio software ........................ -
3F3 – Digital Signal Processing (DSP)
3F3 Digital Signal Processing Section 2: Digital Filters • A filter is a device which passes some signals 'more' than others (`selectivity’), e.g. a sinewave of one frequency more than one at another frequency. • We will deal with linear time-invariant (LTI) digital filters. • Recall that a linear system is defined by the principle of linear superposition: • If the linear system's parameters (coefficients) are constant, then it is Linear Time Invariant (LTI). [Some of the the material in this section is adapted from notes byDr Punskaya, Dr Doucet and Dr Macleod] TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A 3F3 Digital Signal Processing Write the input data sequence as: And the corresponding output sequence as: x 3F3 Digital Signal Processing The linear time-invariant digital filter can then be described by the difference equation: A direct form implementation of (3.1) is: xn = unit delay b0 bM yn a1 aN 3F3 Digital Signal Processing The operations shown in the Figure above are the full set of possible linear operations: • constant delays (by any number of samples), • addition or subtraction of signal paths, • multiplication (scaling) of signal paths by constants - (incl. -1), Any other operations make the system non-linear. Matlab filter functions 3F3 Digital Signal Processing Matlab has a filter command for implementation of linear digital filters. The format is y = filter( b, a, x); where b = [b0 b1 b2 ... bM ]; a = [ 1 a1 a2 a3 ... aN ]; So to compute the first P samples of the filter’s impulse -
Optimal Design of Linear-Phase FIR Digital Filters with Very Flat Passbands and Equiripple Stopbands
904 IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS, VOL. CAS-32, NO. 9, SEPTEMBER 1985 Optimal Design of Linear-Phase FIR Digital Filters with Very Flat Passbands and Equiripple Stopbands P. P. VAIDYANATHAN, MEMBER, IEEE Ahs~aet-A new technique is presented for the design of digital FIR nel. Under such a situation, a filter with a very flat filters, with a prescribed degree of flatness in the passband, and a pre- passband (at least in the region where the signal is expected scribed (equiripple) attenuation in the stopband. The design is based entirely on an appropriate use of the well-known Rem&-exchange al- to have most of its energy) is, therefore, preferred [15]. gorithm for the design of weighted Chebyshev FIR filters. The extreme Filters with such specifications can be designed by ap- versatility of this algorithm is combined with certain “maximally flat” FIR propriate modifications of the McClellan-Parks algorithm filter building blocks, in order to generate a wide family of filters. The [4], [6], i.e., by suitable choice of the weighting function of design technique directly leads to structures that have low passband sensi- the equiripple error. Other direct approaches that have also tivity properties. been described in the literature [2], [3] are based on a linear I. INTRODUCTION programming formulation, and Steiglitz has presented a Fortran source code in [2], which achieves this purpose. NE OF THE important problems in digital filtering However, all of the design procedures (for these types of that has been considered by a number of authors in 0 filters) that are known hitherto lead to impulse response the past is the design of linear-phase FIR filters with a very coefficients as outputs of the design procedure. -
Signal Processing Toolbox User's Guide
2 Filter Design 2-2 Filter Requirements and Specification 2-4 IIR Filter Design 2-6 Classical IIR Filter Design Using Analog Prototyping 2-9 Comparison of Classical IIR Filter Types 2-17 FIR Filter Design 2-18 Linear Phase Filters 2-19 Windowing Method 2-22 Multiband FIR Filter Design with Transition Bands 2-27 Constrained Least Squares FIR Filter Design 2-31 Arbitrary-Response Filter Design 2-37 Special Topics in IIR Filter Design 2-38 Analog Prototype Design 2-39 Frequency Transformation 2-41 Filter Discretization 2-45 References 2 Filter Design Filter Requirements and Specification The Signal Processing Toolbox provides functions that support a range of filter design methodologies. This chapter explains how to apply the filter design tools to Infinite Impulse Response (IIR) and Finite Impulse Response (FIR) filter design problems. The goal of filter design is to perform frequency dependent alteration of a data sequence. A possible requirement might be to remove noise above 30 Hz from a data sequence sampled at 100 Hz. A more rigorous specification might call for a specific amount of passband ripple, stopband attenuation, or transition width. A very precise specification could ask to achieve the performance goals with the minimum filter order, or it could call for an arbitrary magnitude shape, or it might require an FIR filter. Filter design methods differ primarily in how performance is specified. For “loosely specified” requirements, as in the first case above, a Butterworth IIR filter is often sufficient. To design a fifth-order 30 Hz lowpass Butterworth filter and apply it to the data in vector x, [b,a] = butter(5,30/50); y = filter(b,a,x); The second input argument to butter indicates the cutoff frequency, normal- ized to half the sampling frequency (the Nyquist frequency). -
Design of FIR Filters
Design of FIR Filters Elena Punskaya www-sigproc.eng.cam.ac.uk/~op205 Some material adapted from courses by Prof. Simon Godsill, Dr. Arnaud Doucet, Dr. Malcolm Macleod and Prof. Peter Rayner 68 FIR as a class of LTI Filters Transfer function of the filter is Finite Impulse Response (FIR) Filters: N = 0, no feedback 69 FIR Filters Let us consider an FIR filter of length M (order N=M-1, watch out! order – number of delays) 70 FIR filters Can immediately obtain the impulse response, with x(n)= δ(n) δ The impulse response is of finite length M, as required Note that FIR filters have only zeros (no poles). Hence known also as all-zero filters FIR filters also known as feedforward or non-recursive, or transversal 71 FIR Filters Digital FIR filters cannot be derived from analog filters – rational analog filters cannot have a finite impulse response. Why bother? 1. They are inherently stable 2. They can be designed to have a linear phase 3. There is a great flexibility in shaping their magnitude response 4. They are easy and convenient to implement Remember very fast implementation using FFT? 72 FIR Filter using the DFT FIR filter: Now N-point DFT (Y(k)) and then N-point IDFT (y(n)) can be used to compute standard convolution product and thus to perform linear filtering (given how efficient FFT is) 73 Linear-phase filters The ability to have an exactly linear phase response is the one of the most important of FIR filters A general FIR filter does not have a linear phase response but this property is satisfied when four linear phase filter types 74 Linear-phase filters – Filter types Some observations: • Type 1 – most versatile • Type 2 – frequency response is always 0 at ω=π – not suitable as a high-pass • Type 3 and 4 – introduce a π/2 phase shift, frequency response is always 0 at ω=0 - – not suitable as a high-pass 75 FIR Design Methods • Impulse response truncation – the simplest design method, has undesirable frequency domain-characteristics, not very useful but intro to … • Windowing design method – simple and convenient but not optimal, i.e. -
Digital Filters
4 DIGITAL FILTERS 4.1 Introduction 4.2 Linear Time-Invariant Filters 4.3 Recursive and non-Recursive Filters 7.4 Filtering, Convolution and Correlation Operations 7.5 Filter Structures 4.6 Design of FIR Filters 4.7 Design of Filterbanks 7.8 Design of IIR Filters 7.9 Issues in the Design and Implementation of a Digital Filter ilters are a basic component of all signal processing and telecommunication systems. The primary functions of a filter are one or F more of the followings: (a) to confine a signal into a prescribed frequency band or channel for example as in anti-aliasing filter or a radio/tv channel selector, (b) to decompose a signal into two or more sub-band signals for sub- band signal processing, for example in music coding, (c) to modify the frequency spectrum of a signal, for example in audio graphic equalizers, and (d) to model the input-output relation of a system such as a mobile communication channel, voice production, musical instruments, telephone line echo, and room acoustics. In this chapter we introduce the general form of the equation for a linear time-invariant filter and consider the various methods of description of a filter in time and frequency domains. We study different filter forms and structures and the design of low-pass filters, band-pass filters, band-stop filters and filter banks. We consider several applications of filters such as in audio graphic equalizers, noise reduction filters in Dolby systems, image deblurring, and image edge emphasis. 2 Chapter 5 Digital Filters 4.1 Introduction Filters are widely employed in signal processing and communication systems in applications such as channel equalization, noise reduction, radar, audio processing, video processing, biomedical signal processing, and analysis of economic and financial data. -
Mixed-Signal and DSP Design Techniques, Digital Filters
DIGITAL FILTERS SECTION 6 DIGITAL FILTERS I Finite Impulse Response (FIR) Filters I Infinite Impulse Response (IIR) Filters I Multirate Filters I Adaptive Filters 6.a DIGITAL FILTERS 6.b DIGITAL FILTERS SECTION 6 DIGITAL FILTERS Walt Kester INTRODUCTION Digital filtering is one of the most powerful tools of DSP. Apart from the obvious advantages of virtually eliminating errors in the filter associated with passive component fluctuations over time and temperature, op amp drift (active filters), etc., digital filters are capable of performance specifications that would, at best, be extremely difficult, if not impossible, to achieve with an analog implementation. In addition, the characteristics of a digital filter can be easily changed under software control. Therefore, they are widely used in adaptive filtering applications in communications such as echo cancellation in modems, noise cancellation, and speech recognition. The actual procedure for designing digital filters has the same fundamental elements as that for analog filters. First, the desired filter responses are characterized, and the filter parameters are then calculated. Characteristics such as amplitude and phase response are derived in the same way. The key difference between analog and digital filters is that instead of calculating resistor, capacitor, and inductor values for an analog filter, coefficient values are calculated for a digital filter. So for the digital filter, numbers replace the physical resistor and capacitor components of the analog filter. These numbers reside in a memory as filter coefficients and are used with the sampled data values from the ADC to perform the filter calculations. The real-time digital filter, because it is a discrete time function, works with digitized data as opposed to a continuous waveform, and a new data point is acquired each sampling period. -
Design of Linear Phase FIR Notch Filters
Sadhan& Vol. 15, Part 3, November 1990, pp. 133-155. © Printed in India. Design of linear phase FIR notch filters TIAN-HU YU, SANJIT K MITRA and HRVOJE BABIC t Signal and Image Processing Laboratory, Department of Electrical and Computer Engineering, University of California at Santa Barbara, Santa Barbara, CA 93106, USA tElectrotcchnical Faculty, University of Zagreb, Zagreb, Yugoslavia Abstract. This paper investigates some approaches for designing one- dimensional linear phase finite-duration impulse-responses (FIR) notch filters, which are based on the modification of several established design techniques of linear phase FIR band-selective filters. Based on extensive design examples and theoretical analysis, formulae have been developed for estimating the length of a linear phase FIR notch filter meeting the given specifications. In addition, the design of two-dimensional linear phase FIR notch filters is briefly considered. Illustrative examples are included. Keywords. Fig digital filter; digital filter design; digital notch filter. 1. Introduction The notch filter, which highly attenuates a particular frequency component in the input signal while leaving nearby frequency components relatively unchanged, is used in many applications. For example, the elimination of a sinusoidal interference corrupting a signal, such as the 60 Hz power-line interference in the design of a digital instrumentation system, is typically accomplished with a notch filter tuned to the frequency of the interference. Usually very narrow notch characteristic (width) is desired to filter out the single trequency or sinusoidal interference without distorting the signal. The design of infinite-duration impulse response (nR) notch filters has been considered by Carney (1963) and later by Hirano et al (1974). -
On the Symmetry of FIR Filter with Linear Phase Stéphane Paquelet, Vincent Savaux
On the symmetry of FIR filter with linear phase Stéphane Paquelet, Vincent Savaux To cite this version: Stéphane Paquelet, Vincent Savaux. On the symmetry of FIR filter with linear phase. Digital Signal Processing, Elsevier, 2018, 81 (2018), pp.57 - 60. 10.1016/j.dsp.2018.07.011. hal-01849361 HAL Id: hal-01849361 https://hal.archives-ouvertes.fr/hal-01849361 Submitted on 31 Jul 2018 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. DOI : https://doi.org/10.1016/j.dsp.2018.07.011 © 2018 . This manuscript version is made available under the CC - BY - NC - ND 4.0 license On the Symmetry of FIR Filter with Linear Phase Stéphane Paquelet, Vincent Savaux∗ Abstract This paper deals with signal processing theory related to finite impulse response (FIR) filters with linear phase. The aim is to show a new and complete proof of the equivalence between linear phase and symmetry or antisymmetry of the real coefficients of the filter. Despite numerous proofs are available in the literature, they are usually incomplete, even though the result is commonly used by the signal processing community. We hereby address a pending issue in digital signal processing: we first prove the uniqueness of the group delay for any decomposition amplitude-phase of the frequency response. -
Digital Signal Processing Module
Module-16:Finite Impulse Response (FIR) Digital Filters Objectives: • To understand the concept of linear phase • To know the method of identifying the linear phase filter from its impulse response • To know the ways of identifying various types of linear phase filters • To understand the characteristics of FIR digital filters • To understand the frequency response of FIR filters • To differentiate between FIR and IIR filters based on various Characteristics Introduction: ❖ Linear Time Invariant systems can be classified according to whether the unit sample response sequence is of finite duration or is of infinite duration i.e. whether or not it has only a finite number of non zero terms. ❖ If the unit sample response sequence of the LTI system is of finite duration, the system is referred to as Finite Impulse Response system. ❖ The system with unit sample response ℎ(푛) = 푎푛푢(푛) is an example for IIR system and the system with unit sample response ℎ(푛) = 2 푓표푟 푛 = −1, 1 { 1 푓표푟 푛 = 0 } is an example for FIR system. 0 표푡ℎ푒푟푤푖푠푒 ∞ ❖ The response 푦(푛) for an input of 푥(푛) has the form 푦(푛) = ∑푘=−∞ 푥(푛 − 푘)ℎ(푘) = 푥(푛 + 1)ℎ(−1) + 푥(푛)ℎ(0) + 푥(푛 − 1)ℎ(1) = 2푥(푛 + 1) + 푥(푛) + 2푥(푛 − 1) This is the difference equation or recurrence relation expressing 푦(푛) in terms of the input only. It does not depend on other output values. ❖ A discrete LTI system can be described by the Nth order linear constant coefficient difference equation as 푁 푀 ∑푘=0 푎푘 푦(푛 − 푘) = ∑푚=0 푏푚 푥(푛 − 푚) ----(1) 1 푁 푀 ❖ From the above eqn., 푦(푛) = [− ∑푘=1 푎푘 푦(푛 − 푘) + ∑푚=0 푏푚 푥(푛 − 푎0 푚)] ---(2) ❖ If some 푎푘, 1 ≤ 푘 ≤ 푁 푖푠 푛표푛 푧푒푟표, the system represented by above eqn.