LINEAR-PHASE FIR AUDIO FILTER, PRODUCTION METHOD AND SIGNAL PROCESSOR
20210211118 ยท 2021-07-08
Inventors
Cpc classification
International classification
Abstract
The invention relates to a method for producing a linear-phase digital FIR filter (4) from two sub-filters (6a, b) for an audio signal (AU, AF), in which method the sub-filters (6a, b) are provided as sub-sets (Ta, b) having numbers (Ma, b) of coefficients, a lower cutoff frequency (Ga, b) of the particular sub-filter (6a, b) being greater than the sampling frequency of the audio signal (AU, AF) divided by the number (Ma, b), the sub-sets (Ta, b) are linearly convoluted with one another so as to form a total set (SU) having a number (L) of coefficients greater than the numbers (Ma, b), and the total set (SU) is symmetrically reduced to a number (Z) less than the number (L), so as to form a reduced total set (SK) of the filter (4). A linear-phase digital FIR filter (4) for an audio signal (AU, AF) is created by the method. A signal processor (2) for an audio signal (AU, AF) contains the filter (4).
Claims
1. A method for generating a linear-phase digital FIR filter (4) for an audio signal (AU, AF), wherein the filter (4) comprises two individual linear-phase digital FIR subfilters (6a,b) for respectively subfiltering the audio signal (AU, AF), in which: the two subfilters (6a,b) are provided as subsets (Ta,b) having a respective number (Ma,b) of coefficients, wherein a lower limit frequency (Ga,b) of the respective subfilter (6a,b) is greater than the ratio of the sampling frequency of the audio signal (AU, AF) divided by the respective number (Ma,b), the two subsets (Ta,b) are linearly convoluted with one another to form a sum set (SU) of which the number (L) of coefficients is the greater of the respective numbers (Ma,b) of the subsets (Ta,b), and the sum set (SU) is symmetrically truncated to a number (Z) which is less than the number (L), resulting in a truncated sum set (SK), in order to generate the filter (4) according to the truncated sum set (SK).
2. The method as claimed in claim 1, wherein the subsets (Ta,b) are convoluted to form the sum set (SU) by means of a direct linear convolution in the time domain, or the subsets (Ta,b) are indirectly linearly convoluted by Fourier-transforming the subsets (Ta,b) into the frequency domain, and complex-multiplying the transforms to form a sum transform, and forming the coefficients of the sum set (SU) as the real component of a subsequent inverse Fourier transform of the sum transform, or the subsets (Ta,b) are indirectly linearly convoluted by Fourier-transforming the subsets (Ta,b) into the frequency domain, and, for the case that the subfilters (6a,b) have the same number (Ma,b) of coefficients, performing scalar multiplication of the complex-valued one transform by the value of the complex-valued other transform to form a sum transform, and forming the coefficients of the sum set (SU) as the real component of a subsequent inverse Fourier transform of the sum transforms.
3. The method as claimed in claim 1, wherein the sum set (SU) is truncated via a window function by means of weighting.
4. The method as claimed in claim 3, wherein a function acting predominantly in a boundary range of a maximum of 20% is used as a window function.
5. The method as claimed in claim 1, wherein a shelving filter is used as a first or second subfilter (6a,b).
6. The method as claimed in claim 5, wherein the shelving filter has an attenuation having a constant value for frequencies below a lower limit frequency (6a,b), and has an attenuation for higher frequencies which is generally not equal to the constant value.
7. The method as claimed in claim 1, wherein a filter having a lower crossover frequency which is higher than the limit frequency (Ga,b) is used as a first or second subfilter (6a,b).
8. The method as claimed in claim 5, wherein a band filter (8a,b) or a high-pass filter is used as such a subfilter (6a,b).
9. A linear-phase digital FIR filter (4) for an audio signal (AU, AF), wherein said filter is generated via a method as claimed in claim 1.
10. A signal processor (2) for an audio signal (AU, AF), wherein said processor comprises a filter (4) as claimed in claim 9.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Additional features, effects, and advantages of the present invention will result from the following description of a preferred exemplary embodiment of the present invention and the attached figures. The following are depicted as schematic diagrams:
[0049]
[0050]
[0051]
[0052]
[0053]
[0054]
DETAILED DESCRIPTION
[0055]
[0056]
[0057] In the method, first, the two subfilters 6a,b are provided with their original full-fledged subsets Ta,b of coefficients. The sampling frequency for the audio signal AU, AF, here, 44.1 kHz, divided by the number Ma,b of coefficients (subsets Ta,b), here, 513 in each case, is approximately 86 Hz, and is respectively less than the lower limit frequency Ga,b of the subfilters 6a,b, here, Gb =1 kHz for the shelving filter (subfilter 6b) and Ga=1.8 kHz for the band-pass filter (subfilter 6a).
[0058] In a convolution step SF, the two subsets Ta,b are now linearly convoluted with one another to form a sum set SU. Said sum set now has the length or number (L) of coefficients. In the example, a direct linear convolution of the two filter coefficient sets or subsets Ta,b takes place in the time domain. The number L results in L=number(Ta)+number(Tb)1=513+5131=1025. The filter formed by the sum set SU of coefficients (sum filter, untruncated) now merges the characteristics of the two subfilters 6a,b.
[0059] Subsequently, in a truncation step SZ, a symmetrical truncation of the sum set SU is performed, resulting in a truncated sum set SK having a number Z=513 of coefficients. This takes place by using a Tukey window function having a parameter alpha of at least () 0.9. The truncated sum set SK now describes the filter 4.
[0060]
[0061] For filters which were generated with the aid of the method according to
[0062]
[0063]
[0064]
[0065] The phase response of the merged filter 4 also corresponds highly precisely to that of the original subfilter 6a (loudspeaker band filter). The phase linearity of the original (sub)filter is thus maintained.