SOUND QUALITY ADJUSTING DEVICE AND FILTER DEVICE USED THEREFOR, SOUND QUALITY ADJUSTING METHOD, AND FILTER DESIGNING MEHTOD

Information

  • Patent Application
  • 20040161114
  • Publication Number
    20040161114
  • Date Filed
    February 27, 2004
    20 years ago
  • Date Published
    August 19, 2004
    20 years ago
Abstract
A filter circuit is composed of FIR filters, and the filter factor is of a symmetrical type, thereby realizing a linear phase characteristic and preventing phase distortion even if a desired frequency band is emphasized. The first filter factors of a low-pass filter are determined so that the first filter factors may be the terms of a sequence in which the sum of the terms is not zero, the sign of the sum of every other terms is the same as that of the other every other terms, and the sum of the every other terms is equal to that of the other every other terms. Thus, by only changing a part of the signs of the filter factors, second filter factors of a high-pass filter can be simply determined so that they may be the terms of a sequence in which the sum of the terms is zero, the sign of the sum of every other terms is opposite to that of the other every other terms, and the absolute value of the sum of the every other terms is equal to that of the other every other terms.
Description


BACKGROUND OF THE INVENTION

[0002] 1. Field of the Invention


[0003] The present invention relates to a sound quality adjusting device and a filter device used therefor, a sound quality adjusting method, and a filter designing method and is particularly suitable for a device and a method for improving sound quality by emphasizing or de-emphasizing a desired frequency band of a sound signal by digital signal processing.


[0004] 2. Description of the Related Art


[0005] Conventionally various methods are proposed to improve sound quality of output sound in devices for outputting sound signals. A method of performing low-pass filtering and high-pass filtering on input sound signals is relatively simple among such methods.


[0006] In such a sound quality adjusting device, an input sound signal passes through a low-pass filter and a high-pass filter and the gains of an output signal and an input sound signal of the filters are controlled and summed. In this case, a gain of the output from the filter and a gain of the input sound signal are arbitrarily set, so that sound with a desired frequency band can be arbitrarily emphasized.


[0007] For example, when a sound in a low-frequency area (so-called bass) is emphasized, an output signal from the low-pass filter is increased in gain. Further, when a sound in a high-frequency area (so-called treble) is emphasized, an output signal from the high-pass filter is increased in gain.


[0008] In the conventional sound quality adjusting device, it is desirable that the low-pass filter and the high-pass filter both have linear phase characteristics and a gain be perfectly set at 1 (reference value) in all frequency bands when the output signals of the filters are added without controlling gains.


[0009] The linear phase characteristic is demanded for the following reason: when a phase shift is caused by the passage of a sound signal through the filters, sound quality degrades due to phase distortion and sound becomes difficult to hear in some cases (particularly at a low volume level). Moreover, the summed gains are demanded to be perfectly equal to the reference value in all the frequency bands because a state with no sound quality adjustment has to be realized when gain control is absent.


[0010] Conventionally an IIR (Infinite Impulse Response) filter and an FIR (Finite Impulse Response) filter are frequently used as a digital filter. The FIR filter has the following advantages: first, since the transfer factor of the FIR filter has a pole only on the origin of the z-plane, a circuit is always stabilized, and second, linear phase characteristics are achieved with complete accuracy.


[0011] Therefore, in response to the demands, it is desirable to use, in a sound quality adjusting device, a symmetrical FIR filter which is composed of a pair of a low-pass filter and a high-pass filter with symmetrical frequency characteristics. In general the low-pass filter is basically used for the FIR filter and the high-pass filter is derived from the low-pass filter by frequency conversion. Hence, in the symmetrical FIR filter, it is necessary to first design a basic low-pass filter and perform frequency conversion thereon so that a high-pass filter is designed with characteristics symmetrical to those of the low-pass filter.


[0012] Conventionally in frequency conversion for deriving a high-pass filter from an FIR low-pass filter, the cut-off frequency of the filter is converted. To be specific, convolution or the like using a window function, Chebyshev approximation, and so forth is performed based on a ratio of a sampling frequency and a cut-off frequency, so that the transfer factor of the filter is determined. The transfer factor is further changed into a frequency component.


[0013] However, in the frequency conversion using a window function, Chebyshev approximation, and so forth, calculation is extremely complicated. Thus, calculation performed by software increases a processing load and calculation performed by hardware increases a circuit size.


[0014] Further, the frequency characteristics of a filter that are obtained by conventional design methods depend upon a window function and an approximate expression. Thus, when the window function and an approximate expression are not properly set, excellent frequency characteristics cannot be obtained. However, it is generally difficult to properly set a window function and an approximate expression and thus it is quite demanding to design a filter with desired frequency characteristics.


[0015] Moreover, a method of directly determining the filter factors of a high-pass filter and so forth without using frequency conversion is also available. However, in this case, filter factors required for desired frequency characteristics have to be determined by trial and error, so that a design cannot be made with ease.


[0016] The present invention is devised to solve the above-described problems. An object of the present invention is to prevent phase distortion even when a desired frequency band is emphasized, obtain good quality sound on audibility by digital signal processing, and readily design a filter circuit used for such sound quality adjustment.



BRIEF SUMMARY OF THE INVENTION

[0017] A sound quality adjusting device of the present invention for causing an input sound signal to pass through a plurality of digital filters, controlling the gains of the output signals from the plurality of digital filters, summing the sound signals having been subjected to gain control, and outputting the sum, characterized in that the device comprises a first filter for multiplying a signal of each tap of a tapped delay line by several times according to given first filter factors and then performing addition and output, the delay line being made up of a plurality of delay units, and a second filter for multiplying a signal of each tap of a tapped delay line by several times according to given second filter factors and then performing addition and out-put, the delay line being made up of a plurality of delay units, the first filter factors have a symmetrical sequence in which values are set so that the sum is not zero and the sum of every other terms is equal to the sum of the other every other terms with the same signs, and the second filter factors have a symmetrical sequence in which values are set so that the sum is zero and the sum of every other terms is equal to the sum of the other every other terms with opposite signs.


[0018] Another aspect of the present invention is characterized in that in the second filter factors, the signs of values other than the median of the sequence of the first filter factors are changed while causing the absolute values of the sequence to remain the same.


[0019] Still another aspect of the present invention is characterized in that in the second filter factors, the signs of values other than the median of the sequence of the first filter factors are changed while causing the absolute values of the sequence to remain the same, and the median of the sequence is subtracted from a reference value.


[0020] For example, the sequence of the first filter factors is composed of ratios of −1, 0, 9, 16, 9, 0, and −1 and the sequence of the second filter factors is composed of ratios of 1, 0, −9, 16, −9, 0, and 1.


[0021] Still another aspect of the present invention is characterized in that at least one of the first filter and the second filter is cascaded to the subsequent stage of at least one of the first filter and the second filter.


[0022] For example, the first filter and the second filter are cascaded in parallel to the subsequent stage of the first filter, the first filter and the second filter are cascaded in parallel to the subsequent stage of the second filter, control is performed on a gain of an output signal from each of the cascaded filters in the subsequent stage, and sound signals having been subjected to gain control are summed and outputted.


[0023] Further, a filter device of the present invention, characterized in that the device comprises a first filter for multiplying a signal of each tap of a tapped delay line by several times according to given first filter factors and then performing addition and output, the delay line being made up of a plurality of delay units, and a second filter for multiplying a signal of each tap of a tapped delay line by several times according to given second filter factors and then performing addition and output, the delay line being made up of a plurality of delay units, the first filter factors have a symmetrical sequence in which values are set so that the sum is not zero and the sum of every other terms is equal to the sum of the other every other terms with the same signs, and the second filter factors have a symmetrical sequence in which values are set so that the sum is zero and the sum of every other terms is equal to the sum of the other every other terms with opposite signs.


[0024] Moreover, a sound quality adjusting method of the present invention, characterized by comprising: a first filtering step of multiplying a signal of each tap of a tapped delay line, which delays an input sound signal, by several times by using first filter factors and then performing addition and output, the first filter factors having a symmetrical sequence in which values are set so that the sum is not zero and the sum of every other terms is equal to the sum of the other every other terms with the same signs, a second filtering step of multiplying a signal of each tap of a tapped delay line, which delays the input sound signal, by several times by using second filter factors and then performing addition and output, the second filter factors having a symmetrical sequence in which values are set so that the sum is zero and the sum of every other terms is equal to the sum of the other every other terms with opposite signs, a gain controlling step of controlling a gain of the sound signal having passed through the first filtering step and a gain of the sound signal having passed through the second filtering step, and a summing step of summing the sound signals having undergone gain control in the gain controlling step and outputting the sum.


[0025] Further, a filter designing method according to the present invention for designing a plurality of digital filters in which frequency characteristics are complementary to each other and the total gain of the filters serves as a reference value at all frequencies, characterized in that based on first filter factors having a symmetrical sequence in which values are set so that the sum is not zero and the sum of every other terms is equal to the sum of the other every other terms with the same signs, the sequence of the first filter factors is changed, so that second filter factors having a symmetrical sequence are determined in which values are set so that the sum is zero and the sum of every other terms is equal to the sum of the other every other terms with opposite signs, and the first filter factors and the second filter factors are used as the filter factors of the plurality of digital filters.







BRIEF DESCRIPTION OF THE DRAWINGS

[0026]
FIG. 1 is a block diagram showing a schematic structural example of a sound quality adjusting device according to the present embodiment;


[0027]
FIG. 2 is a diagram showing a basic structural example of an FIR filter;


[0028]
FIG. 3 is an explanatory drawing showing filter factors used in the present embodiment;


[0029]
FIG. 4 is a diagram showing frequency-gain characteristics of the filter factors shown in FIG. 3;


[0030]
FIG. 5 is a diagram showing the frequency-gain characteristics of a sequence indicated by [4] of FIG. 3 and a sequence in which some signs are changed;


[0031]
FIGS. 6A to 6C are block diagrams showing the configuration of a three-tap FIR filter;


[0032]
FIGS. 7A and 7B are diagrams showing the frequency characteristics of the three-tap FIR filter;


[0033]
FIGS. 8A to 8C are block diagrams of the configuration of a five-tap FIR filter;


[0034]
FIG. 9 is a diagram showing the frequency characteristics of the five-tap FIR filter;


[0035]
FIG. 10 is a block diagram showing the configuration of a seven-tap FIR filter;


[0036]
FIG. 11 is a diagram showing the frequency characteristics of the seven-tap FIR filter;


[0037]
FIGS. 12A and 12B are block diagrams showing the configuration of the seven-tap FIR filter;


[0038]
FIGS. 13A and 13B are diagrams showing the frequency characteristics of the seven-tap FIR filter;


[0039]
FIG. 14 is a block diagram showing another structural example of the sound quality adjusting device according to the present embodiment;


[0040]
FIGS. 15A to 15D are diagrams showing the frequency characteristics of the cascade connection of the filters;


[0041]
FIG. 16 is a diagram showing the frequency-gain characteristics of a four-channel filter bank;


[0042]
FIG. 17 is a block diagram showing a specific structural example of the sound quality adjusting device shown in FIG. 14;


[0043]
FIG. 18 is a diagram showing a matrix composed of data at the center frequency of each channel;


[0044]
FIG. 19 is a diagram showing matrices used for determining a gain control signal;


[0045]
FIG. 20 is a frequency-gain characteristic diagram showing the results of frequency control performed by the sound quality adjusting device using the four-channel filter bank; and


[0046]
FIGS. 21A and 21B are diagrams for explaining the meaning of a digital basic function used in the present embodiment.







DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS

[0047] An embodiment of the present invention will be described below in accordance with the accompanying drawings.


[0048]
FIG. 1 is a block diagram showing the schematic configuration of a sound quality adjusting device according to the present embodiment. In the sound quality adjusting device of FIG. 1, an input sound signal is caused to pass through a low-pass filter (LPF) 1 and a high-pass filter (HPF) 2, the gains of output signals from the filters are controlled by multipliers 3 and 4, and the results are summed and outputted by an adder 5.


[0049] In such a configuration, it is desirable that the filters 1 and 2 have linear phase characteristics and a resultant gain, which is obtained by summing output signals from the filters 1 and 2 without gain control (L gain=H gain=1), be perfectly set at 1 (reference value) in all frequency bands. Hence, the present embodiment uses an FIR filter as a filter circuit constituting the sound quality adjusting device. This is because a symmetrical sequence of a plurality of factors provided in the filter circuit can achieve linear phase characteristics and stabilize the circuit all the time.


[0050]
FIG. 2 is a diagram showing a basic structural example of the FIR filter. FIG. 2 shows the configuration of a seven-tap FIR filter. In the FIR filter, seven cascaded D-type flip-flops 11 to 17 sequentially delay an input sound signal by one clock CK. Then, signals extracted from the output taps of the D-type flip-flops 11 to 17 are multiplied by filter factors by seven factor units 21 to 27, and the multiplication results are all added and outputted by an adder 30.


[0051] In the present embodiment, a sequence {−1, 0, 9, 16, 9, 0, −1} indicated by [4] of FIG. 3 is used as symmetrical filter factors provided for the FIR filter. The filter factors indicated by [4] have a symmetrical sequence in which the sum is not zero and the sum of every other terms is equal to the sum of the other every other terms with the same signs (−1+9+9+(−1)=16, 0+16+0=16).


[0052] The filter factors indicated by [4] of FIG. 3 are obtained by performing a moving-average calculation once on a digital basic function indicated by [3] of FIG. 3. The digital basic function changes a data value to −1, 1, 8, 8, 1, −1 for each clock. The sequence of the digital basic function is obtained by performing the moving-average calculation twice on a sequence indicated by [1] of FIG. 3.


[0053] Besides, the integer sequence indicated by [4] of FIG. 3 is used as filter factors in the present embodiment. In this case, the sum of all the filter factor values is 32, which serves as a reference value. In reality the values of the sequence are multiplied by {fraction (1/32)} and are used as filter factors in order to standardize a gain at 1. In this case, the reference value is 1.


[0054] Referring to FIGS. 21A and 21B, the meaning of the sequence of the digital basic function will be discussed below.


[0055]
FIGS. 21A and 21B are diagrams showing the results of quadruple oversampling and convolution on the sequence {−1, 0, 9, 16, 9, 0, −1} which is obtained by performing the moving-average calculation once on the digital basic function.


[0056] In FIG. 21A, a series of numeric values on the leftmost column is obtained by performing quadruple oversampling on the original sequence {−1, 0, 9, 16, 9, 0, −1}. Further, numeric values in four columns from the left to the right are obtained by shifting down the numeric values of the leftmost sequence one by one. The column direction of FIG. 21A indicates a time base. Shifting down numeric values is to gradually delay the numeric values of the left-most column.


[0057] Namely numeric values in the second column from the left indicate numeric values obtained by shifting the numeric values of the leftmost column by a quarter phase of a clock 4CK with quadruple frequency. Further, numeric values in the third column from the left indicate numeric values obtained by shifting numeric values in the second column from the left by a quarter phase of the clock 4CK with quadruple frequency, and numeric values in the fourth column from the left indicate numeric values obtained by further shifting numeric values in the third column from the left by a quarter phase of the clock 4CK with quadruple frequency.


[0058] Moreover, numeric values in the fifth column from the left are obtained by adding numeric values in the corresponding rows of the first to fourth columns and dividing the results by four. With the processing on the five columns from the left, quadruple oversampling is performed in a digital fashion together with four-phase convolution.


[0059] Numeric values in four columns from the fifth column to the right are obtained by shifting down numeric values in the fifth column one by one. Further, numeric values in the ninth column from the left are obtained by adding numeric values in the corresponding rows of the fifth to eighth columns and dividing the results by four. With the processing on the nine columns from the left, quadruple oversampling is performed twice in a digital fashion together with four-phase convolution.


[0060] Besides, numeric values in the tenth column from the left are obtained by shifting down numeric values in the ninth column by one. Further, numeric values in the eleventh column (rightmost column) from the left are obtained by adding numeric values in the corresponding rows of the ninth column and the tenth column and dividing the results by two.


[0061] The final numeric values in the rightmost column of FIG. 21A are shown in graph form in FIG. 21B. A function with the waveform of FIG. 21B has a finite value other than “0” only when a sample position along the horizontal axis lies between t1 and t4. In other areas, the function always has a value “0”, that is, the value of the function converges to “0” at the sample positions t1 and t4. In this way, when the function has a finite value other than “0” in a local area and has “0” in other areas, this state is referred to as “finite base.”


[0062] Moreover, the function of FIG. 21B is a sampling function which has the maximum value only on a sample position t5 at the center and has “0” on four sample positions of t1, t2, t3, and t4. The function passes through all the sample points required for data of a smooth waveform.


[0063]
FIG. 4 shows frequency-gain characteristics of the results of FFT (Fast Fourier Transfer) performed on the sequences


[0064] to [4] of FIG. 3. Besides, a gain is standardized at “1” in FIG. 4. As is understood from the characteristic diagram, when the sequence [4] is used as filter factors, the center frequency has a gain of 0.5 and excellent low-pass filter characteristics can be obtained so that no overshoot occurs in a low frequency area and no ringing occurs in a high frequency area.


[0065] The sequence {−1, 0, 9, 16, 9, 0, −1} achieving such low-pass filter characteristics is a basic sampling function of a finite base shown in FIG. 19B. While a conventionally used sampling function converges to “0” on a sample position t =▭▭, the sampling function of FIG. 19B converges to “0” on a finite sample position t=t1, t4.


[0066] Thus, when FET is performed on the sequence, only data corresponding to the range of t=t1 to t4 is significant. It is not true that the data corresponding to a range other than t=t1 to t4 is ignored even though the data should be essentially considered. The data does not have to be considered in theory. Hence, no truncation error occurs. Therefore, by using the sequence as filter factors, it is possible to obtain excellent low-pass filter characteristics without the necessity for truncating factors by a window function. Hence, the sequence is used for the basic low-pass filter.


[0067] The high-pass filter constituting the symmetrical FIR filter with the low-pass filter is derived from the basic low-pass filter. The derived high-pass filter has frequency-gain characteristics which are symmetrical laterally and vertically with respect to the center frequency axis as compared with the basic low-pass filter. Further, when the gain outputs of the basic low-pass filter and the high-pass filter are summed, the gain is perfectly set at 1 (reference value) in all the frequency bands.


[0068] As described above, filter factors used for the basic low-pass filter are {−1, 0, 9, 16, 9, 0, −1}. The sum of the sequence of the filter factors is 32. The sum of every other terms of the sequence is 16 (=(−1)+9+9+(−1)) and the sum of the other every other terms of the sequence is 16 (=0+16+0), which are equal to each other.


[0069] The sum of the sequence is not 0 but 32. This means that the output of a direct current or low-frequency component of an input sound signal is not 0. The sum of every other terms is equal to the sum of the other every other terms in the sequence. This means that the output (output of each tap) of a high-frequency component of the input sound signal remains the same. It is understood that the same characteristics as those of the low-pass filter are obtained.


[0070] On the other hand, regarding filter factors used for the high-pass filter, the signs of values other than the median of the sequence are changed while the absolute values of the sequence are caused to remain the same in order to maintain the symmetrical property with respect to the basic low-pass filter. The sum of the sequence of the filter factors is set at 0 and the sum of every other terms is made equal to the sum of the other every other terms in the sequence with opposite signs. A sequence of filter factors satisfying such conditions is {1, 0, −9, 16, −9, 0, −1}. That is, the sum of the sequence of the filter factors is 0, the sum of every other terms is −16 (=1+(−9)+(−9)+1) and the sum of the other every other terms is 16 (=0+16+0) in the sequence.


[0071] The sum of 0 in the sequence means that the output of a direct current or low-frequency component of the input sound signal is 0. Further, the sum of every other terms is equal to the sum of the other every other terms with opposite signs in the sequence. This means that the output (output of each tap) of the high-frequency component of the input sound signal alternately changes. It is understood that the same characteristics as those of the high-pass filter are obtained.


[0072]
FIG. 5 is a diagram showing frequency-gain characteristics as a result of FET on the sequence {−1, 0, 9, 16, 9, 0, 1} indicated by [4] of FIG. 3 and the sequence {1, 0, −9, 16, −9, 0, −1} in which some signs are changed. Also in FIG. 5, a gain is standardized at 1. As is understood from the characteristic diagram, the frequency characteristics intersect with each other at the gain of 0.5 on the center frequency, the characteristics are laterally and vertically symmetrical, and the total of gains is perfectly set at 1 in all the frequency bands. That is, the frequency characteristics are the same as the characteristics of the symmetrical FIR filter composed of a pair of a low-pass filter and a high-pass filter.


[0073] The above explanation will be described in detail. The following will discuss conditions for designing the symmetrical FIR filter constituting the sound quality adjusting device.


[0074] 1) The FIR filter is composed of a low-pass filter and a high-pass filter that have symmetrical properties and the total of gains is perfectly set at 1 in all the frequency bands.


[0075] 2) Filter factors increase from ends to the center.


[0076] 3) The median of the filter factors is not 0 (median of 0 causes a notch).


[0077] (Three-tap Filter)


[0078]
FIG. 6A is a block diagram showing the basic configuration of a three-tap FIR filter. In FIG. 6A, reference numerals 31 to 33 denote three cascaded D-type flip-flops which sequentially delay an input sound signal by one clock CK.


[0079] Reference numerals 34 to 36 denote three factor units which multiply signals extracted from the output taps of the D-type flip-flops 31 to 33 by several times by using given symmetrical filter factors (a, b, a). Reference numeral 37 denotes an adder which adds the output signals of the factor units 34 to 36 and outputs the result. The filter factors provided for the FIR filter configured thus are properly determined, so that the FIR filter can be designed as a low-pass filter or a high-pass filter.


[0080] When the reference value is assumed to be 1, the three-tap FIR filter serves as a low-pass filter on the following absolute requirements:


[0081] (1) The sum of the sequence of factors is 1 (low-frequency condition)


[0082] (2) A difference is 0 between the sum of every other terms and the sum of the other every other terms in the sequence of factors (highest frequency condition), and the gain of the center frequency of the low-pass filter is set at 0.5 on the following condition:


[0083] (3) A difference is 0.5 between the sum of every other two terms and the sum of the other every other two terms in the sequence of factors (intermediate frequency condition)


[0084] The conditions (1) to (3) are expressed below.Condition (1) . . . 2a+b=1Condition (2) . . . 2a−b=0Condition (3) . . . (a+b)−a=0.5


[0085] Based on the conditions, a=¼ and b=½ are determined. Therefore, the circuit of the low-pass filter is configured as shown in FIG. 6B.


[0086] On the other hand, the three-tap FIR filter serves as a high-pass filter on the following absolute requirements:


[0087] (4) The sum of the sequence of factors is 0 (low-frequency condition)


[0088] (5) A difference is 1 between the sum of every other terms and the other every other terms in the sequence of factors (highest frequency condition), and the gain of the center frequency of the high-pass filter is set at 0.5 on the following condition:


[0089] (6) A difference is 0.5 between the sum of every two terms and the sum of the other every two terms in the sequence of factors (intermediate frequency condition)


[0090] The conditions (4) to (6) are expressed as below.Condition


[0091] (4) . . . 2a+b=0Condition (5) . . . 2a−b=1Condition (6) . . . (a+b)−a=0.5


[0092] Based on the conditions, a=−¼ and b=½ are determined. Therefore, the circuit of the high-pass filter is configured as shown in FIG. 6C.


[0093]
FIG. 7A shows the frequency-gain characteristics of the low-pass filter and the high-pass filter shown in FIGS. 6B and 6C. FIG. 7B is a diagram showing the frequency-phase characteristics of the low-pass filter shown in FIG. 6B. As is understood from the characteristic diagrams, the frequency characteristics of the low-pass filter and the high-pass filter intersect with each other at a gain of 0.5 on the center frequency, the characteristics are laterally and vertically symmetrical, and the total of gains is perfectly set at 1 in all the frequency bands. Further, linear phase characteristics are completely obtained.


[0094] (Five-tap Filter)


[0095]
FIG. 8A is a block diagram showing the basic configuration of a five-tap FIR filter. In FIG. 8A, reference numerals 41 to 45 denote five cascaded D-type flip-flops which sequentially delay an input sound signal by one clock CK.


[0096] Reference numerals 46 to 50 denote five factor units which multiply signals extracted from the output taps of the D-type flip-flops 41 to 45 by several times by using given symmetrical filter factors (a, b, c, b, a). Reference numeral 51 denotes an adder which adds the output signals of the factor units 46 to 50 and outputs the result.


[0097] The five-tap FIR filter serves as a low-pass filter on the following absolute requirements:


[0098] (1) The sum of the sequence of factors is 1 (low-frequency condition)


[0099] (2) A difference is 0 between the sum of every other terms and the sum of the other every other terms in the sequence of factors (highest frequency condition), and the gain of the center frequency of the low-pass filter is set at 0.5 on the following condition:


[0100] (3) A difference is 0.5 between the sum of every two terms and the sum of the other every two terms in the sequence of factors (intermediate frequency condition)


[0101] The conditions (1) to (3) are expressed as below.Condition (1) . . . 2a+2b+c=1Condition (2) . . . 2a+c−2b=0Condition (3) . . . (a+b)−(c+b)+a=0.5


[0102] Based on the conditions, a=b=¼ and c=0 are determined. Therefore, the circuit of the low-pass filter is configured as shown in FIG. 8B. However in this case, since the sequence of filter factors has a median c at 0 and causes a notch, the configuration is not preferable.


[0103] On the other hand, the five-tap FIR filter serves as a high-pass filter on the following absolute requirements:


[0104] (4) The sum of the sequence of factors is 0 (low-frequency condition)


[0105] (5) A difference is 1 between the sum of every other terms and the other every other terms in the sequence of factors (highest frequency condition), and the gain of the center frequency of the high-pass filter is set at 0.5 on the following condition:


[0106] (6) A difference is 0.5 between the sum of every two other two terms and the sum of the other every two terms in the sequence of factors (intermediate frequency condition)


[0107] The conditions (4) to (6) are expressed as below.Condition (4) . . . 2a+2b+c=0Condition (5) . . . 2a+c−2b=1Condition (6) . . . {a+(b+a)}−(b+c)=0.5


[0108] Based on the conditions, a=¼, b=−¼, and c=0 are determined. Therefore, the circuit of the high-pass filter is configured as shown in FIG. 8C. However in this case, since the sequence of filter factors has a median c of 0 and causes a notch, the configuration is not preferable.


[0109]
FIG. 9 is a diagram showing the frequency-gain characteristics of the low-pass filter and the high-pass filter of FIGS. 8B and 8C. As is understood from the characteristic diagram, since the sequence of filters has a median value c of 0, a notch occurs.


[0110] (Seven-tap Filter)


[0111]
FIG. 10 is a block diagram showing the basic configuration of a seven-tap FIR filter. In FIG. 10, reference numerals 61 to 67 denote seven cascaded D-type flip-flops which sequentially delay an input sound signal by one clock CK.


[0112] Reference numerals 68 to 74 denote seven factor units which multiply signals extracted from the output taps of the D-type flip-flops 61 to 67 by several times by using given symmetrical filter factors (a, b, c, d, c, b, a). Reference numeral 75 denotes an adder which adds the output signals of the factor units 68 to 74 and outputs the result.


[0113] Filter factors provided for the FIR filter configured thus are properly determined, so that the FIR filter can be designed as a low-pass filter or a high-pass filter.


[0114] The seven-tap FIR filter serves as a low-pass filter on the following absolute requirements:


[0115] (1) The sum of the sequence of factors is 1 (low-frequency condition)


[0116] (2) A difference is 0 between the sum of every other terms and the sum of the other every other terms in the sequence of factors (highest frequency condition), and the gain of the center frequency of the low-pass filter is set at 0.5 on the following condition:


[0117] (3) A difference is 0.5 between the sum of every other two terms and the sum of the other every other two terms in the sequence of factors (intermediate frequency condition)


[0118] The conditions (1) to (3) are expressed as below.Condition (1) . . . 2a+2b+2c+d=1Condition (2) . . . 2a+2c−2b−d=0Condition (3) . . . {a+(d+c)}−{(b+c)+(b+a)}=d−2b=0.5


[0119] Since d+2b=½ is determined based on the conditions (1) and (2), b=0 and d=½ are determined based on condition (3).


[0120] As a result, the following combinations are available as factors a and c.a=−{fraction (1/32)}, c={fraction (9/32)}a=−{fraction (2/32)}, c={fraction (10/32)}a=−{fraction (3/32)}, c={fraction (11/32)}a=−{fraction (4/32)}, c={fraction (12/32)}


[0121]
FIG. 11 is a diagram showing frequency-gain characteristics obtained when four patterns of combinations of b=0 and d=½ and a and c are provided as the sequence of filter factors. As shown in FIG. 11, in any of the four patterns of the sequence, the frequency characteristics pass through three points A, B, and C in FIG. 11 (the center frequency has a gain of 0.5 at point B). However, the vertically symmetrical property found only when a=−{fraction (1/32)} and c={fraction (9/32)} are established. Therefore, this combination is used for the factors a and c. In this case, the circuit of the low-pass filter is configured as shown in FIG. 12A.


[0122] As is evident from the above description, the seven-tap low-pass filter has laterally and vertically symmetrical frequency-gain characteristics only when the sequence of filter factors is {−1, 0, 9, 16, 9, 0, −1}. Therefore, the sequence {−1, 1, 8, 8, 1, −1} of a digital basic factor and the sequence {−1, 0, 9, 16, 9, 0, −1}, which is obtained by performing a moving-average calculation once on the digital basic function, are quite useful in digital signal processing.


[0123] On the other hand, the seven-tap FIR filter serves as a high-pass filter on the following absolute requirements:


[0124] (4) The sum of the sequence of factors is 0 (low-frequency condition)


[0125] (5) A difference is 1 between the sum of every other terms and the sum of the other every other terms in the sequence of factors (highest frequency condition), and the gain of the center frequency of the high-pass filter is set at 0.5 on the following condition:


[0126] (6) A difference is 0.5 between the sum of every other two terms and the sum of the other every other two terms in the sequence of factors (intermediate frequency condition)


[0127] The conditions (4) to (6) are expressed as below:Condition (4) . . . 2a+2b+2c+d=0Condition (5) . . . 2a+2c−2b−d=1Condition (6) . . . {a+(d+c)}−{(b+c)+(b+a)}=d−2b=0.5


[0128] Based on conditions (4) and (5), d+2b=½ is determined. Thus, b=0 and d=½ are determined based on condition (6).


[0129] According to the results, as with the low-pass filter, the combination of a={fraction (1/32)} and c=−{fraction (9/32)} is used for the values of the factors a and c. In this case, the circuit of the high-pass filter is configured as shown in FIG. 12B. As is understood from the above description, the seven-tap high-pass filter has laterally and vertically symmetrical frequency-gain characteristics only in the sequence of filter factors {1, 0, −9, 16, −9, 0, 1}.


[0130]
FIG. 13A shows the frequency-gain characteristics of the low-pass filter and the high-pass filter of FIGS. 12A and 12B. FIG. 13B is a diagram showing the frequency-phase characteristics of the low-pass filter and the high-pass filter of FIGS. 12A and 12B. As is understood from the characteristic diagrams, the frequency characteristics of the low-pass filter and the high-pass filter intersect with each other at a gain of 0.5 on the center frequency, the characteristics are laterally and vertically symmetrical, and the total of gains is perfectly set at 1 in all the frequency bands. Further, linear phase characteristics are completely obtained.


[0131] As described above, according to the present embodiment, the filter of the sound quality adjusting device is constituted of the FIR filter and symmetrical filter factors are provided in the filter, thereby achieving linear phase characteristics. Therefore, even when a desired frequency band is emphasized, phase distortion does not occur and good quality sound can be obtained on audibility by digital signal processing.


[0132] Further, according to the present embodiment, the sequence satisfying the predetermined conditions is provided as filter factors for the FIR low-pass filter. Thus, the high-pass filter can be designed simply by changing some signs of filter factors of the low-pass filter. Hence, it is possible to design a symmetrical FIR filter (a pair of the low-pass filter and the high-pass filter) for sound quality adjustment with great ease.


[0133] The above explanation described an example where based on the low-pass filter using the sequence with ratios of {−1, 0, 9, 16, 9, 0, −1} as filter factors, the filter factors are changed so as to determine the filter factors of the high-pass filter. Conversely, based on the high-pass filter using the sequence with ratios of {1, 0, −9, 16, −9, 0, 1} as filter factors, the filter factors may be changed so as to determine the filter factors of the low-pass filter.


[0134] The following will describe an application example of the above-described symmetrical FIR filter. FIG. 14 is a block diagram showing another schematic structural example of the sound quality adjusting device according to the present embodiment. In the sound quality adjusting device of FIG. 14, a low-pass filter 83 and a high-pass filter 84 are cascaded in parallel in the subsequent stage of a low-pass filter 81, which is configured as the low-pass filter 1 of FIG. 1. Moreover, a high-pass filter 85 and a low-pass filter 86 are cascaded in parallel in the subsequent stage of a high-pass filter 82, which is configured as the high-pass filter 2 of FIG. 1.


[0135] In this configuration, the frequency axes of the cascaded filters 83 to 86 in the subsequent stage is half the frequency axes of the filters 81 and 82 in the previous stage. FIGS. 15A to 15D show frequency-gain characteristics in the cascade connection of the filters 81 to 86. In FIGS. 15A to 15D, the frequency characteristics of the filters 81 to 86 are indicated by reference numerals with ′. FIGS. 15A to 15D show frequency characteristics on the cascade connection of the low-pass filter 81 and the low-pass filter 83 in the subsequent stage, frequency characteristics on the cascade connection of the low-pass filter 81 and the high-pass filter 84 in the subsequent stage, frequency characteristics on the cascade connection of the high-pass filter 82 and the high-pass filter 85 in the subsequent stage, and frequency characteristics on the cascade connection of the high-pass filter 82 and the low-pass filter 86 in the subsequent stage, respectively.


[0136] With such cascade connections, an overlap between the two frequency characteristics is extracted as shown in FIGS. 15A to 15D. Thus, the filters 83 to 86 in the subsequent stage output four-channel sound signals having different frequency characteristics so that a pass frequency band is slightly shifted from a low-frequency band to a high-frequency band. FIG. 16 is a diagram showing the frequency-gain characteristics of all the four-channel sound signals. For convenience of explanation, the sound signals outputted from the filters 83 to 86 are referred to as L output, ML output, MH output, and H output in increasing order of a pass frequency band.


[0137] Four multipliers 87 to 90 shown in FIG. 14 control the gains of the output signals from the filters 83 to 86 according to given gain control signals (L gain, ML gain, MH gain, H gain). An adder 91 sums all the sound signals having been subjected to gain control by the multipliers 87 to 90 and the adder 91 outputs the sum.


[0138]
FIG. 17 is a block diagram showing a specific structural example of the sound quality adjusting device which is schematically shown in FIG. 14. In FIG. 17, constituent elements having the same functions as those of FIG. 14 are indicated by the same reference numerals. In the filters 81 and 82 of the previous stage, six cascaded D-type flip-flops sequentially delay an input sound signal by one clock CK. Then, signals extracted from the input/output taps of the D-type flip-flops are multiplied by filter factors of a sequence {−1, 0, 9, 16, 9, 0, −1}/32 or {1, 0, −9, 16, −9, 0, 1}/32 by five factor units, and the multiplication results are all added and outputted.


[0139] Further, in the filters 83 to 86 of the subsequent stage, since the frequency axes are half those of the filters 81 and 82 of the previous stage, twelve D-type flip-flops, which are twice the D-type flip-flops of the previous stage, are cascaded to constitute a tapped delay line, and the taps for providing five factor units are spaced twice the previous stage.


[0140] That is, in the filters 83 to 86 of the subsequent stage, the cascaded twelve D-type flip-flops sequentially delay an input sound signal by one clock CK. Then, signals extracted from the input/output taps of the D-type flip-flops are multiplied by filter factors of a sequence {−1, 0, 9, 16, 9, 0, −1}/32 or {1, 0, −9, 16, −9, 0, 1}/32 by five factor units, and the multiplication results are all added and outputted.


[0141] The four multipliers 87 to 90 control the gains of the out-put signals (L output, ML output, MH output, and H out-put) from the filters 83 to 86 according to given gain control signals (L gain, ML gain, MH gain, H gain). The adder 91 sums all the sound signals having been subjected to gain control by the multipliers 87 to 90 and the adder 91 outputs the sum. The gain control signals are obtained by a matrix calculation section 100.


[0142] Besides, in the filters 83 to 86 of the subsequent stage, a method of setting the frequency axis at half that of the filters 81 and 82 of the previous stage is not limited to the example of FIG. 17. For example, the filters 83 to 86 in the subsequent stage may be configured as the filters 81 and 82 in the previous stage, and the frequency of the clock to the D-type flip-flops in the subsequent stage may be set at half that of the previous stage. With this configuration, it is possible to reduce the number of uses of the D-type flip-flops and simplify the circuit configuration.


[0143] The following will describe a calculation example of the matrix calculation section 100 (method of controlling the frequency characteristics of the sound quality adjusting device).


[0144] When the gain control signals (L gain, ML gain, MH gain, and H gain) of each channel are all set at 1, each channel has the frequency-gain characteristics shown in FIG. 16. As is evident from FIG. 16, a gain at a certain frequency is obtained as the total of four-channel gains.


[0145] Therefore, in order to control the overall frequency characteristics, it is necessary to calculate a gain component at the center frequency of each channel to obtain the gain control signal of each channel. Hence, at the center frequency of each channel (frequency values of 9, 25, 41, and 57 in FIG. 16), a gain component of each channel is first extracted as follows:


[0146] At the center frequency (frequency value=9) of L output, each channel has a gain component of: 0.938 0.058 0 0(L, ML, MH, and H from the left). Similarly at the center frequencies of ML output, MH output, and H output, each channel has gain components of:0.045 0.728 0.214 0.0130.013 0.214 0.728 0.0450 0 0.058 0.938


[0147] The gain components are expressed as a matrix (matrix A) in FIG. 18.


[0148] Meanwhile, the user of the sound quality adjusting device arbitrarily sets desired values G1 to G4 as gains at the center frequencies of the channels. The matrix calculation section 100 performs a matrix operation discussed below by using the matrix A, which indicates the gain components of the center frequencies in FIG. 18, and the desired gain values G1 to G4 at the center frequencies that are set by the user, so that a gain control signal (L gain, ML gain, MH gain, and H gain) of each channel is determined.


[0149] That is, as shown in FIG. 19, the values of each column in the matrix A are replaced with desired gain values G1 to G4 to form four matrixes B1 to B4, and the following matrix operation is performed:L gain=matrix B1/matrix A=0.585ML gain=matrix B2/matrix A=0.893MH gain=matrix B3/matrix A=1.419H gain=matrix B4/matrix A=1.512


[0150] When these gain control signals are used as the multiplier factors of the multipliers 87 to 90, an obtained sound signal has frequency-gain characteristics shown in FIG. 20.


[0151] In this way, according to the present embodiment, the gain control signal of each channel can be determined only by performing a simple matrix operation. Additionally, the matrix A from which the matrix operation is originated is peculiar to a four-channel filter bank. Thus, the matrix A can be stored beforehand as numerical data or table information and so forth. Hence, it is possible to control frequency characteristics with quite a simple operation according to predetermined fixed values and desired values set by the user.


[0152] The technique for sound quality adjustment in the present embodiment can be realized any one of a hardware structure, DSP, and software. The above explanation described the example of a hardware configuration. For example, when the technique is realized by software, the sound quality adjusting device of the present embodiment is actually constituted of the CPU or MPU, RAM, ROM, and so forth and are realized by operating programs stored in the RAM and ROM.


[0153] Therefore, a program for operating a computer to perform the functions of the present embodiment is recorded in a recording medium such as a CD-ROM and the computer is caused to read the program, so that the technique is realized. A recording medium for recording the program includes a flexible disk, a hard disk, a magnetic tape, an optical disk, a magneto-optical disk, a DVD, and a non-volatile memory card in addition to a CD-ROM. Further, the programs may be downloaded to the computer via a network such as the Internet.


[0154] Such a program is included in the present embodiment of the present invention not only when the computer executes the supplied program so as to realize the functions of the present embodiment but also when the functions of the embodiment are realized in cooperation with an OS (operating system) operating in the computer or another application software and so on and when the processing of the supplied program is entirely or partly performed by a feature expansion board and a feature expansion unit and realizes the functions of the present embodiment.


[0155] Further, in the above-described embodiment, the sequence with ratios of {−1, 0, 9, 16, 9, 0, −1} was used as the filter factors of the low-pass filter and the sequence with ratios of {1, 0, −9, 16, −9, 0, 1} was used as the filter factors of the high-pass filter. Other sequences may be used as filter factors as long as the conditions described in the present embodiment are satisfied.


[0156] Besides, the above embodiment described an example of a two-channel filter bank in FIG. 1 and an example of a four-channel filter bank in FIG. 14. A pair of the low-pass filter and the high-pass filter is cascaded in n stages, so that a 2n channel filter bank can be configured.


[0157] Further, the cascade connection is not limited to FIG. 14. That is, any configuration is included in the present invention as long as at least one of a low-pass filter and a high-pass filter is cascaded in the subsequent stage of at least one of a low-pass filter and a high-pass filter.


[0158] Moreover, in the present embodiment, the frequency characteristics of the low-pass filter and the high-pass filter are laterally and vertically symmetrical in a perfect manner as shown in FIG. 5. The frequency characteristics are not particularly limited. That is, any filer factors may be used as long as frequency characteristics are complementary to each other and the total gain of each filter is equal to the reference value at all frequencies. Such filter factors can be obtained by reversing the signs of values other than the median of a sequence of basic filter factors while the absolute values of the sequence are caused to remain the same, and subtracting the median of the sequence from the reference value. In the case of a symmetrical filter, both of the above method and the method of the present embodiment can design the filter with completely the same filter factors.


[0159] Additionally, the embodiment just described one example of embodying the present invention and thus the technical scope of the present invention should not be interpreted in a limited manner. That is, the present invention may be embodied in various forms without departing from the spirit or main characteristics of the invention.


[0160] As described above, according to the present invention, it is possible to prevent phase distortion even when a desired frequency band is emphasized, obtain good quality sound on audibility by digital signal processing, and readily design a filter circuit used for sound quality adjustment.



INDUSTRIAL APPLICABILITY

[0161] The present invention is useful for preventing phase distortion even when a desired frequency band is emphasized, obtaining good quality sound on audibility by digital signal processing, and readily designing a filter circuit used for sound quality adjustment.


Claims
  • 1. A sound quality adjusting device for causing an input sound signal to pass through a plurality of digital filters, controlling gains of output signals from the plurality of digital filters, summing sound signals having been subjected to gain control, and outputting a sum, the device comprises: a first filter for multiplying a signal of each tap of a tapped delay line by several times according to given first filter factors and then performing addition and out-put, the delay line being made up of a plurality of delay units; and a second filter for multiplying a signal of each tap of a tapped delay line by several times according to given second filter factors and then performing addition and output, the delay line being made up of a plurality of delay units; wherein the first filter factors have a symmetrical sequence in which values are set so that a sum is not zero and a sum of every other terms is equal to a sum of the other every other terms with the same signs; and the second filter factors have a symmetrical sequence in which values are set so that a sum is zero and a sum of every other terms is equal to a sum of the other every other terms with opposite signs.
  • 2. The sound quality adjusting device according to claim 1, in the second filter factors, signs of values other than a median of the sequence of the first filter factors are changed while causing absolute values of the sequence to remain the same.
  • 3. The sound quality adjusting device according to claim 1, in the second filter factors, signs of values other than a median of the sequence of the first filter factors are changed while causing absolute values of the sequence to remain the same, and the median of the sequence is subtracted from a reference value.
  • 4. The sound quality adjusting device according to claim 1, the sequence of the first filter factors is composed of ratios of −1, 0, 9, 16, 9, 0, and −1 and the sequence of the second filter factors is composed of ratios of 1, 0, −9, 16, −9, 0, and 1.
  • 5. The sound quality adjusting device according to claim 1, at least one of the first filter and the second filter is cascaded to a subsequent stage of at least one of the first filter and the second filter.
  • 6. The sound quality adjusting device according to claim 1, the first filter and the second filter are cascaded in parallel to a subsequent stage of the first filter, the first filter and the second filter are cascaded in parallel to a subsequent stage of the second filter, control is performed on a gain of an output signal from each of the cascaded filters in the subsequent stage, and sound signals having been subjected to gain control are summed and outputted.
  • 7. A filter device, comprising: a first filter for multiplying a signal of each tap of a tapped delay line by several times according to given first filter factors and then performing addition and out-put, the delay line being made up of a plurality of delay units; and a second filter for multiplying a signal of each tap of a tapped delay line by several times according to given second filter factors and then performing addition and output, the delay line being made up of a plurality of delay units; wherein the first filter factors have a symmetrical sequence in which values are set so that a sum is not zero and a sum of every other terms is equal to a sum of the other every other terms with the same signs; and the second filter factors have a symmetrical sequence in which values are set so that a sum is zero and a sum of every other terms is equal to a sum of the other every other terms with opposite signs.
  • 8. The filter device according to claim 7, in the second filter factors, signs of values other than a median of the sequence of the first filter factors are changed while causing absolute values of the sequence to remain the same.
  • 9. The filter device according to claim 7, in the second filter factors, signs of values other than a median of the sequence of the first filter factors are changed while causing absolute values of the sequence to remain the same, and the median of the sequence is subtracted from a reference value.
  • 10. The filter device according to claim 7, the sequence of the first filter factors is composed of ratios of −1, 0, 9, 16, 9, 0, and −1 and the sequence of the second filter factors is composed of ratios of 1, 0, −9, 16, −9, 0, and 1.
  • 11. The filter device according to claim 7, at least one of the first filter and the second filter is cascaded to a subsequent stage of at least one of the first filter and the second filter.
  • 12. A sound quality adjusting method, comprising: a first filtering step of multiplying a signal of each tap of a tapped delay line, which delays an input sound signal, by several times by using first filter factors and then performing addition and output, the first filter factors having a symmetrical sequence in which values are set so that a sum is not zero and a sum of every other terms is equal to a sum of the other every other terms with the same signs; a second filtering step of multiplying a signal of each tap of a tapped delay line, which delays an input sound signal, by several times by using second filter factors and then performing addition and output, the second filter factors having a symmetrical sequence in which values are set so that a sum is zero and a sum of every other terms is equal to a sum of the other every other terms with opposite signs; a gain controlling step of controlling a gain of a sound signal having passed through the first filtering step and a gain of a sound signal having passed through the second filtering step; and a summing step of summing the sound signals having undergone gain control in the gain controlling step and outputting a sum.
  • 13. The sound quality adjusting method according to claim 12, the sequence of the first filter factors is composed of ratios of −1, 0, 9, 16, 9, 0, and −1 and the sequence of the second filter factors is composed of ratios of 1, 0, −9, 16, −9, 0, and 1.
  • 14. A filter designing method for designing a plurality of digital filters in which frequency characteristics are complementary to each other and a total gain of the filters serves as a reference value at all frequencies, based on first filter factors having a symmetrical sequence in which values are set so that a sum is not zero and a sum of every other terms is equal to a sum of the other every other terms with the same signs, the sequence of the first filter factors is changed, so that second filter factors having a symmetrical sequence are determined in which values are set so that a sum is zero and a sum of every other terms is equal to a sum of the other every other terms with opposite signs, and the first filter factors and the second filter factors are used as the filter factors of the plurality of digital filters.
  • 15. A filter designing method for designing a plurality of digital filters in which frequency characteristics are complementary to each other and a total gain of the filters serves as a reference value at all frequencies, based on second filter factors having a symmetrical sequence in which values are set so that a sum is zero and a sum of every other terms is equal to a sum of the other every other terms with opposite signs, the sequence of the second filter factors is changed, so that first filter factors having a symmetrical sequence are determined in which values are set so that a sum is not zero and a sum of every other terms is equal to a sum of the other every other terms with the same signs, and the first filter factors and the second filter factors are used as the filter factors of the plurality of digital filters.
Priority Claims (1)
Number Date Country Kind
2001-273350 Sep 2001 JP
CROSS REFERENCE TO RELATED APPLICATIONS

[0001] This Application is a Continuation of application PCT/JP02/09047 filed on Sep. 5, 2002, the entire contents of which are incorporated herein by reference. PCT/JP02/09047 claims priority from Japanese application 2001-273350 filed on Sep. 10, 2001.

Continuations (1)
Number Date Country
Parent PCT/JP02/09047 Sep 2002 US
Child 10708394 Feb 2004 US