Calculation of filter factors for digital filter

Abstract: An apparatus for calculating a filter factor for a digital filter (36) which can be made with a simple construction and in which the time period for calculation can be shortened as compared with conventional techniques. The apparatus comprises inputting means including amplitude inputting means (31) for inputting a desirable amplitude frequency property and phase inputting means (32) for inputting a desirable phase frequency property; reverse-Fourier transformation means (34) for obtaining an impulse response corresponding to a transfer function having the inputted amplitude frequency property and the inputted phase and frequency property; and setting means (35) for setting to said external filter the impulse response obtained by the reserve-Fourier transformation, as a filter factor.

Description: The present invention relates generally to a transversal filter, or finite impulse response filter, (which will be referred to as FIR filter) for realizing a desirable frequency property (characteristic) by convolution integration of a finite number of factors (which will be referred to as FIR factor) and delayed signals, and more particularly to method and apparatus for obtaining (designing) the FIR factor so as to realize the desirable frequency property. FIR filters have been employed for various systems such as tone controller for the purpose of arbitrarily obtaining a frequency characteristic. The desirable frequency characteristic obtained thereby is generally expressed by an amplitude-frequency characteristic (power spectrum), which does not contain phase information. Thus, the FIR factor is a time function and cannot be obtained directly by means of the inverse (reverse)-Fourier transformation thereof. One known method for obtaining the phase information from a power spectrum is to use the Hilbert transformation, thereby obtaining a FIR factor for realizing a desirable amplitude frequency property as disclosed in a document (EA85-44) published by Acoustic Academic Society and Electric-Acoustic Society, 1985, for example. This method will be briefly described hereinbelow with reference to Fig. 14. The Hilbert transformation is a method for conversion of a real variable function or imaginary variable function into a complex variable function, as known from ""Foundation of Digital Signal Processing" published by Ohm-Sha, for example. That is, when an amplitude frequency property is as indicated by a solid line 11 in (a) of Fig. 14, assuming the amplitude frequency property as a real variable function, the Hilbert transformation of the real variable function 11 is effected and results in a real variable function as indicated by a solid line 12 in (b) of Fig. 14 wherein a dotted line 13 represents an imaginary variable function. Here, on the contrary, an amplitude frequency property is derived from the complex variable function obtained by the above Hilbert transformation as indicated by a solid line 14 in (c) of Fig. 14. As seen from (c) of Fig. 14, this-obtained amplitude frequency property 14 is different from the desirable frequency property indicated by a dotted line 11 in (c) of Fig. 14. Therefore, in order to reduce the difference therebetween, the desirable frequency property is controlled by a percentage of the difference with respect to the respective frequencies and again Hilbert-transformed to obtain an amplitude frequency property which is in turn compared with the desirable ammplitude frequency characteristic. The successive comparison therebetween results in obtaining a complex variable function for a desirable amplitude frequency property usable in practice. A FIR factor can be obtained by the inverse-Fourier transformation of the obtained complex variable function. According to the above-mentioned documents, when the Hilbert transformation is considered as a discrete-time system, the transformation equations are expessed as follows. where H(k) represents a complex variable function to be obtained and P(m) is a real variable function. In the Hilbert transformation, the value obtained from the equation (2) can be obtained in advance and stored as a data table. However, because P(m) in the above equation (1) is varied, operation of sum of products is required for realization of the equation (1), and for performing the Hilbert transformation at the point N, the operation of sum of products is performed at least N 2 times. The N 2 -time operation of sum of products determine the transforming time of the Hilbert transformation and the scale of the transformation-arithemetic unit. Since the transforming time thereof and the unit scale are dependent upon the frequency band and frequency resolution, difficulty is encountered to achieve the reduction thereof. Furthermore, the second-mentioned document discloses a method for obtaining phase information from the power spectrum wherein a transfromation is effected in terms of linear phase to obtain a FIR factor for realizing a desirable frequency property. That is, when the linear phase transformation is considered in a discrete-time system, the transformation equations are expressed as follows. Hr(k) = A(k) · cos{-(N - 1)/N · πk} Hi(k) = A(k) · sin{-(N - 1)/N · πk} where Hr(k) is a real variable function obtained, Hi(k) is an imaginary variable function also obtained, and A(k) represents an amplitude freqauency property. However, in the equations (3) and (4), even if cos{-(N - 1)/N · πk} and sin{-(N - 1)/N · πk} can be obtained in advance, multiplication must be made at least N·2 times in the case of performing the linear phase transformation at the point N. The N·2-time multiplication determines the transforming time of the linear phase transformation. The linear-phase transformation time depends upon the frequency band and frequency resolution determined, resulting in difficulty of the reduction thereof. The present invention has been developed in order to remove the above-mentioned drawbacks inherent to the conventional techniques. It is therefore an object of the present invention to provide new and improved method and apparatus for calculating a filter factor which are capable of reducing the calculation time, the filter-factor calculating apparatus being made with a simple structure. In accordance with the present invention, there is provided a filter-factor calculating apparatus comprising: amplitude inputting means for inputting a desired amplitude frequency property A(ω) defined for an angular frequency range from ω=0 to 2π; frequency property inputting means for inputting an arbitrary frequency property relating to a phase frequency property (ω) defined for an angular frequency range from ω=0 to 2π; phase calculating means for calculating the phase frequency property from the arbitrary frequency property according to a relation of a Hilbert transformation; reverse-Fourier transformation means for performing a reverse-Fourier transformation of a transfer function having the desired amplitude frequency property and the property calculated by the phase calculating means to obtain an impulse response corresponding to said transfer function; and setting means for setting the impulse response obtained by the reserve-Fourier transformation, as a filter factor of an external filter. So that the invention may be more fully understood, the following description is given, by way of example only, with reference to the accompanying drawings in which: Fig. 1 is a block diagram showing a filter-factor calculating apparatus according to a first embodiment of the present invention; Fig. 2 is an illustration for describing a determining method of an amplitude frequency property; Fig. 3 is a block diagram showing a system having two FIR filters; Fig. 4 is a block diagram showing a filter-factor calculating apparatus according to a second embodiment of the present invention; Fig. 5 is a block diagram showing a filter-factor calculating apparatus according to a third embodiment of the present invention; Fig. 6 is a block diagram for describing a filter-factor calculating apparatus according to a fourth embodiment of the present invention; Fig. 7 shows the input frequency property and divided frequency property in the fourth embodiment; Fig. 8 shows the other input frequency property; Fig. 9 is a graphic diagram for describing a correction of the division frequency property; Fig. 10 is a graphic diagram showing an input frequency property and a division frequency property in fifth embodiment of the present invention; Fig. 11 is a block diagram showing a sixth embodiment of the present invention; Fig. 12 is an illustration of the display portion of the sixth embodiment; Fig. 13 is a perspective view of the input portion of the sixth embodiment; and Fig. 14 is a graphic diagram showing a frequency property based on the Hilbert transformation of an input desirable frequency characteristic. A first embodiment of the present invention will be described hereinbelow with reference to Fig. 1. In Fig. 1, illustrated at numeral 31 is an amplitude input circuit for input a desirable amplitude frequency property and illustrated at numeral 32 is a correction property input circuit for inputting the reverse amplitude frequency property of an amplitude frequency property of an object to be phase-corrected (for example, reverse amplitude frequency property of a speaker) or for automatically producing the reverse property of an inputted amplitude frequency property of an object for the phase correction. The correction property input circuit 32 is coupled to a phase calculation circuit 33 for obtaining a phase frequency property on the basis of the amplitude and frequency characteristic inputted therefrom in accordance with the relation of the Hilbert transformation. Numeral 34 represents a reverse-Fourier trans formation circuit for performing the reverse-Fourier transformation of the transfer function havingthe amplitude frequency property inputted to the amplitude input circuit 31 and the phase frequency property obtained in the phase calculation circuit 33. The reverse-Fourier transformation circuit 34 is coupled to a setting circuit 35 for setting as a filter factor an impulse response obtained by the reverse-Fourier transformation circuit 34. Numeral 36 is a FIR filter for realizing the actually set frequency property. In the amplitude input circuit 31, when a desirable amplitude frequency property |H(ω)| of ω = 0 to π, an amplitude frequency property of ω = π to 2π can be automatically produced by the turning-down of the input amplitude frequency property (see Fig. 2). Input to the correction property input circuit 32 is the reverse amplitude frequency property |H1(ω)| of an object to be phase-corrected (for example, correction of the phase frequency property of a speaker). Similarly, the amplitude frequency property of ω = 0 to π is inputted and turned down to produce an amplitude frequency property of ω = π to 2π. In the phase calculation circuit 33, a phase frequency property is calculated using this amplitude and frequency property in accordance with the relationship of the Hilbert transformation. The Hilbert transformation is essentially a method for obtaining a complex variable function on the basis of a given real variable function or imaginary variable function. A period function h(n) (sequence represents a discrete-time system) of a period N is expressed by the sum of an odd function ho(n) and an even function he(n). That is, h(n) = he(n) + ho(n) where n = 0 to N-1. Furthermore, when the law of causality is defined as the following equations: h(n) = 0 -N/2<n<0 h(n) = he(n)·u(n) h(n) can be obtained with he(n). Here, from the nature of he(n) and ho(n), the following effect can be known. That is, when the Fourier series factor of h(n) is as follows: H(K) = H R (K) + jH I (K) where ω = (2π/N)·K, K = 0 to N-1, the Fourier series factor of he(n) assumes H R (K) and the Fourier series factor of ho(n) assumes jH I (K). From the above results, when the above series is assumed as a finite period function of the finite period N, on the contrary, the result of the reverse-Fourier transformation (generally so-called IDFT) of H R (K) (K = 0 to N - 1) assumes he(n). The following fact will be known from the above nature. The transfer function H'(k) for realizing a desirable amplitude frequency property |H·(K)| is expressed as the following equation. H'(K) = |H'(K)| · e j(ω) where (ω) represents a phase frequency property. when assuming natural logarithm with respect to the both sides of the equation (15), the equation is as follows. ℓnH'(K) = ℓn|H'(K)| + j(ω) Here, when the result of the reverse-Fourier transformation of ℓnH'(K) is h'(n) and the result of the reverse-Fourier transformation of ℓn|H'(K)| is h'e(n), from the equation (13), the following equaztion can be obtained: h'(n) = h'e(n) · u(n) Furthermore, when performing the Fourier transformation of h'(n) obtained by the equation (17), the real number portion of the obtained value corresponds to ℓn|H'(K)| and the imaginary number portion thereof corresponds to j(ω). Therefore, from the above, the phase frequency property can be obtained from the amplitude frequency property in accordance with the following operations: (1) assuming natural logarithm of the amplitude frequency property; (2) performing the reverse-Fourier transformation of the value obtained in (1); (3) obtaining h'(n) by performing the calculation of the equation (17) on the basis of the value obtained in (2); (4) performing the reverse-Fourier transformation of h'(n); and (5) taking out the imaginary number portion of the result of the reverse-Fourier transformation of h'(n). The phase frequency property obtained thus is behaved so that the phase transition becomes the minimum (just like the phase frequency property of sealed type speaker or the like). Thus, if obtaining the amplitude frequency property |Hl(ω)|, the phase frequency property of an object having this amplitude frequency property can be obtained in accordance with the relation of the Hilbert trans formation. Therefore, if obtaining the phase frequency property having this amplitude frequency property on the basis of the reverse amplitude frequency property of the object to be phase-corrected, this results in the phase and frequency property for the phase correction. That is, it is possible to obtain the reverse phase property of the object to be phase-corrected. Subsequently, in the reverse-Fourier transformation circuit 34, on the basis of the amplitude frequency property inputted in the amplitude input circuit 31 and the phase frequency property calculated in the phase calculating circuit 33 is obtained the transfer function H(ω) which is in turn processed with the reverse-Fourier transformation to obtain the impulse response h(n). This method is more simple and accurate in terms of obtaining h(n) as compared with the technique disclosed in the first-mentioned prior document. In the impulse response thus obtained, the amplitude frequency property expresses the amplitude frequency property inputted by the amplitude input circuit 31 and the phase frequency property expresses the phase frequency property calculated by the phase calculating circuit 33. This will be understood by the following consideration. It is assumed that a system has two FIR filters as shown in Fig. 3. One FIR filter is arranged, in response to input of a desirable amplitude frequency property, to obtain the phase frequency property 11(ω) from this inputted amplitude frequency property in accordance with the relation of the Hilbert transformation and to employ, as a filter factor, the result obtained by the reverse-Fourier transformation using the transfer function having this frequency property. Another FIR filter 38 is arranged to employ, as a filter factor, a value obtained by the reverse-Fourier transformation of the transfer function obtained under the condition of linear phase on the basis of the amplitude frequency property which is the sum of a desirable amplitude frequency property |H12(ω)| and the reverse amplitude frequency property of the amplitude frequency property inputted by the FIR filter 37. Here, the amplitude frequency property is inputted in logarithm and the transfer function may be the amplitude frequency property itself (in this case, the phase item is zero). According to such an arrangement, the amplitude frequency property of the overall system is the amplitude frequency property |H12(ω)| inputted in the FIR filter 38, and the phase and frequency property thereof assumes 11(ω). Here, actually, the variation of the linear phase of the FIR filter 38 is added. However, this may be disregarded when considering the phase correction. That is, when considering the phase item, the group delay characteristic obtained by differentiating the phase frequency property with frequency is important and therefore the variation of the linear phase can be disregarded. Therefore, on the contrary, for the overall system, a system comprising one FIR filter having a desirable amplitude frequency property and the phase frequency property obtained in accordance with the relation of the Hilbert transformation corresponds to a system comprising one FIR filter with linear phase and one FIR filter having the relation of the Hilbert transformation (the minimum phase transition system). Thus, h(n) obtained in the reverse-Fourier transformation circuit 34 has a desirable amplitude frequency and a phase frequency property for correction. Subsequently, the setting circuit 35 sets h(n) thus obtained, as a filter factor, to the FIR filter 36. In this embodiment, Although the description has been made in terms of phase correction, it is also appropirate that it is possible to realize a phase frequency property of an object having an amplitude frequency property. A second embodiment of the present invention will be described hereinbelow with reference to Fig. 4 in which parts corresponding to those in Fig. 1 are marked with the same numerals and the description thereof will be omitted for brevity. In Fig. 4, numeral 39 represents a phase property input circuit for inputting a desirable phase frequency property, the phase property to be inputted being ω = 0 to π. The property of ω = π to 2π is produced by returning-down of ω = 0 to π after change of positive and negative signs. This is because, when the impulse response to be obtained is a real number, the amplitude frequency property is an even function and the phase frequency property is an odd function. The operation is similar to that of the first embodiment of Fig. 1 and the difference with respect thereto is to directly input the phase frequency property. However, in this embodiment, the phase frequency property is based on not only the minimum phase transition but also a desirable phase frequency property. As in the seventh embodiment, the amplitude frequency property to be realized is the desirable amplitude frequency property inputted and the phase frequency property is the result obtained in accordance with the relation of the Hilbert transformation. A filter factor is obtained by the reverse-Fourier transformation using these properties whereby the phase and amplitude can be set independently of each other. From this, it will be understood that the phase frequency property can also be set arbitrarily. For describing this is considered the portion that in the seventh embodiment the phase frequency property is obtained using the relation of the Hilbert transformation. In the seventh embodiment, the phase frequency property is obtained from the reverse amplitude frequency property of an object to be phase-corrected. On the contrary, let it be assumed that, when a phase frequency property is set, an amplitude frequency property corresponding to this can be obtained. In other words, when the obtained amplitude and frequency property is inputted, the set phase frequency property is obtained from the relation of the Hilbert transformation. Thus, a consideration is made that there is an amplitude frequency property corresponding to the desirable phase frequency property. A further description is made with reference to Fig. 3. As described previously, numeral 37 is a FIR filter for setting a filter factor corresponding to the transfer function obtained from an amplitude frequency property having the set desirable phase frequency property and numeral 38 is a FIR filter wherein the amplitude frequency property is the sum of a desirable amplitude frequency property to be set and the reverse amplitude frequency property of the amplitude frequency property obtained from the phase frequency property of the FIR filter 37. According to this arrangement, as well as in the seventh embodiment, the overall amplitude frequency property assumes the desirable amplitude frequency property set in the FIR filter 38 and the phase frequency property assumes the phase frequency property set in the FIR 37. From this consideration, it will be understood that, according to the arrangement of the second embodiment, the amplitude frequency property and the phase frequency property can be set independently from each other. A third embodiment of the present invention will be described hereinbelow with reference to Fig. 5 n which parts corresponding to those in Fig. 1 are marked with the same numerals and the description will be omitted for brevity. In Fig. 5, numeral 41 represents a group delay property input circuit for inputting a desirable group delay frequency property or group delay distortion property. The input circuit 41 is coupled to an integration circuit 42 for integrating the inputted group delay property to calculate a phase frequency property. The group delay property τ(ω) is defined as follows. τ(ω) = d(ω)/dω Therefore, the integration thereof with a frequency ω results in a phase frequency property (ω). This means that the phase frequency property can be obtained on the basis of a desirable group delay property. Accordingly, as well as in the first and second embodiments, the amplitude frequency property and the group delay property (phase frequency property) can be set independently of each other. Although in the first, second and third embodiments the impulse response obtained in the reverse-Fourier transformation circuit 34 is used as a filter factor of the FIR filter as it is, this may produce a ripple in the frequency property realized by the FIR filter. Therefore, for preventing the occurrance of the ripple, the impulse response obtained in the reverse-Fourier transformation circuit 34 is multiplied by a window function having a characteristic such as hanning and hamming and the result of the multification is used as a factor of the FIR filter. Thus, the setting circuit 35 may be arranged to have such a window. Fig. 6 is a block diagram showing a fourth embodiment of the present invention. In Fig. 6, illustrated at numeral 51 is an input circuit for inputting a desirable amplitude frequency property with it being separated into frequency bands corresponding to two sampling frequencies. The input circuit 51 is coupled to a division circuit 52 for dividing the inputted amplitude frequency property into frequency bands corresponding to two different sampling frequencies, which is in turn coupled to a calculating circuit 53 for obtaining the filter factors of the FIR filter corresponding to the respective frequency bands of the respective sampling frequencies. Numerals 54 and 55 are respectively FIR filters whose sampling frequencies are different from each other and whose filter factors are same in number. Operation of this embodiment will be described hereinbelow. In the input circuit 51, a desirable amplitude frequency property is divided into frequency bands corresponding to two sampling frequencies, and the overlapping portions of the frequency bands is inputted with a low frequency resolution and the non-overlapping portions thereof is inputted with a high frequency resolution. Fig. 24 shows the amplitude frequency property inputted by the input circuit 51. In (a) of Fig. 7, circle marks represent set amplitude values, characters f1 and f2 designate two different sampling frequencies. Here, the value of f2 is two times of the value of f1. The frequency resolution of the amplitude frequency property which can be inputted by the input circuit 51 is divided with f1/2 into two. At this time, the frequency resolution of the amplitude frequency property which can be inputted in the frequency band until f1/2 is f1/N where N is the number of the filter factors of the FIR filter 54 corresponding to its frequency band. On the other hand, the frequency resolution of the amplitude frequency property which can be inputted in the frequency band from f1/2 to f2/2 assumes f2/N. Here, in the case that the frequency in the vicinity of the cut-off frequency of a low-pass filter of the FIR filter 54 which acutally processes the signal with the sampling frequency f1 is f3, the frequency resolution of the amplitude frequency property which can be set between f3 and f1/2 is f2/N as shown in Fig. 8. In this embodiment, such an input method will be employed. Here, f3 is a frequency which is coincident with or near the cut-off frequency of the low-pass filter when the frequency point is determined with the resolution of frequencies from 0 to f2/N. The amplitude frequency property inputted thus is supplied to the division circuit 52 where it is divided into frequency properties (b and c in Fig. 9) corresponding to two sampling frequencies and the numbers of the filter factors of the FIR filters 54 and 55. In (b) and (c) in Fig. 9, x-marks and Δ-marks respectively amplitude values. A division method of the amplitude frequency property in the division circuit 52 will be described hereinbelow. First, in the band of 0 to f1/2 corresponding to the sampling frequency f1, the amplitude frequency property of 0 to f3 is inputted by the input circuit 51 with the frequency resolution f1/N and therefore this value is used as it is. The band of f3 to f1/2 of the frequency bands corresponding to the sampling frequency f1 provides a problem. Since in this band the amplitude frequency property is inputted with the frequency resolution of f2/N, it is required that a new amplitude frequency point with the f1/N frequency resolution is obtained from the value of this amplitude frequency property. Although there are various methods for obtaining this new amplitude frequency point, here, a description will be made in terms of a method using the linear interpolation. That is, when, of the amplitude and frequency values for f3 to f1/2, the value for f3 is A and the next value is B, the value C between A and B for the sampling frequency f1 can be obtained as follows because the sampling frequency f2 is twice the sampling frequency f1. C = (B - A) · (1/2) + A The other values until f1/2 can be obtained similarly. Here, although the amplitude frequency property of the frequency band corresponding to the sampling frequency f1 is obtained by means of the linear interpolation, it is also appropriate that other methods such as multi-order function method is employed instead thereof. On the other hand, with respect to the frequencies from f4 (>f3) to f1/2, a correction is made so that the value of the amplitude frequency property of f1/2 becomes zero, and a method using this value may be employed as shown in Fig. 9. f4 is a value whereby the signal control level of the above-mentioned low-pass filter assumes a sufficient value (for example, the frequency droped by 10dB from the pass-band level). When the amplitude value inputted by the input circuit 51 at the frequency f4 is D, the value E at a new sampling frequency f1 can be obtained as follows and other values can be obtained similarly. E = - D/(f1/2 - f4) · f1/N + E It is possible to further restrict the signals of the restricted bands of the previously mentioned low-pass filter. The condition that the amplitude frequency property at f1/2 is zero is also required when the filter factor is obtained under the condition of linear phase in the calculating circuit 53. Similarly, with respect to the band of the sampling frequency f2, the similar correction is made on the basis of a frequency f5 which does not affect a signal to be processed, resulting in the similar effect. A further description will be made in terms of the amplitude frequency property at the frequency band of 0 to f2/2 corresponding to the sampling frequency f2. Since values at frequencies between f3 and f2/2 is inputted with the frequency resolution f2/N in the input circuit 51, the value can be used as it is. With respect to values at the frequencies from 0 to f3, because of being different in frequency resolution, the inputted amplitude frequency property cannot be used as it is and therefore the values at the band would be obtained in accordance with calculation. Various calculation methods are considered. Here, described is a method for thinning the inputted amplitude frequency property. That is, since f2 is two times of f1, the sampling frequency f2 between 0 to f3 and the amplitude frequency property of the filter factor N can be obtained by thinning one for two amplitude frequency properties inputted with the frequency resolution f1/N (see c of Fig. 7. Thinning allows the amplitude frequency property of the frequency band corresponding to the sampling frequency f2 to being obtained from the amplitude frequency property inputted with the frequency resolution f1/N by the input circuit 51. Although in the above case the amplitude frequency property of the frequency band corresponding to the sampling frequency f2 is obtained by means of thinning, it is also appropriate to use other methods such as method wherein the amplitude frequency property of 0 to f6 (<f3) is zero or 0 dB (= 1.0). Subsequently, in the calculating circuit 53, the filter factors of the FIR filters 54 and 55 are obtained using the two frequency properties obtained in the division circuit 52. Here, the calculation is performed, for example, such that the amplitude frequency properties of returning-down of the respective frequency bands (f1/2 to f1, f2/2 to f2) are obtained and the reverse-Fourier transformation is effected to obtain a filter factor under the conditions that, in linear phase, the amplitude frequency property is set as a real number item and the imaginary number item is zero. It is also appropriate to use a method in which the imaginary number item is not set to zero but the reverse-Fourier transformation is made with provision of an imaginary number item representing a phase frequency property or group delay property. It is further appropriate to emply a filter factor calculation method in which the minimum phase transition is effected in accordance with the relation of the Hilbert transformation. By processing thus, with respect to the frequency bands corresponding to the respective sampling frequencies, filter factors can be obtained so as to realize the inputted amplitude frequency property (or amplitude frequency property and phase frequency property or group delay property). The filter factors are inputted to the FIR filters 54 and 55 corresponding to the respective frequency bands, thereby realizing the actually inputted amplitude and frequency property. Although in this embodiment, in the input circuit 51, the amplitude frequency property is first-kind-sampled (the frequency point is set every f1/N from the frequency 0 and every f2/N from f3), even if it is second-kind-sampled (the frequency point is set every f1/N from f1/N · 1/2 and every f2/N from f3), the frequency devision can be performed to obtain filter factors corresponding to the respective frequency bands. In this case, the slippage of the frequency points occurs due to difference of the frequency bands. However, this is removed by means of linear interpolation, multi-order function approximation or the like. Furthermore, although in this embodiment an amplitude frequency property is inputted, it is also appropriate to input other frequency property such as phase frequency property or group delay frequency property. Fig 10 is a graphic diagram showing an input method of an amplitude frequency property in an input circuit and a method of frequency division in a division circuit which are according to an eleventh embodiment of the present invention. An arrangement of the fifth embodiment is similar to that of the fourth embodiment of Fig. 6 and the difference of this fifth embodiment to the fourth embodiment is the input method and devision method. The amplitude frequency property (a of Fig 10) which can be inputted by an input circuit 51 is set with a frequency resolution different from the sampling frequencies f1, f2 which allow process over the entire band (in this case, f1/2N). In a division circuit 52, for obtaing a frequency point possible to process the actual signal, with respect to the frequency band corresponding to the sampling frequency of f1, operation is made so as to thin one of two frequency points inputted (see b of Fig. 10), and with respect to the frequency band corresponding to the sampling frequency of f2, operation is made so as to thin one of four frequency points inputted (see c of Fig. 10), whereby the inputted amplitude frequency property can be divided. The other operations are similar to the oeprations in the tenth embodiment. Even in the case that, as in the fifth embodiment, the frequency property is set with a frequency resolution different from the frequency resolution which allows the process, the execution of an appropriate operation in the division circuit 52 results in obtaining a frequency property which can be processed, thus allowing obtaining the filter factors of FIR filters 54 and 55. Although in this embodiment the first kind sampling is performed, it is also considered to perform the second kind sampling. Furthermore, in the case that in the fourth and fifth embodiments the first kind sampling is performed, generally, it is required to process the filter factors, obtained in a calculating circuit 3, with a window. However, it is not required to process it with the window in the case of the second kind sampling. A sixth embodiment of the present invention will be described hereinbelow with reference to Fig. 11 which is a block diagram showing a filter-factor calculating unit for a FIR filter. In Fig. 11, numeral 50 is an input portion for selecting a frequency value and an amplitude value by movements upwardly, downwardly and in the left and right directions, numeral 56 is a setting switch for determining the frequency value and the amplitude value, numeral 57 represents a display portion for indicating an amplitude frequency property, the present frequency value and amplitude value with a +-mark, and the frequency value and the amplitude value with numerals, numeral 58 designates a calculating circuit for obtaining a filter factor on the basis of the set amplitude frequency property, and numeral 59 depicts a transferring circuit for transferring the filter factor to an external FIR filter. The display portion of the filter-factor calculating unit according to this embodiment is illustrated in Fig. 12. In Fig. 12, numeral 60 is a graph whose horizontal axis represents frequencies and whose vertical axis represents amplitudes, numeral 61 is an amplitude and frequency property set and indicated, numeral 62 is a +-mark arranged to be moved in accordance with movement of the input portion 50, and numeral 63 is a numeral indicating the frequency value and amplitude value corresponding to the position of the +-mark 62. The frequency value and amplitude value is set and displayed at a position of the +-mark 62 indicated by a character A. The unit of the horizontal axis is logarithm and the unit of the vertical axis is dB. Fig. 13 shows an arrangement of the input portion 50 of the filter-factor calculating unit. In Fig. 13, numeral 64 is a main portion thereof, numeral 65 represents a ball, and numerals 66 and 67 are rollers, respectively. In Fig. 30, with the main portion 64 being positioned up or down, the ball 65 is rotated, or the ball 65 is rotated by movement of the main portion 64. The rotation of the ball 65 is transmitted to the rollers 66 and 67 whose rotations are converted electrically or mechanically. This conversion corresponds to the movement of the +-mark 62 of the display portion 57. When the input portion 50 is moved, the +-mark 62 of the display portion 57 is moved in correspondance to the movement thereof and the frequency value and amplitude value corresponding to the point A which is the center (circle-mark indicated with flashing) of the +-mark 62 are displayed with numerals. The +-mark 62 is moved to the position corresponding to a frequency value and amplitude value to be set and the setting switch 56 is depressed, whereby the desirable frequency value and amplitude value corresponding to the position of the +-mark 62 are set acutally. In the display portion 57, the previous frequency value and amplitude value are stored and thses values and newly set values are connected with a straight line or a curved line, and when a line is indicated for the same value, the line is eliminated and a new line is indicated to set its value. The amplitude frequency property set thus is set to the calculating circuit 58. Here, a complex variable function including phase information is calculated in accordance with a method based on the Hilbert transformation or linear phase. The reverse-Fourier transformation thereof results in obtaining a filter factor of a FIR filter. The obtained filter factor is transferred by the transferring circuit 59 to the external FIR filter so that it is set thereto. Although in this embodiment the filter is a FIR filter, it is allowed that the filter is a parametric type filter. In this case, the filter factor obtained in the calculating circuit is used as a parameter (frequency, Q, gain) of each of the filters. it is appropriate that the A-point is indicated by a +-mark.

Claims: A filter-factor calculating apparatus comprising: amplitude inputting means (31) for inputting a desired amplitude frequency property A(ω) defined for an angular frequency range from ω=0 to 2π; frequency property inputting means (32, 39, 41) for inputting an arbitrary frequency property relating to a phase frequency property (ω) defined for an angular frequency range from ω=0 to 2π; phase calculating means (33, 42) for calculating the phase frequency property from the arbitrary frequency property according to a relation of a Hilbert transformation; reverse-Fourier transformation means (34) for performing a reverse-Fourier transformation of a transfer function having the desired amplitude frequency property and the property calculated by the phase calculating means to obtain an impulse response corresponding to said transfer function; and setting means for setting the impulse response obtained by the reserve-Fourier transformation, as a filter factor of an external filter. An apparatus according to claim 1, wherein said frequency property inputting means (32, 39, 41) comprises correction property inputting means for inputting an arbitrary correction amplitude frequency property as the arbitrary frequency property. An apparatus according to claim 2, wherein said correction amplitude frequency property is an inverse amplitude frequency property of a signal to be phase corrected. An apparatus according to claim 1, wherein said frequency property inputting means (32, 39, 41) comprises group delay inputting means (41) for inputting a group delay frequency property or group delay distortion frequency property as the arbitrary frequency property and the phase calculating means (33, 42) comprises integrating means (42) for calculating the phase frequency property by integrating the group delay frequency property or the group delay distortion frequency property. An apparatus according to claim 1, wherein said frequency property inputting means (32, 39, 41) comprises phase inputting means (39) for inputting as the arbitrary frequency property a first phase frequency property 1(ω) defined in the angular frequency range of ω=0 to π, and the phase calculating means (33, 42) comprises phase frequency property producing means for producing the entire phase frequency property (ω) under the condition that (ω) = - (2π - ω) over the range of ω=0 to 2π and (ω) = 1(ω) over the range ω=0 to π. An apparatus according to claim 1, 2, 4 or 5, wherein said amplitude inputting means (31) comprises amplitude receiving means for receiving a first amplitude frequency property A1(ω) defined in the angular frequency range of ω=0 to π and amplitude producing means for producing the desired amplitude frequency property A(ω) under the condition that A(ω) = A(2π - ω) over the range ω=0 to 2π and A(ω) = A1(ω) over the range ω=0 to π. An apparatus according to claim 1, 2, 4, 5 or 6, further comprising window means for multiplying the impulse response obtained by said reverse-Fourier transformation means by a window function, the impulse response multiplied by the window function being set as the filter factor by the setting means. An apparatus according to claim 1, 2, 4, 5 or 6, wherein said amplitude inputting means inputs the arbitrary amplitude frequency property with a second sampling frequency, said reverse-Fourier transformation means obtains the impulse response by performing the reverse-Fourier transformation with a first sampling frequency with respect to a transfer function calculated with the first sampling frequency under the condition of linear phase using the input arbitrary amplitude frequency property. An apparatus according to claim 1, 2, 4, 5 or 6, further comprising display means (57) having a first mark moved in correspondence with movement of an input portion (50), the horizontal position of said mark representing a frequency value and the vertical position thereof representing an amplitude value, and set means (56) having a second mark for indicating a position of said first-mentioned mark. A filter-factor calculating apparatus as claimed in claim 9, said set means stores the previously set frequency value and amplitude value and, in the case of setting of new frequency value and amplitude value, connects the positions corresponding thereto with a straight line or curved line for indication. A filter-factor calculating apparatus as claimed in claim 9 or 10 wherein said set means, when the line indicated already is coincident in frequency value and amplitude value with a newly indicated line, deletes the already indicated line to set new values. A filter-factor calculating apparatus as claimed in claim 9, 10 or 11, wherein said set means indicates the set frequency value and amplitude value with numerals. A filter-factor calculating apparatus as claimed in any one of claims 9 to 12 wherein said first mark has a + or - configuration and said second has a circle or cross configuration. A filter-factor calculating apparatus as claimed in any preceding claim wherein the filter factor to be obtained is a filter factor for a FIR type filter or an IIR type filter or is a parameter (frequency, Q, gain) for parametric type filter.

Inventors: ISHIKAWA SEIICHI, KAWAMURA AKIHISA, MATSUMOTO MASAHARU, SATOH KATSUAKI, ISHIKAWA, SEIICHI, KAWAMURA, AKIHISA, MATSUMOTO, MASAHARU, SATOH, KATSUAKI
Applicants: MATSUSHITA ELECTRIC IND CO LTD, MATSUSHITA ELECTRIC INDUSTRIAL CO., LTD.
Application year: 1988
Main classification: H03H17
IPC codes: H03H17