The present invention relates to temporal envelope shaping of signals and in particular to the temporal envelope shaping of a decorrelated signal derived from a downmix signal and additional control data during the reconstruction of a stereo or multi-channel audio signal.
Recent development in audio coding enables one to recreate a multi-channel representation of an audio signal based on a stereo (or mono) signal and corresponding control data. These methods differ substantially from older matrix based solutions, such as Dolby Prologic, since additional control data is transmitted to control the recreation, also referred to as up-mix, of the surround channels based on the transmitted mono or stereo channels. Such parametric multi-channel audio decoders reconstruct N channels based on M transmitted channels, where N>M, and the additional control data. Using the additional control data causes a significantly lower data rate than transmitting all N channels, making the coding very efficient, while at the same time ensuring compatibility with both M channel devices and N channel devices. The M channels can either be a single mono channel, a stereo channel, or a 5.1 channel representation. Hence, it is possible to have an 7.2 channel original signal, downmixed to a 5.1 channel backwards compatible signal, and spatial audio parameters enabling a spatial audio decoder to reproduce a closely resembling version of the original 7.2 channels, at a small additional bit rate overhead.
These parametric surround coding methods usually comprise a parameterisation of the surround signal based on time and frequency variant ILD (Inter Channel Level Difference) and ICC (Inter Channel Coherence) quantities. These parameters describe e.g. power ratios and correlations between channel pairs of the original multi-channel signal. In the decoder process, the re-created multichannel signal is obtained by distributing the energy of the received downmix channels between all the channel pairs described by the transmitted ILD parameters. However, since a multi-channel signal can have equal power distribution between all channels, while the signals in the different channels are very different, thus giving the listening impression of a very wide sound, the correct wideness is obtained by mixing signals with decorrelated versions of the same, as described by the ICC parameter.
The decorrelated version of the signal, often referred to as wet signal, is obtained by passing the signal (also called dry signal) through a reverberator, such as an all-pass filter. The output from the decorrelator has a time-response that is usually very flat. Hence, a dirac input signal gives a decaying noise-burst out. When mixing the decorrelated and the original signal it is for some transient signal types, like applause signals, important to shape the time envelope of the decorrelated signal to better match that one of the dry signal. Failing to do so will result in a perception of larger room size and unnatural sounding transients due to pre-echo type of artefacts.
In systems where the multi-channel reconstruction is done in a frequency transform domain having a low time resolution, temporal envelope shaping techniques can be employed, similarly to those used for shaping quantization noise such as Temporal Noise Shaping [J. Herre and J. D. Johnston, “Enhancing the performance of perceptual audio coding by using temporal noise shaping (TNS),” in 101st AES Convention, Los Angeles, November 1996] of perceptual audio codecs like MPEG-4 AAC. This is accomplished by means of prediction across frequency bins, where the temporal envelope is estimated by linear prediction in the frequency direction on the dry signal, and the filter obtained is applied, again in the frequency direction, on the wet signal.
One may for example consider a delay line as decorrelator and a strongly transient signal, such as applause or a gun-shot, as signal to be up-mixed. When no envelope shaping would be performed, a delayed version of the signal would be combined with the original signal to reconstruct a stereo or multi-channel signal. Such, the transient signal would be present twice in the up-mixed signal, separated by the delay time, causing an unwanted echo type effect.
In order to achieve good results on highly critical signals, the time-envelope of the decorrelated signal needs to be shaped with a very high time resolution, such cancelling out a delayed echo of a transient signal or masking it by reducing its energy to the energy contained in the carrier channel at the time.
This broad band gain adjustment of the decorrelated signal can be done over windows as short as 1 ms [U.S. patent application, “Diffuse Sound Shaping for BCC Schemes and the Like”, Ser. No. 11/006492, Dec. 7, 2004]. Such high time-resolutions of the gain adjustment for the decorrelated signal inevitably leads to additional distortion. In order to minimise the added distortion for non-critical signals, i.e. where the temporal shaping of the decorrelated signal is not crucial, detection mechanism are incorporated in the encoder or decoder, that switch the temporal shaping algorithm on and off, according to some sort of pre-defined criteria. The drawback is that the system can become extremely sensitive to detector tuning.
Throughout the following description the term decorrelated signal or wet signal is used for the, possibly gain adjusted (according to the ILD and ICC parameters) decorrelated version of a downmix signal, and the term downmix signal, direct signal or dry signal is used for the, possibly gain adjusted downmix signal.
In prior art implementations, a high time-resolution gain adjustment, i.e. a gain adjustment based on samples of the dry signal as short as milliseconds, leads to an additional significant distortion for non-critical signals. These are non-transient signals having a smooth timely evolution, for example music signals. The prior art approach of switching the gain adjustment off for such non-critical signals introduces a new and strong dependency of the quality of audio perception on the detection mechanism, which is, of course, mostly disadvantageous and may even introduce additional distortion, when the detection fails.
It is the object of the present invention to provide a concept to shape the envelope of a decorrelated signal more efficiently, avoiding the introduction of additional signal distortion.
In accordance with a first aspect of the present invention this object is achieved by an apparatus for processing a decorrelated signal derived from an original signal or a combination signal derived by combining the original signal and the decorrelated signal, comprising: a spectral flattener for spectral flattening of the decorrelated signal, a signal derived from the decorrelated signal, the original signal, a signal derived from the original signal or the combination signal to obtain a flattened signal, the spectral flattener being operative such that the flattened signal has a flatter spectrum than a corresponding signal before flattening; and a time envelope shaper for time envelope shaping the decorrelated signal or the combination signal using information on the flattened signal.
In accordance with a second aspect of the present invention this object is achieved by a spatial audio decoder, comprising: an input interface for receiving an original signal derived from a multi channel signal having at least two channels and for receiving spatial parameters describing an interrelation between a first channel and a second channel of the multi channel signal; a decorrelator for deriving a decorrelated signal from the original signal using the spatial parameters; a spectral flattener for spectral flattening of the decorrelated signal, a signal derived from the decorrelated signal, the original signal, a signal derived from the original signal or a combination signal derived by combining the original signal and the decorrelated signal to obtain a flattened signal, the spectral flattener being operative such that the flattened signal has a flatter spectrum than a corresponding signal before flattening; and a time envelope shaper for time envelope shaping the decorrelated signal or the combination signal using information on the flattened signal.
In accordance with a third aspect of the present invention this object is achieved by a receiver or audio player, having an apparatus for processing a decorrelated signal derived from an original signal or a combination signal derived by combining the original signal and the decorrelated signal, comprising: a spectral flattener for spectral flattening of the decorrelated signal, a signal derived from the decorrelated signal, the original signal, a signal derived from the original signal or the combination signal to obtain a flattened signal, the spectral flattener being operative such that the flattened signal has a flatter spectrum than a corresponding signal before flattening; and a time envelope shaper for time envelope shaping the decorrelated signal or the combination signal using information on the flattened signal.
In accordance with a fourth aspect of the present invention this object is achieved by a method for processing a decorrelated signal derived from an original signal or a combination signal derived by combining the original signal and the decorrelated signal, the method comprising: spectrally flattening the decorrelated signal, a signal derived from the decorrelated signal, the original signal, a signal derived from the original signal or the combination signal to obtain a flattened signal, the flattened signal having a flatter spectrum than a corresponding signal before flattening; and time envelope shaping the decorrelated signal or the combination signal using information on the flattened signal.
In accordance with a fifth aspect of the present invention this object is achieved by a method of receiving or audio playing, the method having a method for processing a decorrelated signal derived from an original signal or a combination signal derived by combining the original signal and the decorrelated signal, the method comprising: spectrally flattening the decorrelated signal, a signal derived from the decorrelated signal, the original signal, a signal derived from the original signal or the combination signal to obtain a flattened signal, the flattened signal having a flatter spectrum than a corresponding signal before flattening; and time envelope shaping the decorrelated signal or the combination signal using information on the flattened signal.
In accordance with a sixth aspect of the present invention this object is achieved by a computer program for performing, when running on a computer, a method in accordance with any of the above method claims.
The present invention is based on the finding that the envelope of a decorrelated signal derived from an original signal or of a combination signal derived by combining the original signal and the decorrelated signal can be shaped without introducing additional distortion, when a spectral flattener is used to spectrally flatten the spectrum of the decorrelated signal or the combination signal and the original signal to use the flattened spectra for deriving a gain factor describing the energy distribution between the flattened spectra, and when the so derived gain factor is used by an envelope shaper to shape the time envelope of the decorrelated signal or of the combination signal.
Flattening the spectrum has the advantage that transient signals are hardly affected by flattening, since these signals already have a rather flat spectrum. Moreover, the gain factors derived for non-transient signals are being brought closer to unity. Therefore both demands shaping transient signals and not altering non-transient signals can be met at a time, without having to switch envelope shaping on and off during a decoding process.
The same advantages hold for shaping of combination signals that are a combination of an original signal and a decorrelated signal which is derived from said original signal. Such a combination may be derived by first deriving a decorrelated signal from the original signal and by then simply adding the two signals. For example, possible pre-echo type of artefacts can be advantageously suppressed in the combination signal by shaping the combination signal using the flattened spectrum of the combination signal and the flattened spectrum of the original signal to derive gain factors used for shaping.
The present invention relates to the problem of shaping the temporal envelope of decorrelated signals that are frequently used in reconstruction of multi-channel audio signals. The invention proposes a new method that retains the high time resolution for applause signals, while minimising the introduced distortion for other signal types. The present invention teaches a new way to perform the short time energy adjustment that significantly reduces the amount of distortion introduced, making the algorithm much more robust and less dependent on a very accurate detector controlling the operation of a temporal envelope shaping algorithm.
The present invention comprises the following features:
The following problems are completely or significantly reduced by the present invention, that would otherwise arise when attempting very short time broad band energy correction of a decorrelated signal:
The present invention outlines a novel method for calculating the required gain adjustment that retains the high time-resolution but minimises the added distortion. This means that a spatial audio system utilising the present invention is not as dependent on a detection mechanism that switches the temporal shaping algorithm off for non-critical items, since the added distortion for items where the temporal shaping is not required is kept to a minimum.
The novel invention also outlines how to get an improved estimate of the temporal envelope of the dry signal to be applied to the wet signal when estimating it by means of linear prediction in the frequency direction within the transform domain.
In one embodiment of the present invention an inventive apparatus for processing a decorrelated signal is applied within the signal processing path of a 1 to 2 upmixer after the derivation of the wet signal from the dry signal.
Firstly, a spectrally flattened representation of the wet signal and of the dry signal is computed for a large number of consecutive time domain samples (a frame). Based on those spectrally flattened representations of the wet and the dry signal, gain factors to adjust the energy of a smaller number of samples of the wet signal are then computed based on the spectrally flattened representations of the wet and the dry signal. By spectrally flattening, the spectrum of a transient signal, which is rather flat by nature, is hardly altered, whereas the spectrum of periodic signals is strongly modified. Using a signal representation with flattened spectra therefore achieves both, shaping the envelope of the decorrelated wet signal heavily, when a transient signal is predominant and shaping the envelope of the wet signal merely, when smooth or periodic signals carry the most energy in the dry channel. Thus, the present invention significantly reduces the amount of distortion added to the signal especially for signal segments where the temporal envelope shaping is basically not required. Furthermore, the high dependency on a prior art detector indicating when short time energy corrections should be applied, is avoided.
In a further embodiment of the present invention an inventive apparatus operates on an upmixed (combined) monophonic signal which is derived by an upmixer that combines an original signal and a decorrelated signal derived from the original signal to compute the upmixed monophonic signal. Such upmixing is a standard strategy during reconstruction of multi-channel signals for deriving individual channels that have acoustic properties of the corresponding original channel of the multi-channel signal. Since the inventive apparatus can be applied after such upmixing, already existing set ups can easily be extended.
In a further embodiment of the present invention, the temporal envelope shaping of a decorrelated signal is implemented within the subband domain of a filterbank. There, flattened spectral representations of the various subband signals are derived for each subband individually for a high number of consecutive samples. Based on the spectrally flattened long-term spectra, the gain factor to shape the envelope of the wet signal according to the dry signal is computed for a sample representing a much lower time period of the original signal. The advantages with respect to the perceptual quality of the reconstructed audio signal are the same as for the example described above. Furthermore, the possibility to implement the inventive concept within a filterbank representation has the advantage, that already existing multi-channel audio decoders using filterbank representations can be modified to implement the inventive concept without major structural and computational efforts.
In a further embodiment of the present invention, the temporal envelope shaping of the wet signal is performed within the subband domain using linear prediction. Therefore, linear prediction is applied in the frequency direction of the filterbank, allowing to shape the signal with higher time resolution than natively available in the filterbank. Again, the final energy correction is computed by estimating gain curves for a number of consecutive subband samples of the filterbank.
In a modification of the previously described embodiment of the present invention, the estimation of the parameters describing the whitening of the spectrum are smoothed over a number of neighbouring time samples of the filterbank. Therefore, the risk of applying a wrongly derived inverse filters to whiten the spectrum when transient signals are present, is further reduced.
a shows the application of an inventive apparatus within a 1 to 2 upmixer stage;
b shows a further example of an application of an inventive apparatus;
a shows an alternative placement possibility of the inventive apparatus;
b shows a further example for the placement of an inventive apparatus;
a shows the use of an inventive apparatus within a multi-channel audio decoder;
b shows an inventive apparatus within a further multi-channel audio decoder;
a shows a preferred embodiment of an inventive apparatus;
b shows a modification of the inventive apparatus of
c shows an example of linear predictive coding;
d shows the application of a bandwidth expansion factor at linear predictive coding;
a shows an inventive spectral flattener;
b shows an application scheme of long-term energy correction;
a shows an inventive apparatus within a QMF-filterbank design;
b shows details of the inventive apparatus of
The transmitted monophonic signal 105 is input into the parametric stereo upmixer 110 as well as into the decorrelator 112, that derives a decorrelated signal from the transmitted signal 105 using a decorrelation rule, that could, for example, be implemented by simply delaying the signal for a given time. The decorrelated signal produced by the decorrelator 112 is input into the inventive apparatus (shaper) 114, that additionally receives the transmitted monophonic signal as input. The transmitted monophonic signal is needed to derive the shaping rules used to shape the envelope of the decorrelated signal, as elaborated in more detail in the coming paragraphs.
Finally, a envelope shaped representation of the decorrelated signal is input into the parametric stereo upmixer, which derives the left channel 107 and the right channel 108 of a stereo signal from the transmitted monophonic signal 105 and from the envelope shaped representation of the decorrelated signal.
To better understand the inventive concept and the different presented embodiments of the present invention, the upmixing process of a transferred monophonic signal into a stereo signal using the additionally submitted special parameters is explained within the following paragraphs:
It is known from prior art that two audio channels can be reconstructed based on a downmix channel and a set of spatial parameters carrying information on the energy distribution of the two original channels upon which the downmix was made as well as information on the correlation between the two original channels. The embodiment in
In
with the parameters cl, Cr, α and β being derived from the ILD parameters and the ICC parameters transmitted in the bitstream. The signal X[k] is the received downmix signal 105, the signal Q[k] is the de-correlated signal, being a decorrelated version of the input signal 105. The output signals 107 and 108 are denoted Y1[k] and Y2[k].
The new module 114 is devised to shape the time envelope of the signal being output of the decorrelator module 112 so that the temporal envelope matches that of the input signal 105. The details of module 100 will be elaborated extensively on in a later section.
It is evident from the above and from
The reconstructed output channels are subsequently obtained by:
Given the above, it is clear that an inventive apparatus can be implemented into a decoding scheme as well before the final up-mixing, as shown in
b shows a further preferred embodiment of the present invention where an inventive shaper 114 is used to shape a combination signal 118 derived from the transmitted monophonic signal 105 and a decorrelated signal 116 derived from the transmitted monophonic signal 105. The embodiment of
A decorrelator 112 derives the decorrelated signal 116 from the transmitted monophonic signal 105. A mixer 117 receives the decorrelated signal 116 and the transmitted monophonic signal 105 as an input and derives the combination signal 118 by combining the transmitted signal 105 and the decorrelated signal 116.
Combination may in that context mean any suitable method to derive one single signal from two or more input signals. In the simplest example the combination signal 118 is derived by simply adding the transmitted monophonic signal 105 and the decorrelated signal 116.
The shaper 114 receives as an input the combination signal 118 that is to be shaped. To derive the gain factors for shaping, the transmitted monophonic signal 105 is also input into the shaper 114. A partly decorrelated signal 119 is derived at the output of the shaper 114 that has a decorrelated signal component and an original signal component without introducing additional audible artefacts.
As the wet signal parts 122a and 124a have been up-mixed but not shaped, a first shaper 126a and a second shaper 126b are additionally present in the inventive up-mixing set shown in
b shows a preferred embodiment of the present invention being a modification of the embodiment previously shown in
In the embodiment shown in
To summarize shortly, the embodiment shown in
As shown in
The 5.1 channel audio decoder 132 shown in
The present invention teaches that the signal from the decorrelator must undergo accurate shaping of its temporal envelope in order to not cause unwanted artefacts when the signal is mixed with the dry counterpart. The shaping of the temporal envelope can take place directly after the decorrelator unit as shown in
To support the above mentioned separate generation of dry signals and wet signals, a hierarchical structure as shown in
To achieve the separate generation of the dry and the wet signal paths, the monophonic downmix signal 130 is split and input into the first hierarchical decoder 150 as well as into the second hierarchical decoder 154. The modified upmixing modules 152 of the first hierarchical decoder 150 differentiate from the upmixing modules 100 of the 5.1 channel audio decoder 132 in that they are only providing the dry signal parts at their outputs. Correspondingly, the modified upmixing modules 156 of the second hierarchical decoder 154 are only providing the wet signal parts at their outputs. Therefore, by implementing the same hierarchical structure as already in
The present invention further teaches that the signals used for extraction of the estimated envelopes that are subsequently used for the shaping of the temporal envelope of the wet signal shall undergo a long term spectral flattening or whitening operation prior to the estimation process in order to minimise the distortion introduced when modifying the decorrelated signal using very short time segments, i.e. time segments in the 1 ms range. The shaping of the temporal envelope of the decorrelated signal can be done by means of short term energy adjustment in the subband domain or in the time domain. The whitening step as introduced by the present invention ensures that the energy estimates are calculated on an as large time frequency tile as possible. Stated differently, since the duration of the signal segment is extremely short, it is important to estimate the short term energy over an as large frequency range as possible, in order to maximise the “number of data-points” used for energy calculation. However, if one part of the frequency range is very dominant over the rest, i.e. a steep spectral slope, the number of valid data points becomes too small, and the estimate obtained will be prone to vary from estimate to estimate, imposing unnecessary fluctuations of the applied gain values.
The present invention further teaches that when the temporal envelope of the decorrelated signal is shaped by means of prediction in the frequency direction [J. Herre and J. D. Johnston, “Enhancing the performance of perceptual audio coding by using temporal noise shaping (TNS),” in 101st AES Convention, Los Angeles, November 1996.], the frequency spectrum used to estimate the predictor should undergo a whitening stage, in order to achieve a good estimate of the temporal envelope that shall be applied to the decorrelated signal. Again, it is not desirable to base the estimate on a small part of the spectrum as would be the case for a steep sloping spectrum without spectral whitening.
a shows a preferred embodiment of the present invention operative in the time domain. The inventive apparatus for processing a decorrelated signal 200 receives the wet signal 202 to be shaped and the dry signal 204 as input, wherein the wet signal 202 is derived from the dry signal 204 in a previous step, that is not shown in
The apparatus 200 for processing a decorrelated signal 202 is having a first high path filter 206, a first linear prediction device 208, a first inverse filter 210 and a first delay 212 in signal path of the dry signal and a second high-pass filter 220, a second linear prediction device 222, a second inverse filter 224, a low-pass filter 226 and a second delay 228 in the signal path of the wet signal. The apparatus further comprises a gain calculator 230, a multiplier (envelope shaper) 232 and an adder (upmixer) 234.
On the dry signal side, the input of the dry signal is split and the input into the first high-pass filter 206 and the first delay 212. An output of the high-pass filter 206 is connected with an input of the first linear prediction device 208 and with an first input of the first inverse filter 210. An output of the first linear prediction device 208 is connected to a second input of the inverse filter 210, and an output of the inverse filter 210 is connected to a first input of the gain calculator 230. In the wet signal path, the wet signal 202 is split and input into an input of the second high-pass filter 220 and to an input of the low-pass filter 226. An output of the lowpass filter 226 is connected to the second delay 228. An output of the second high-pass filter 220 is connected to an input of the second linear prediction device 222 and to a first input of the second inverse filter 224. A output of the second linear prediction device 222 is connected to a second input of the second inverse filter 224, an output of which is connected to a second input of the gain calculator 230. The envelope shaper 232 receives at a first input the high-pass filtered wet signal 202 as supplied at the output of the second high-pass filter 220. A second input of the envelope shaper 232 is connected to an output of the gain calculator 230. An output of the envelope shaper 232 is connected to a first input of the adder 234, that receives at a second input a delayed dry signal, as supplied from an output of the first delay 212, and which further receives at a third input a delayed low frequency portion of the wet signal, as supplied by an output of the second delay 228. At an output of the adder 232, the completely processed signal is supplied.
In the preferred embodiment of the present invention shown in
According to the present invention, after the high-pass filtering, the long-term spectral envelope is to be estimated. It is important to note, that the time segment used for the long-term spectral envelope estimation is significantly longer than the time segments used to do the actual temporal envelope shaping. The spectral envelope estimation and subsequent inverse filtering typically operates on time segments in the range of 20 ms while the temporal envelope shaping aims at shaping the temporal envelope with an accuracy in the 1 ms range. In the preferred embodiment of the present invention shown in
is the polynomial obtained using the autocorrelation method or the covariance method [Digital Processing of Speech Signals, Rabiner & Schafer, Prentice Hall, Inc., Englewood Cliffs, N.J. 07632, ISBN 0-13-213603-1, Chapter 8], and G is a gain factor. The order p of the above polynomial is called predictor order.
As shown in
A(ρz)=a0z0ρ0+a1z1ρ1+a2z2ρ2+ . . . +apzpρp
The temporal envelope shaping and the effect of the bandwidth expansion factor ρ are illustrated in
c gives an example for the estimation of the spectral envelope of a signal, as it could be done by the first linear prediction device 208 and the second linear prediction device 222. For the spectral representation of
The solid line 240 describes the original spectral envelope of the processed signal, whereas the dashed line 242 gives the result obtained by linear predictive coding (LPC) using the values of the spectral envelope at the marked equidistant frequency values. For the example shown in
d shows the effect of lowering the predictor order p or of applying a bandwidth expansion factor ρ.
The parameters or coefficients αk estimated by the linear predicted devices are used by the inverse filters 210 and 224, to do the spectral flattening of the signals, i.e. the inverse filtering by using the following inverse filter function:
where p is the predictor order and ρ is the optional bandwidth expansion factor.
The coefficients αk can be obtained in different manners, e.g. the autocorrelation method or the covariance method. It is common practice to add some sort of relaxation to the estimate in order to ensure stability of the system. When using the autocorrelation method this is easily accomplished by offsetting the zero-lag value of the correlation vector. This is equivalent to addition of white noise at a constant level to the signal used to estimate A(z).
The gain calculator 230 calculates the short time target energies, i.e. the energies needed within the single samples of the wet signal to fulfil the requirement of an envelope of the wet signal that is shaped to the envelope of the dry signal. These energies are calculated based on the spectrally flattened dry signal and based on the spectrally flattened wet signal. A derives gain adjustment value can then be applied to the wet signal by the envelope shaper 232.
Before describing the gain calculator 230 in mote detail, it may be noted, that during the inverse filtering the gain factor C of the inverse filters 210 and 224 needs to be taken care for. Since the dry and wet signals operated on are output signals from an upmix-process that has produced two output signals for every channel, wherein the first channel has a specific energy ratio with respect to the second channel according to the ILD and ICC parameters used for the upmixed process, it is essential that this relation is maintained in average over the time segment for which the ILD and ICC parameters are valid in the course of the temporal envelope shaping. Stated differently, the apparatus for processing a decorrelated signal 200 shall only modify the temporal envelope of the decorrelated signal, while maintaining the same average energy of the signal over the segment being processed.
The gain calculator 230 operates on the two spectrally flattened signals and calculates a short-time gain function for application on the wet signal over time segments much shorter than the segments used for inverse filtering. For example, when the segment length for inverse filtering is 2048 samples, the short-term gain factors may be computed for samples of a length of 64. This means that on the basis of spectra, that are flattened over a length of 2048 samples, gain factors are derived for temporal energy shaping using much shorter segments of the signal as, for example, 64.
The application of the calculated gain factors to the wet signal is done by the envelope shaper 232 that multiplies the calculated gain factors with the sample parameters. Finally the high-pass filtered, envelope shaped wet signal is added to its low frequency part by the adder (upmixer) 234, yielding the finally processed and envelope shaped wet signal at the output of the envelope shaper 234.
As energy preservation and smooth transition between different gain factors is an issue as well during the inverse filtering as during the application of the gain factor, windowing functions may additionally be applied to calculated gain factors to guarantee for a smooth transition between gain factors of neighbouring samples. Therefore, the inverse filtering step and the application of the calculated short-term gain factors to the wet signals are described in more detail within
b shows a modification of the inventive apparatus for processing a decorrelated signal 200, where the envelope shaped wet signal is supplied to a high-pass filter 240 after the envelope shaping. In a preferred embodiment, the high-pass filter 224 has the same characteristics as the high-pass filter 220 deriving the part of the wet signal 202 that is filtered. Then, the high-pass filter 240 ensures that any introduced distortion in the decorrelated signal does not alter the high-pass character of the signal, thus introducing a miss-match in the summation of the unprocessed low-pass part of the decorrelated signal and the processed high-pass part of the signal.
Several important features of the above-outlined implementation of the present invention should again be emphasized:
a shows a more detailed description of an inverse filter used as first inverse filter 210 and as second inverse filter 224 within the inventive apparatus for processing a decorrelated signal 200. The inverse filter 300 comprises an inverse transformer 302, a first energy calculator 304, a second energy calculator 306, a gain calculator 308 and a gain applier 310. The inverse transformer 302 receives filter coefficients 312 (as derived by linear predictive coding) and the signal X(k) 314 as input. A copy of the signal 314 is input into the first energy calculator 304. The inverse transformer applies the inverse transformation based on the filter coefficients 312 to the signal 314 for a signal segment of length 2048. The gain factor G is set to 1, therefore, a flattened signal 316 (Xflat(z)) is derived from the input signal 314 according to the following formula:
As this inverse filtering does not necessarily preserve the energy, the long-term energy of the flattened signal has to be preserved by means of a long term gain factor glong. Therefore, the signal 214 is input into the first energy calculator 304 and the flattened signal 316 is input into the second energy calculator 306, where the energies of the signal E and of the flattened signal Eflat are computed as follows:
where the current segment length for spectral envelope estimation and inverse filtering is 2048 samples.
Hence, the gain factor glong can be computed by the gain calculator 308 using the following equation:
By multiplying the flattened signal 316 with the derived gain factor glong, energy preservation can be assured by the gain applier 310. To ensure a smooth transition between neighbouring signal segments, in a preferred embodiment, the gain factor glong is applied to the flattened signal 316 using a window function. Thus, a jump in the loudness of the signal can be avoided, which would heavily disturb the perceptual quality of the audio signal.
The long-term gain factor glong can for example be applied according to
Applying inverse filters 300 within the inventive apparatus for processing a decorrelated signal 200 assures, that the signals after the inverse filters are spectrally flattened while the energy of the input signals is furthermore preserved.
Based on the flattened wet and dry signals, the gain factor calculation can be performed by the gain calculator 230. This shall be explained in more detail within the following paragraphs, where a windowing function is additionally introduced to assure for a smooth transition of the gain factors used to scale neighbouring signal segments. In the example shown in
Here, win(k) is a window function 322, as shown in
The gain values calculated above are applied to the wet signal using windowed overlap add segments as outlined in
It may be noted, that given the requirement that the energy relation between the wet and dry signals should be maintained over the processed segment as calculated by the upmix based on the ILD and ICC parameters, it is evident that an average gain value averaged over the gain values gn-1,gn . . . gN shall be approximately equal to one for a majority of signals. Hence, returning to the calculation of the long term gain adjustment, in a different embodiment of the present invention the gain factor can be calculated as
Hence, the wet and dry signals are normalised, and the long term energy ratio between the two is approximately maintained.
Although the examples of the present invention detailed in the paragraphs above are performing temporal envelope shaping of a decorrelated signal in the time domain, it is evident from the derivation of the wet and dry signals above, that the temporal shaping module can be made to operate as well on the QMF subband signal output of a decorrelator unit prior to using the decorrelator signal for the final upmix stage.
This is sketched in
An example for a signal processing block 404 is given in
A single subband sample 416 is input into the signal processing block 404. The decorrelator 413 is deriving a decorrelated sample from the subband sample 416 which is input into the apparatus for processing a decorrelated signal 414 (shaper). The shaper 414 is receiving a copy of the subband sample 416 as a second input. The inventive shaper 414 is performing the temporal envelope shaping according to the present invention and providing a shaped decorrelated signal to a first input of the upmixer 415 that is additionally receiving the subband sample 416 at a second input. The upmixer 415 is deriving a left subband sample 417 and a right subband sample 418 from both the subband sample 416 and the shaped decorrelated sample.
By integrating multiple signal processing blocks 404 for different subband samples, left and right subband samples can be calculated for each subband of a filterbank domain.
In multi-channel implementations, signal procession is normally done in the QMF domain. It is also clear, given the above, that the final summation of the decorrelated signal and the direct version of the signal can be done as a final stage just prior to forming the actual reconstructed output signal. Hence, the shaping module can also be moved to be performed just prior to the addition of the two signal components, provided that the shaping module does not change the energy of the decorrelated signal as stipulated by the ICC and ILD parameters, but only modifies the short-term energies giving the decorrelated signal a temporal envelope closely matching the direct signal.
Operating the present invention in the QMF subband domain prior to upmix and synthesis or operating the present invention in the time-domain, after upmix and synthesis are two different approaches both having their distinct advantages and disadvantages. The former being the simplest and requires the least amount of computations albeit limited to the time-resolution of the filterbank it is operating in. While the latter requires additional synthesis filter-banks and therefore additional computational complexity, it has complete degree of freedom when choosing time resolution.
As already mentioned above, multi-channel decoders mostly perform the signal processing in the subband domain as shown in
A monophonic input signal 430 is input into a filterbank 432, to derive the multiple subband representations of the monophonic signal 430. The signal processing and upmixing of the monophonic signal into 4 signals is done by a signal processing block 434, deriving subband representations of a left dry signal 436a, a left wet signal 436b, a right dry signal 438a and a right wet signal 438b. After a QMF synthesis 440, a final left signal 442 can be derived from the left dry signal 436a and the left wet signal 436b using an inventive apparatus for processing a decorrelated signal 200, operative in the time domain. In the same way, a final right signal 444 can be derived from the right dry signal 438a and the right wet signal 438b.
As mentioned before, the present invention is not limited to be operated on a time domain signal. The inventive feature of long-term spectral flattening in combination with the short-term energy estimation and adjustment can also be implemented in a subband filterbank. In the previously shown examples, a QMF filterbank is used, however, it should be understood that the invention is by no means limited to this particular filterbank representation. According to the time domain implementation of the present invention, the signal used for estimation of the temporal envelope, i.e. the dry signal and the decorrelated signal going into the processing unit, are high-pass filtered, in the case of a QMF filterbank representation by means of setting QMF subbands to 0 in the lower-frequency range. The following paragraphs exemplify the use of the inventive concept in a QMF subband domain, where m denotes the subband, i.e. a frequency range of the original signal, and N denotes the sample number within the subband representation, and where the signal subband used for the long-term spectral flattening comprises N samples.
Now assuming that
Edry(m,n)=Qdry(m,n)Q*dry(m,n),mstart≦m<M,0≦n<N
Ewet(m,n)=Qwet(m,n)Q*wet(m,n),mstart≦m<M,0≦n<N
where Qdry(m,n) and Qwet(m,n) are the QMF subband matrices holding the dry and the wet signal, and where Edry(m,n) and Ewet(m,n) are the corresponding energies for all subband samples. Here, m denotes the subband, starting at mstart being chosen to correspond to approx 2 kHz, and where n is the subband sample index running from zero to N, the number of subband samples within a frame being, which is 32 in one preferred embodiment, corresponding to approx 20 ms.
For both energy matrices above the spectral envelope is calculated as an average over all subband samples in the frame. This corresponds to the long term spectral envelope.
Furthermore, the mean total energy over the frame is calculated according to:
Based on the equations above, a flattening gain curve can be calculated for the two matrices:
By applying the gain curve calculated above to the energy matrices for the wet and dry signal, long term spectrally flat energy matrices are obtained according to:
EdryFlat(m,n)=gdry(m)Edry(m,n), mstart≦m<M,0≦n<N
EwetFlat(m,n)=gwet(m)Ewet(m,n), mstart≦m<M,0≦n<N
The above energy matrices are used to calculate and apply the temporal envelope of the wet signal using the highest time resolution available in the QMF domain.
From the above description of the present invention implemented in the subband domain, it is clear that the inventive step of doing the long term spectral whitening in combination with short term time envelope estimation, or short time energy estimation/adjustment is not limited to usage of LPC in the time domain.
In a further embodiment of the present invention, temporal envelope shaping is used in the subband domain in the frequency direction, to perform the inventive spectral flattening, before applying temporal envelope shaping to the wet signal.
It is know from prior art that a signal represented in the frequency domain with low time resolution can be time envelope shaped by filtering in the frequency direction of the frequency representation of the signal. This is used in perceptual audio codecs to shape introduced quantization noise of a signal represented in a long transform [J. Herre and J. D. Johnston, “Enhancing the performance of perceptual audio coding by using temporal noise shaping (TNS),” in 101st AES Convention, Los Angeles, November 1996.].
Assuming a QMF filterbank with 64 channels and a prototype filter of 640 samples, it is evident that the time resolution of the QMF subband representation is not as high as when the temporal shaping is done in the time domain on windows in the ms range. One way of shaping a signal in the QMF domain with higher time resolution than natively available in the QMF, is to do linear prediction in the frequency direction. Hence, observing the dry signal in the QMF domain above for a certain QMF slot, i.e. for a subband sample n,
Qdry(m,n),mstart≦m<M,0≦n<N
A linear predictor
can be estimated, where
is the polynomial obtained using the autocorrelation method or the covariance method. Again it is important to note that contrary to LPC in the time-domain, as was outlined earlier, the here estimated linear predictor is devised to predict the complex QMF subband samples in the frequency direction.
In
In the previously described embodiment of the present invention, the linear prediction in the frequency direction is done in a complex QMF representation of the signal. Again, assuming a QMF filterbank with 64 channels and a prototype filter of 640 samples, and keeping in mind that the predictor operates on a complex signal, a very low order complex predictor is sufficient to track the temporal envelope of the signal within the QMF slot where the predictor is applied. A preferred choice is predictor order 1.
The estimated filter Hn corresponds to the temporal envelope of a QMF signal for the specific subband sample, i.e. a temporal envelope not available by just observing the subband sample (since only one sample is available). This sub-sample temporal envelope can be applied to the Qwet signal by filtering the signal in the frequency direction through the estimated filter, according to:
QwetAdjusted(m,n)=Qwet(m,n)*hn, mstart≦m<M
where m is the QMF slot, or subband sample, used for predictor estimation, and undergoing temporal shaping.
Although the wet signal being produced by the decorrelator has a very flat temporal envelope, it is recommended to first remove any temporal envelope on the wet signal prior to applying that of the dry signal. This can be achieved by doing the same temporal envelope estimation using linear prediction in the frequency direction as outlined above, albeit on the wet signal, and using the filter obtained to inverse filter the wet signal, thus removing any temporal envelope, prior to applying the temporal envelope of the dry signal.
In order to get an as closely matching temporal envelope of the wet signal as possible, it is important that the estimate of the temporal envelope derived by means of the linear predictor in the frequency direction of the dry signal is as good as possible. The present invention teaches that the dry signal should undergo long term spectral flattening prior to the estimation of its temporal envelope by means of linear prediction. Hence, the previously calculated gain curve
gdry(m), mstart≦m<M
should be applied to the dry signal used for temporal envelope estimation according to:
QdryFlat(m,n)=Qdry(m,n)gdry(m), mstart≦m<M,0≦n<N
where n denotes the QMF slots, and m denotes the subband index. It is evident that the gain correction curve is the same for all subbands samples within the present frame being processed. This is obvious since the gain curve corresponds to the required frequency selective gain adjustment in order to remove the long term spectral envelope. The obtained complex QMF representation QdryFlat(m,n) is used for estimating the temporal envelope filter using linear prediction as outlined above.
The additional time resolution offered by the LPC filtering aims at shaping the wet signal for transient dry signals. However, due to the use of a limited dataset of one QMF slot for the LPC estimation there is still a risk that fine temporal shaping is applied in a chaotic fashion. To reduce this risk while keeping the performance for transient dry signals, the LPC estimation can be smoothed over a few time slots. This smoothing has to take into consideration the evolution over time of the frequency direction covariance structure of the applied filter bank's analysis of an isolated transient event. Specifically, in the case of first order prediction and an oddly stacked complex modulated filter bank with a total oversampling factor of two, the smoothing taught by this invention consists of the following modification on the prediction coefficient an used in time slot n,
where d≧1 defines the prediction block size in the time direction.
The decoder 610 is having one or more inventive apparatuses for processing a decorrelated signal to perform an upmix of the downmix signal 602 including the inventive temporal shaping of the decorrelated signals. Thus, in such a transmission system, application of the inventive concept on a decoder side leads to an improved perceptual quality of the reconstructed 5.1 channel signal.
The above-described embodiments of the present invention are merely illustrative for the principles of the present invention and for methods for improved temporal shaping of decorrelated signals. It is understood that modifications and variations of the arrangements and the details described herein will be apparent to others skilled in the art. It is the intent therefore, to be limited only by the scope of the impending patent claims, but not by the specific details presented by way of description and explanation of the embodiments herein. It is also understood that the explanation of the present invention is carried-out by means of two channels and 5.1 channel examples, while it is obvious to others skilled in the art that the same principles apply for arbitrary channel configurations and, hence, the present invention is not limited to a specific channel configuration or embodiment with a specific number of in-/output channels. The present invention is applicable to any multi-channel reconstruction that utilises a decorrelated version of a signal and, hence, it is furthermore evident to those skilled in the art that the invention is not limited to the particular way of doing multi-channel reconstruction used in the exemplifications above.
In short, the present invention primarily relates to multi-channel reconstruction of audio signals based on an available downmix signal and additional control data. Spatial parameters are extracted on the encoder side representing the multi-channel characteristics given a downmix of the original channels. The downmix signal and the spatial representation is used in a decoder to recreate a close resembling representation of the original multi-channel signal, by means of distributing a combination of the downmix signal and a decorrelated version of the same to the channels being reconstructed. The invention is applicable in systems where a backwards compatible downmix signal is desirable, such as stereo digital radio transmission (DAB, XM satellite radio etc), but also to systems that require a very compact representation of the multi-channel signal.
The flattening of the spectrum was performed by inverse filtering based on filter coefficients derived by LPC analysis in the examples described above. It is understood that any further operation yielding a signal with a flattened spectrum is suited to be implemented to build a further embodiment of the present invention. The application would result in a reconstructed signal having the same advantageous properties.
Within a multi-channel audio decoder the place in the signal path, where the present invention is applied, is irrelevant for the inventive concept of improving the perceptual quality of a reconstructed audio signal using an inventive apparatus for processing a decorrelated signal.
Although, in a preferred embodiment, only a high-pass filtered part of the wet signal is envelope-shaped according to the present invention, the present invention may also be applied on a wet signal having the full spectrum.
The windowing functions, used to apply gain corrections to the long-term spectrally flattened signals as well as to the short-term envelope shaping gain factors are to be understood as examples only. It is evident, that other window functions may be used that allow for a smooth transition of gain functions between neighbouring segments of the signal to be processed.
Depending on certain implementation requirements of the inventive methods, the inventive methods can be implemented in hardware or in software. The implementation can be performed using a digital storage medium, in particular a disk, DVD or a CD having electronically readable control signals stored thereon, which cooperate with a programmable computer system such that the inventive methods are performed. Generally, the present invention is, therefore, a computer program product with a program code stored on a machine readable carrier, the program code being operative for performing the inventive methods when the computer program product runs on a computer. In other words, the inventive methods are, therefore, a computer program having a program code for performing at least one of the inventive methods when the computer program runs on a computer.
While the foregoing has been particularly shown and described with reference to particular embodiments thereof, it will be understood by those skilled in the art that various other changes in the form and details may be made without departing from the spirit and scope thereof. It is to be understood that various changes may be made in adapting to different embodiments without departing from the broader concepts disclosed herein and comprehended by the claims that follow.
Number | Date | Country | |
---|---|---|---|
60671583 | Apr 2005 | US |