The present invention relates to noise synthesis. More in particular, the present invention relates to a device for and a method of noise synthesis which is substantially independent of the sampling rate.
In sound synthesizers and (parametric) decoders noise has to be synthesized. This may be accomplished by producing random noise and shaping the noise using a set of parameters, which may include but are not limited to one or more gain parameters, temporal envelope parameters and spectral envelope parameters. The noise samples generated by the random noise generator may be processed by a temporal shaping unit and/or a spectral shaping unit for shaping the temporal and spectral envelope of the noise signal respectively.
The spectral shaping unit typically comprises a shaping filter, the filter coefficients of which are determined for a certain sampling frequency, for example 44.1 kHz (the CD sampling frequency). However, various data storage formats are used in practice, many having their own sampling frequency, for example 16.0 kHz or 48.0 kHz, thus making it necessary to convert sound signals from one sampling frequency to another sampling frequency. To this end, sampling rate converters are available. However, sampling rate converters are relatively expensive, adding significantly to the cost of devices in which they are utilized. Alternatively, the filter coefficients can be re-calculated to match the new sampling frequency. However, re-computing filter coefficients is complex and requires a significant amount of processing.
It is an object of the present invention to overcome these and other problems of the Prior Art and to provide a device for and method of producing noise, in particular spectrally shaped noise, which is able to produce noise at various sampling frequencies without using a sampling rate converter or re-computing the filter coefficients.
Accordingly, the present invention provides a device for producing spectrally shaped noise, the device comprising a filter unit for filtering input noise samples using filter coefficients representing a spectral envelope, wherein the filter coefficients are determined for use at a first sampling frequency, and wherein the spectrally shaped noise is reproduced using the same filter coefficients at a second, different sampling frequency.
By using the spectral envelope filter at a different sampling frequency, it is possible to produce noise at a different sampling frequency without the need for a sampling frequency converter. The inventors have found that operating the spectral envelope filter at a different frequency is very well possible without a noticeably affecting the sound quality, provided the difference between the first and the second sampling frequency is not too large, for example less than 50% of the first sampling frequency. Accordingly, a filter designed to operate at 16.0 kHz can, in accordance with the present invention, be used at 22.0 kHz (+37.5%).
If larger deviations from the original or first sampling frequency are desired, the sampling frequency can effectively be doubled or quadrupled by upsampling, thus increasing the number of noise samples. Upsampling may be carried out by the insertion of zeroes between the noise samples, and subsequent filtering, as is known per se. Accordingly, the upsampling may be followed by further spectral shaping using shaping filter coefficients to reduce aliazing effects.
As mentioned above, in the present invention upsampling is not used when the desired deviation from the original sampling frequency is relatively small.
In accordance with an important further aspect of the present invention, the two techniques mentioned above may be combined to allow further sampling frequency adjustments. If a filter designed for use at 16.0 kHz is to be used at 44.1 kHz, for example, the present invention teaches to (1) double the sampling rate by upsampling to arrive at 32.0 kHz, and then (2) use the 32.0 kHz noise samples at 44.1 kHz.
The device according to the present invention may further comprise a temporal envelope shaping unit and an overlap-and-add unit. The filter unit preferably comprises a frequency-warped filter, such as a Laguerre filter.
The present invention also provides a consumer device comprising a device as defined above, such as a mobile telephone device or a portable audio device, and an audio system comprising a device as defined above.
The present invention further provides a method of producing spectrally shaped noise, the method comprising the steps of:
receiving noise samples,
filtering the received noise samples using filter coefficients representing a spectral envelope, and
outputting the filtered noise samples, wherein the filter coefficients are determined for use at a first sampling frequency, and wherein the spectrally shaped noise is reproduced using the same filter coefficients at a second, different sampling frequency.
The number of noise samples may be increased by upsampling, and the upsampling may be followed by further spectral shaping using shaping filter coefficients, preferably low-pass filtering. However, the number of samples may also remain constant.
The present invention additionally provides a computer program product for carrying out the method as defined above. A computer program product may comprise a set of computer executable instructions stored on a data carrier, such as a CD or a DVD. The set of computer executable instructions, which allow a programmable computer to carry out the method as defined above, may also be available for downloading from a remote server, for example via the Internet.
The present invention will further be explained below with reference to exemplary embodiments illustrated in the accompanying drawings, in which:
The noise production device 1 shown merely by way of non-limiting example in
The temporal envelope filter unit 11 also receives first or temporal envelope parameters c1, which define one or more temporal envelopes. The filter unit 11 effectively shapes the temporal envelope of the random noise x(n) in accordance with the first parameters c1.
The random noise signal x(n) may consist of samples arranged in frames. The overlap-and-add (OLA) unit 12 adds the (temporally shaped) samples of overlapping frames to produce a signal that is fed to the spectral envelope filter (SEF) unit 13, which unit also receives second or spectral envelope parameters c2. The both temporally and spectrally shaped noise signal z(n) is output at output terminal 19.
The spectral envelope unit 13 typically contains a filter, for example a Laguerre filter, for imposing the desired spectral envelope upon the noise signal. The filter parameters are defined by, or equal to, the second parameters c2. Digital filters are designed to operate at a certain sampling rate, which will be referred to as the design sampling frequency (DSF) or design sampling rate. That is, the filter parameters are calculated so as to produce a certain filter characteristic at the design sampling frequency. When another sampling frequency is used, the resulting envelope will have shifted along the frequency axis.
In accordance with the present invention, the spectral envelope filter is used at another sampling frequency, the operating sampling frequency, that the one for which the filter is designed. The present inventors have found that, within certain limits, this will still yield satisfactory results. In particular, the actual or operating sampling frequency may be at most 50% higher or lower than the design sampling frequency, although it is preferred that this difference is at most 40%.
Using the present invention, the spectral envelope filter may for example be designed for use at 16.0 kHz and be actually used at both 16.0 and 22.05 kHz.
If the difference between the design sampling frequency and the operating sampling frequency is more than 50%, it is preferred that the embodiment of
A suitable shaping filter characteristic of the (upsampling) shaping filter 15 is illustrated in
Another suitable shaping filter characteristic of the (upsampling) shaping filter 15 is illustrated in
In the example of
The method of the present invention is illustrated in
Starting from stage I and a sampling frequency of 16.0 kHz, the frequency spectrum is effectively shifted by applying the 22.05 kHz sampling frequency (step A) in stage II, and then doubling the sampling frequency (step B) to arrive at a sampling frequency of 44.1 kHz in stage III. The doubling of the sampling frequency is achieved by the upsampling and subsequent filtering described above.
The present invention is based upon the insight that a filter, in particular a spectral envelope filter, can be operated at a sampling frequency different from its design sampling frequency. The present invention benefits from the further insight that upsampling may advantageously be used to effectively decrease the difference between the operating sampling frequency for which the filter was designed, and the operating frequency at which the filter is actually operated.
It is noted that any terms used in this document should not be construed so as to limit the scope of the present invention. In particular, the words “comprise(s)” and “comprising” are not meant to exclude any elements not specifically stated. Single (circuit) elements may be substituted with multiple (circuit) elements or with their equivalents.
It will be understood by those skilled in the art that the present invention is not limited to the embodiments illustrated above and that many modifications and additions may be made without departing from the scope of the invention as defined in the appending claims.
Number | Date | Country | Kind |
---|---|---|---|
06116309.3 | Jun 2006 | EP | regional |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/IB2007/052492 | 6/27/2007 | WO | 00 | 12/24/2008 |