Filter coefficient group computation device and filter coefficient group computation method
09559658 ยท 2017-01-31
Assignee
Inventors
Cpc classification
H03G5/025
ELECTRICITY
G06F17/14
PHYSICS
International classification
Abstract
A filter coefficient group computation device is configured from a means for performing inverse Fourier transform on a frequency characteristic inputted through an input means; a means for performing short-term Fourier transform on a numerical string obtained by the inverse Fourier transform; a means for performing windowing on a frequency domain signal, obtained by the short-term Fourier transform, using a function of which a window length shortens as frequency increases; a means for performing short-term inverse Fourier transform on the frequency domain signal after the windowing; a means for performing overlap addition on a numerical string obtained by the short-term inverse Fourier transform; and a means for determining a numerical string after the overlap addition as a filter coefficient group which forms a filter having the frequency characteristic inputted through the input means.
Claims
1. A filter coefficient group computation device, provided with an input unit on which a user inputs a frequency characteristic and configured to compute a filter coefficient group which forms a filter having a frequency characteristic inputted through the input unit, comprising: an inverse Fourier transform unit configured to perform inverse Fourier transform on the frequency characteristic inputted through the input unit; a short-term Fourier transform unit configured to perform short-term Fourier transform on a numerical string obtained by the inverse Fourier transform; a windowing unit configured to perform windowing on a frequency domain signal, obtained by the short-term Fourier transform, using a function of which a window length shortens as frequency increases; a short-term inverse Fourier transform unit configured to perform short-term inverse Fourier transform on the frequency domain signal after the windowing; an overlap addition unit configured to perform overlap addition on a numerical string obtained by the short-term inverse Fourier transform; and a filter coefficient group determination unit configured to determine a numerical string after the overlap addition as the filter coefficient group which forms the filter having the frequency characteristic inputted through the input unit.
2. The filter coefficient group computation device according to claim 1, wherein the function defines a relationship in which the window length logarithmically shortens as frequency increases.
3. The filter coefficient group computation device according to claim 1, further comprising a reduction unit configured to reduce a number of coefficients included in the filter coefficient group determined by the filter coefficient group determination unit.
4. The filter coefficient group computation device according to claim 1, further comprising a minimum phase conversion unit configured to perform minimum phase conversion on the numerical string after the inverse Fourier transform by the inverse Fourier transform unit, and wherein the short-term Fourier transform unit performs the short-term Fourier transform on a numerical string after the minimum phase conversion.
5. The filter coefficient group computation device according to claim 1, wherein the input unit is a touch panel on which touch operation is possible.
6. A filter coefficient group computation method for computing a filter coefficient group which forms a filter having a frequency characteristic inputted by a user, comprising: performing inverse Fourier transform on the frequency characteristic inputted by the user; performing short-term Fourier transform on a numerical string obtained by the inverse Fourier transform; performing windowing on a frequency domain signal, obtained by the short-term Fourier transform, using a function of which a window length shortens as frequency increases; performing short-term inverse Fourier transform on the frequency domain signal after the windowing; performing overlap addition on a numerical string obtained by the short-term inverse Fourier transform; and determining a numerical string after the overlap addition as the filter coefficient group which forms the filter having the frequency characteristic inputted by the user.
7. The filter coefficient group computation method according to claim 6, wherein the function defines a relationship in which the window length logarithmically shortens as frequency increases.
8. The filter coefficient group computation method according to claim 6, further comprising reducing a number of coefficients included in the determined filter coefficient group.
9. The filter coefficient group computation method according to claim 6, further comprising performing minimum phase conversion on the numerical string after the inverse Fourier transform, and wherein the short-term Fourier transform is performed on a numerical string after the minimum phase conversion.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
EMBODIMENTS FOR CARRYING OUT THE INVENTION
(11) Hereinafter, an embodiment of the present invention will be described with reference to the accompanying drawings. It is noted that, hereinafter, a sound processing device is given as one embodiment of the present invention and explained.
(12) [Overall Configuration of Sound Processing Device 1]
(13)
(14) In an FIR filter, an impulse response itself expressed in finite time lengths is coefficients of the filter. Therefore, determination of a filter coefficient group is substantially synonymous with setting of a filter characteristic of the FIR filter. Thus, the filter coefficient group computation unit 14 computes a filter coefficient group in accordance with operation on the input interface unit 12 by a user. The filter coefficient group computation unit 14 sets a filter characteristic of the FIR filter unit 16 by giving the computed filter coefficient group.
(15) To the FIR filter unit 16, an audio signal generated by decoding an encoded signal in a nonreversible or reversible compressing format is inputted from a sound source. In the present embodiment, an audio signal sampling frequency is, for example, 44.1 kHz. The FIR filter unit 16 filters the inputted audio signal by using the characteristic set by the user through the input interface unit 12 and the filter coefficient group computation unit 14 to modify a frequency characteristic of the audio signal. The audio signal after the frequency characteristic modification is outputted through a speaker via a power amplifier not shown in the figure. This enables the user to listen to music or the like to which the result of the operation on the input interface unit 12 is reflected (music or the like of which sound quality is corrected or sound image is improved).
(16) [Configuration of Input Interface Unit 12]
(17) The input interface unit 12 is a touch panel device that receives and processes touch operations by the user using a stylus pen or a finger.
(18) When the user's finger or the like touches the filter characteristic setting screen 12a, the input interface unit 12 displays an icon 12b at the touched portion. When the user traces the filler characteristic setting screen 12a with the finger, the input interface unit 12 detects the touch operation path, and draws the detected touch operation path while displacing the icon 12b at a portion where the user's finger is touching. As exemplified in
(19) The input interface unit 12 is not limited to touch panel devices but may be devices that receive and process operations through pointing devices such as a mouse. In this case, the input interface unit 12 draws a drag operation path made within the filter characteristic setting screen 12a as a filter characteristic (power spectrum) to be set to the FIR filter unit 16.
(20) [Configuration of Filter Coefficient Group Computation Unit 14 and Filter Coefficient Group Computation Flow]
(21) As shown in
(22) [S11 in
(23) The coordinate input unit 14a takes samples of the touch operation path by the user on the filter characteristic setting screen 12a, and outputs sampled coordinate points within the filter characteristic setting screen 12a (hereinafter, sample coordinate points) to the amplitude spectrum calculation unit 14b. In the present embodiment, the number of the sample coordinate points is 8,192 which is the same as the number of coordinates of the FIR filter (tap number). It is noted that the number of the sample coordinate points mentioned above is one example. Generally, setting accuracy of the FIR filter unit 16 with respect to the operation by the user improves as the number of the sample coordinate points (tap number) increases.
(24) [S12 in
(25) The amplitude spectrum calculation unit 14b calculates a power spectrum according to the operation by the user from the sample coordinate points inputted from the coordinate input unit 14a, and calculates an amplitude spectrum |F()| from the calculated power spectrum.
(26) [S13 in
(27) The transfer function calculation unit 14c calculates a transfer function F() from the amplitude spectrum |F()| calculated by the amplitude spectrum calculation unit 14b. That is, the transfer function calculation unit 14c sets a frequency spectrum corresponding to the power spectrum according to the operation by the user as the transfer function.
(28) [S14 in
(29) The IFFT unit 14d converts the transfer function F(), calculated by the transfer function calculation unit 14c, from a frequency domain sample sequence to a time domain sample sequence using IFFT.
(30) [S15 in
(31) The real part extraction unit 14e extracts real parts from the sample sequence obtained as a result of IFFT by the IFFT unit 14d. The real parts extracted here are a sample sequence that corresponds the filter coefficient group to be given to the FIR filter unit 16.
(32) [S16 in
(33) The minimum phase conversion unit 14f performs minimum phase conversion on the real parts (filter coefficient group), extracted by the real part extraction unit 14e, to effectively remove reverberation components.
(34) As shown in
(35) [S17 in
(36) The STFT unit 14g converts the coefficient group after minimum phase conversion by the minimum phase conversion unit 14f to frequency domain using STFT. The followings are conditions for the STFT.
(37) TABLE-US-00001 FFT length (unit: sample) 256 overlap length (unit: sample) 240 window function Hanning
(38)
(39) [S18 in
(40) The windowing unit 14h performs windowing on the frequency components obtained by STFT by the STFT unit 14g using a predetermined function.
(41) [S19 in
(42) The ISTFT unit 14i converts the frequency components after windowing by the windowing unit 14h to a time domain sample sequence using ISTFT.
(43) [S20 in
(44) The overlap addition unit 14j performs overlap addition on the sample sequence (filter coefficient group) obtained as a result of IFFT by the ISTFT unit 14i to remove discontinuity of a time domain signal. In the present embodiment, the overlap length is 240 samples.
(45) In the present embodiment, as can be seen from the comparison between the filter coefficient group before the windowing using the frequency window length function (the dashed line in
(46) As described above, in the present embodiment, a filter coefficient group of which a filter characteristic accurately reflects a filter characteristic that a user desires (a filter characteristic that is imputed through the touch operation on the filter characteristic setting screen 12a) is computed. Also, the computed filter coefficient group is a group from which the ripples caused by hand shaking during operation, resolution of the screen or the like, as well as unnecessary reverberation components, are removed. By giving such filter coefficient group to the FIR filter unit 16, a filter characteristic to which an input by a user is accurately reflected and from which reverberation components are removed can be obtained.
(47) [S21 in
(48) The tap number reduction unit 14k reduces the number of coefficients (tap number) included in the filter coefficient group after the overlap addition by the overlap addition unit 14j. In the present embodiment, a limited section where absolute values of the filter coefficients are greater than 0 is extracted, and a rounding operation (fraction processing) is performed towards positive infinity such that a length of the extracted limited section becomes a power of 2. The tap number is thus reduced. In the present embodiment, about 2200 samples are extracted (see
(49) It is noted that the limited section is not limited to the above mentioned section, but may be extracted by using value that is small enough to be neglected as a threshold. Also, when extracting the limited section, not only the threshold but also a shape of an envelope of the filter coefficients may be included in information for making the decision. Also, in the present embodiment, since it is a premise that the product operation in the frequency domain is performed by performing FFT, the rounding operation is performed such that the length of the extracted limited section becomes a power of 2. The rounding operation may be omitted by performing convolution operation in the time domain.
(50) The above is the description of the illustrative embodiment of the present invention. Embodiments of the present invention are not limited to the above explained embodiment, and various modifications are possible within the scope of the technical concept of the present invention. For example, appropriate combinations of the exemplary embodiment specified in the specification and/or exemplary embodiments that are obvious from the specification are also included in the embodiments of the present invention.