This non-provisional application claims priority under 35 U.S.C. §119(a) on Patent Application No. 2004-163415 filed in Japan on Jun. 1, 2004, the entire contents of which are hereby incorporated by reference.
(a) Field of the Invention The present invention relates to a signal processor capable of on/off switching of filtering.
(b) Description of Related Art
In acoustic signal reproduction equipment such as DVD players, digital television sets, cellular phones and electronic musical instruments, filtering has conventionally been implemented using a signal processor such as a digital signal processor to give acoustic effects (e.g., chorus and reverb) or extract a signal of a required frequency band.
To perform the filtering with use of the above-described signal processor, for example, the filtering is constantly kept on, or alternatively, the filtering is switched between on and off during reproduction when a suitable filter is automatically selected in response to a characteristic of an input signal or a user turns on or off the acoustic effect of the acoustic signal reproduction equipment.
When the filtering on/off switch 101 is in the on state, input data is received by the delay buffer 102 and sequentially delayed by the delay buffer 102 to generate delay data. The delay data is stored in the delay buffer 102. Then, the filtering operation section 103 performs a filtering operation using the delay data in the delay buffer 102, i.e., a product-sum operation on the delay data and a filter coefficient, thereby generating data to be output.
When the filtering on/off switch 101 is in the off state, input data is output as it is without being delayed or stored in the delay buffer 102.
However, when the filtering is switched from the off state to the on state in the signal processor of the above-described configuration, the delay data generated and stored in the previous filtering-on state remains in the delay buffer 102. Therefore, discontinuity occurs at the boundary between the remaining data and newly input data. Therefore, when the filtering operation is performed with the delay buffer 102 retaining the delay data generated in the previous filtering-on state, the discontinuity occurs also in the output data, thereby causing noise.
For the above reason, there has been developed a method for preventing the noise by clearing the delay buffer to erase the remaining data or masking the output data (for example, see Japanese Unexamined Patent Publication No. HE15-61493).
According to this method, the influence of the data remaining from the previous filtering-on state can be avoided. However, as shown in
To cope with the problem, there has been developed a method for preventing the noise which occurs immediately after the switching of the filtering (for example, see Japanese Unexamined Patent Publication No. HEI10-161657). According to this method, a filter coefficient is gradually changed, or alternatively, two delay buffers including a delay buffer A for storing input data and a delay buffer B for storing filtered data are provided such that, when the filtering state is changed, the data in the delay buffer A is output until the delay buffer B is filled with the data.
Although the above-described method allows preventing the noise from occurring, it requires additional means for gradually changing the filter coefficient or the two delay buffers. This complicates the configuration of the processor, thereby entailing higher cost than that of the signal processor as shown in
Under these circumstances, the present invention has been achieved. In respect of a signal processor capable of on/off switching of the filtering, an object of the present invention is to prevent the noise from occurring during the on/off switching of the filtering with a low-cost configuration at no significant increase in circuit dimension and program size.
More specifically, the present invention provides a signal processor comprising: a delay buffer which delays input data to generate delay data and stores the delay data; a filtering on/off control section which outputs a control signal for turning filtering on or off; an output selection section which extracts and outputs specified delay data from the delay buffer in response to the control signal output from the filtering on/off control section; and a filtering operation section which performs a filtering operation on the delay data stored in the delay buffer in response to the control signal output from the filtering on/off control section and outputs the operation result.
The present invention further provides a signal processor comprising: a delay buffer which delays input data to generate delay data and stores the delay data; a filtering on/off control section which outputs a control signal for turning filtering on or off; a filtering operation section which performs a filtering operation on the delay data stored in the delay buffer and outputs the operation result; and a filter coefficient determination section which changes a filter coefficient of the filtering operation section in response to the control signal output from the filtering on/off control section.
Further, in the present invention, the filter coefficient determination section may be so configured that a filter coefficient required for the filtering operation is determined when a control signal for turning the filtering on is output from the filtering on/off control section, or a filter coefficient for specified delay data is determined as “1” and a filter coefficient for the other delay data is determined as “0” when a control signal for turning the filtering off is output from the filtering on/off control section.
Thus, the present invention allows preventing the noise from occurring during the on/off switching of the filtering. Since the processor configuration is simple, the present invention is easy to realize. Further, the noise prevention is achieved at low costs without any significant increase in circuit dimension and program size.
Hereinafter, detailed explanation is given of embodiments of the present invention with reference to the drawings. The following preferable embodiments are inherently presented for explanation only and do not limit the present invention, the scope of application thereof and uses thereof
Hereinbelow, an explanation is given of the performance of the signal processor. First, the delay buffer 302 receives data and sequentially delays the data to generate delay data. The delay data is stored in the delay buffer 302.
When the filtering is necessary, the filtering on/off control section 304 outputs a control signal which makes the filtering operation section 303 operative to the filtering operation section 303 and a control signal which makes the output selection section 305 inoperative to the output selection section 305.
Since the filtering operation section 303 becomes operative and the output selection section 305 is turned inoperative by these control signals, the delay data in the delay buffer 302 is sent to the filtering operation section 303. Then, the filtering operation section 303 performs a filtering operation, i.e., a sum-product operation on the delay data and a filter coefficient, thereby generating data to be output.
On the other hand, when the filtering is unnecessary, the filtering on/off control section 304 outputs a control signal which makes the filtering operation section 303 inoperative to the filtering operation section 303 and a control signal which makes the output selection section 305 operative to the output selection section 305.
Since the filtering operation section 303 becomes inoperative and the output selection section 305 is turned operative by these control signals, the output selection section 305 extracts specified delay data out of the delay data stored the delay buffer 302 and outputs the extracted data.
If an FIR filter (Finite Impulse Response filter) having a filter coefficient which is even-order symmetric and includes an odd number of taps is used as the filtering operation section 303 in the filtering-on state, a maximum filter coefficient is given to the center tap and the filter coefficient becomes even-order symmetric with respect to the center tap as a center of symmetry. Therefore, if the delay data at the center tap is extracted to output in the filtering-off state, a level difference between the output data before and after the on/off switching of the filtering is reduced.
Further, if the filtering operation section 303 is an FIR filter having a filter coefficient which is even-order symmetric and includes an even number of taps, the delay data in one of two taps at the center is extracted to output.
In the thus configured signal processor according to Embodiment 1, data of 0 or almost 0 is not output even if the filtering state is switched between on and off during the data input, thereby preventing the noise from occurring.
Hereinbelow, an explanation is given of the performance of the signal processor. First, the delay buffer 502 receives data and sequentially delays the data to generate delay data. The delay data is stored in the delay buffer 502.
When the filtering is necessary, a control signal for turning the filtering on is output from the filtering on/off control section 504 to the filter coefficient determination section 506.
Upon receiving the “filter-on” control signal, the filter coefficient determination section 506 determines a filter coefficient for the filtering. Then, the filtering operation section 503 performs a filtering operation, i.e., a sum-product operation on the delay data and the filter coefficient, thereby generating data to be output.
On the other hand, when the filtering is unnecessary, a control signal for turning the filtering off is output from the filtering on/off control section 504 to the filter coefficient determination section 506.
Upon receiving the “filter-off” control signal, the filter coefficient determination section 506 determines a filter coefficient for turning the filtering off Then, the filtering operation section 503 performs an operation to generate data to be output.
If an FIR filter (Finite Impulse Response filter) having a filter coefficient which is even-order symmetric and includes an odd number of taps is used as the filtering operation section 503 in the filtering-on state, a maximum filter coefficient is given to the center tap and the filter coefficient becomes even-order symmetric with respect to the center tap as a center of symmetry. Therefore, if the delay data at the center tap is extracted to output in the filtering-off state, a level difference between the output data before and after the on/off switching of the filtering is reduced.
If the filtering operation section 503 is an FIR filter having a filter coefficient which is even-order symmetric and includes an even number of taps, the filter coefficient for one of two taps at the center is determined as “1” and the filter coefficient for the rest of the taps including the other of the two is determined as “0”.
In the thus configured signal processor according to Embodiment 2, data of 0 or almost 0 is not output even if the filtering is switched between on and off during the data input, thereby preventing the noise from occurring.
Thus, as described above, the present invention provides a highly practical effect of preventing the occurrence of noise accompanying the on/off switching of the filtering in a signal processor. Therefore, the present invention is significantly useful and offers excellent industrial applicability.
Number | Date | Country | Kind |
---|---|---|---|
2004-163415 | Jun 2004 | JP | national |