AUDIO CHANNEL SPATIAL TRANSLATION
20230007419 · 2023-01-05
Assignee
Inventors
Cpc classification
H04S2400/03
ELECTRICITY
H04S5/005
ELECTRICITY
International classification
Abstract
The present invention is directed to methods and apparatus for translating a first plurality of audio input channels to a second plurality of audio output channels. This includes determining that there is pair-wise coding among any of the first plurality of audio input channels, determining an input/output-mapping matrix for mapping at least a first set of the first plurality of audio input channels to at least a second set of the second plurality of audio output channels; and deriving the second plurality of audio output channels based on first plurality of audio input channels, the input/output-mapping matrix and the determined pair-wise coding. The first plurality of audio input channels represent the same soundfield represented by the second plurality of audio output channels.
Claims
1. A method for translating a first plurality of audio input channels to a second plurality of audio output channels, the method comprising: receiving, by an audio processor decoder module, the first plurality of audio input channels; determining that there is pair-wise coding among any of the first plurality of audio input channels; determining an input/output-mapping matrix for mapping at least a first set of the first plurality of audio input channels to at least a second set of the second plurality of audio output channels, wherein the input/output-mapping matrix is a mixing matrix, wherein each matrix element of the input/output-mapping matrix is a transfer function relating to mapping an input channel i of the first plurality of audio input channels to an output channel j of the second plurality of audio output channels; and deriving the second plurality of audio output channels based on the first plurality of audio input channels, the input/output-mapping matrix and the determined pair-wise coding, wherein at least one coefficient of the input/output-mapping matrix is computed based at least in part on a cross-correlation of pair-wise coded audio input signals, wherein the cross-correlation is based at least in part on a cross power value for the pair-wise coded audio input signals, wherein the deriving of the second plurality of audio output channels based on first plurality of audio input channels causes a soundfield represented by the first plurality of audio input channels to be determined and reproduced, and wherein the first plurality of audio input channels represents a same soundfield represented by the second plurality of audio output channels; wherein a total number of audio input channels in the first plurality of audio input channels equals a total number of audio output channels in the second plurality of audio output channels.
2. The method of claim 1, wherein a first specific set of three or more audio input channels in first plurality of audio input channels is mapped to a second specific set of the second plurality of audio output channels based on a third set of fixed mixing coefficients of the input/output-mapping matrix.
3. A non-transitory computer readable storage medium containing instructions that when executed by a processor perform the method of claim 1.
4. A system for translating a first plurality of audio input channels to a second plurality of audio output channels, the system comprising: a receiver for receiving the first plurality of audio input channels; a processor configured to determine that there is pair-wise coding among any of the first plurality of audio input channels, the processor further configured to determine an input/output-mapping matrix for mapping at least a first set of the first plurality of audio input channels to at least a second set of the second plurality of audio output channels, wherein the input/output-mapping matrix is a mixing matrix, wherein each matrix element of the input/output-mapping matrix is a transfer function relating to mapping an input channel i of the first plurality of audio input channels to an output channel j of the second plurality of audio output channels; and a decoder configured to derive the second plurality of audio output channels based on the first plurality of audio input channels, the input/output-mapping matrix and the determined pair-wise coding, wherein at least one coefficient of the input/output-mapping matrix is computed based at least in part on a cross-correlation of the pair-wise coded audio input signals, wherein the cross-correlation is based at least in part on a cross power value for the pair-wise coded audio input signals, wherein the deriving of the second plurality of audio output channels based on first plurality of audio input channels causes a soundfield represented by the first plurality of audio input channels to be determined and reproduced, and wherein the first plurality of audio input channels represents a same soundfield represented by the second plurality of audio output channels; wherein a total number of audio input channels in the first plurality of audio input channels equals a total number of audio output channels in the second plurality of audio output channels.
5. The system of claim 4, wherein a first specific set of three or more audio input channels in first plurality of audio input channels is mapped to a second specific set of the second plurality of audio output channels based on a third set of fixed mixing coefficients of the input/output-mapping matrix.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0061]
[0062]
[0063]
[0064]
[0065]
[0066]
[0067]
[0068]
[0069]
[0070]
[0071]
MODES FOR CARRYING OUT THE INVENTION
[0072] In order to test aspects of the present invention, an arrangement was deployed having a horizontal array of 5 speakers on each wall of a room having four walls (one speaker in each corner with three spaced evenly between each corner), 16 speakers total, allowing for common corner speakers, plus a ring of 6 speakers above a centrally-located listener at a vertical angle of about 45 degrees, plus a single speaker directly above, total 23 speakers, plus a subwoofer/LFE (low frequency effects) channel, total 24 speakers, all fed from a personal computer set up for 24-channel playback. Although by current parlance, this system might be referred to as a 23.1 channel system, for simplicity it will be referred to as a 24-channel system herein.
[0073]
[0074] Returning to the description of
[0075] Although the decoding modules represented in
[0076] Although the arrangement of
[0077] By employing multiple modules in which each module has output channels in an arc or a line (such as the example of
[0078] An alternative to the encoding/decoding arrangement of
[0079] Although input and output channels may be characterized by their physical position, or at least their direction, characterizing them with a matrix is useful because it provides a well-defined signal relationship. Each matrix element (row i, column j) is a transfer function relating input channel i to output channel j. Matrix elements are usually signed multiplicative coefficients, but may also include phase or delay terms (in principle, any filter), and may be functions of frequency (in discrete frequency terms, a different matrix at each frequency). This is straightforward in the case of dynamic scale factors applied to the outputs of a fixed matrix, but it also lends itself to variable-matrixing, either by having a separate scale factor for each matrix element, or, for matrix elements more elaborate than simple scalar scale factors, in which matrix elements themselves are variable, e.g., a variable delay.
[0080] There is some flexibility in mapping physical positions to matrix elements; in principle, embodiments of aspects of the present invention may handle mapping an input channel to any number of output channels, and vice versa, but the most common situation is to assume signals mapped only to the nearest output channels via simple scalar factors which, to preserve power, sum-square to 1.0. Such mapping is often done via a sine/cosine panning function.
[0081] For example, with two input channels and three interior output channels on a line between them plus the two endpoint output channels coincident with the input positions (i.e., an M:N module in which M is 2 and N is 5), one may assume that the span represents 90 degrees of arc (the range that sine or cosine change from 0 to 1 or vice versa), so that each channel is 90 degrees/4 intervals=22.5 degrees apart, giving the channels matrix coefficients of (cos (angle), sin (angle)):
Lout coeffs=cos(0), sin(0)=(1, 0)
MidLout coeffs=cos(22.5), sin(22.5)=(0.92, 0.38)
Cout coeffs=cos(45), sin(45)=(0.71, 0.71)
MidRout coeffs=cos(67.5, sin(67.5)=(0.38, 0.92)
Rout coeffs=cos(90), sin(90)=(0, 1)
[0082] Thus, for the case of a matrix with fixed coefficients and a variable gain controlled by a scale factor at each matrix output, the signal output at each of the five output channels is (where “SF” is a scale factor for a particular output identified by the subscript):
Lout=Lt(SF.sub.L)
MidLout=((0.92)Lt+(0.38)Rt))(SF.sub.MidL)
Cout=((0.45)Lt+(0.45)Rt))(SF.sub.C)
MidRout=((0.38)Lt+(0.92)Lt))(SF.sub.MidR)
Rout=Rt(SF.sub.R)
[0083] Generally, given an array of input channels, one may conceptually join nearest inputs with straight lines, representing potential decoder modules. (They are “potential” because if there is no output channel that needs to be derived from a module, the module is not needed). For typical arrangements, any output channel on a line between two input channels may be derived from a two-input module (if sources and transmission channels are in a common plane, then any one source appears in at most two input channels, in which case there is no advantage in employing more than two inputs). An output channel in the same position as an input channel is an endpoint channel, perhaps of more than one module. An output channel not on a line or at the same position as an input (e.g., inside or outside a triangle formed by three input channels) requires a module having more than two inputs.
[0084] Decode modules with more than two inputs are useful when a common signal occupies more than two input channels. This may occur, for example, when the source channels and input channels are not in a plane: a source channel may map to more than two input channels. This occurs in the example of
[0085] In general, it is not necessary to check for all possible combinations of signal commonality among the input channels. With planar channel arrays (e.g., channels representing horizontally arrayed directions), it is usually adequate to perform pairwise similarity comparison of spatially adjacent channels. For channels arranged in a canopy or the surface of a sphere, signal commonality may extend to three or more channels. Use and detection of signal commonality may also be used to convey additional signal information. For example, a vertical or top signal component may be represented by mapping to all five full range channels of a horizontal five-channel array. Such an alternative is described further below in connection with
[0086] Decisions about which input channel combinations to analyze for commonality, along with a default input/output-mapping matrix, need only be done once per input/output channel translator or translator function arrangement, in configuring the translator or translator function. The “initial mapping” (before processing) derives a passive “master” matrix that relates the input/output channel configurations to the spatial orientation of the channels. As one alternative, the processor or processing portion of the invention may generate time-varying scale factors, one per output channel, which modify either the output signal levels of what would otherwise have been a simple, passive matrix or the matrix coefficients themselves. The scale factors in turn derive from a combination of (a) dominant, (b) even-spread (fill), and (c) residue (endpoint) signal components as described below.
[0087] A master matrix is useful in configuring an arrangement of modules such as shown in the examples of
[0088] Each module preferably has a “local” matrix, which is that portion of the master matrix applicable to the particular module. In the case of a multiple module arrangement, such as the example of
[0089] In the case of multiple modules that produce scale factors rather than output signals, such modules may continually obtain the matrix information relevant to itself from a master matrix via a supervisor rather than have a local matrix. However, less computational overhead is required if the module has its own local matrix. In the case of a single, stand-alone module, the module has a local matrix, which is the only matrix required (in effect, the local matrix is the master matrix), and that local matrix is used to produce output signals.
[0090] Unless otherwise indicated, descriptions of embodiments of the invention having multiple modules are with reference to the alternative in which modules produce scale factors.
[0091] Any decode module output channel with only one nonzero coefficient in the module's local matrix (that coefficient is 1.0, since the coefficients sum-square to 1.0) is an endpoint channel. Output channels with more than one nonzero coefficient are interior output channels. Consider a simple example. If output channels O1 and O2 are both derived from input channels I1 and I2 (but with different coefficient values), then one needs a 2-input module connected between I1 and I2 generating outputs O1 and O2, possibly among others. In a more complex case, if there are 5 inputs and 16 outputs, and one of the decoder modules has inputs I1 and I2 and feeds outputs O1 and O2 such that:
O1=A I1+B I2+0 I3+0 I4+0 I5
[0092] (note no contribution from input channels I3, I4, or I5), and
O2=C I1+D I2+0 I3+0 I4+0 I5
[0093] (note no contribution from input channels I3, I4, or I5),
then the decoder may have two inputs (I1 and I2), two outputs, and the scale factors relating them are:
O1=A I1+B I2, and
O2=C I1+D I2.
[0094] Either the master matrix or the local matrix, in the case of a single, stand-alone module, may have matrix elements that function to provide more than multiplication. For example, as noted above, matrix elements may include a filter function, such as a phase or delay term, and/or a filter that is a function of frequency. One example of filtering that may be applied is a matrix of pure delays that may render phantom projected images. In practice, such a master or local matrix may be divided, for example, into two functions, one that employs coefficients to derive the output channels, and a second that applies a filter function.
[0095]
[0096] As noted above, signal translation according to the present invention may be applied either to wideband signals or to each frequency band of a multiband processor, which may employ either a filter bank, such as a discrete critical-band filterbank or a filterbank having a band structure compatible with an associated decoder, or a transform configuration, such as an FFT (Fast Fourier Transform) or MDCT (Modified Discrete Cosine Transform) linear filterbank.
[0097] Not shown in
[0098] Continuing with the description of
[0099] A supervisor, such as supervisor 201 of
[0100] Although various functions may be performed by a supervisor, as described herein, or by multiple supervisors, one of ordinary skill in the art will appreciate that various ones or all of those functions may be performed in the modules themselves rather than by a supervisor common to all or some of the modules. For example, if there is only a single, stand-alone module, there need be no distinction between module functions and supervisor functions. Although, in the case of multiple modules, a common supervisor may reduce the required overall processing power by eliminating or reducing redundant processing tasks, the elimination of a common supervisor or its simplification may allow modules to be easily added to one another, for example, to upgrade to more output channels.
[0101] Returning to the description of
[0102] In the
[0103] A disadvantage of the arrangements of
[0104] As mentioned above, one way to map elevated channels to a horizontal planar array is to map each of them to more than two input channels. For example, that allows the 24 original source channels of the
[0105] Thus, according to the alternative of the examples of
TABLE-US-00001 TABLE A Encode/Downmix Decode/Upmix Source Downmix Source Upmix Channel Channels Channel(s) Channel Lf (1) Lf Lf Lf (1) (2) Lf + Cf Lf + Cf (2) Cf (3) Cf Cf Cf (3) (4) Cf + Rf Cf + Rf (4) Rf (5) Rf Rf Rf (5) (6) Rf + Rs Rf + Rs (6) (7) Rf + Rs Rf + Rs (7) (8) Rf + Rs Rf + Rs (8) Rs (9) Rs Rs Rs (9) (10) Rs + Ls Rs + Ls (10) (11) Rs + Ls Rs + Ls (11) (12) Rs + Ls Rs + Ls (12) Ls (13) Ls Ls Ls (13) (14) Ls + Lf Ls + Lf (14) (15) Ls + Lf Ls + Lf (15) (16) Ls + Lf Ls + Lf (16) Lf-E (17) Lf + Cf + Ls Lf + Cf + Ls Lf-E (17) Cf-E (18) Lf + Cf + Rf Lf + Cf + Rf Cf-E (18) Rf-E (19) Cf + Rf + Rs Cf + Rf + Rs Rf-E (19) Rs-E (20) Rf + Rs + Ls Rf + Rs + Ls Rs-E (20) Cs-E (21) Lf + Rf + Ls + Lf + Rf + Ls + Cs-E (21) Rs Rs Ls-E (22) Rs + Ls + Lf Rs + Ls + Lf Ls-E (22) Top-E (23) Lf + Cf + Rf + Lf + Cf + Rf + Top-E (23) Ls + Rs Ls + Rs
[0106] In Table A, Lf is left front, Cf is center front, Rf is right front, Ls is left surround, Rs is right surround, Lf-E is left front-elevated, Cf-E is center front-elevated, Rf-E is right front-elevated, Rs-E is right surround-elevated, Cs-e is center surround-elevated, Ls-E is left surround-elevated, and Top-E is top-elevated. The weighting factors (matrix coefficients) may all be equal within each group, or they may be chosen individually. For example, each source channel mapped to three output channels may be mapped to the middle listed channel with twice as much power as the outer-listed two channels; e.g. Lf-Elevated may be mapped to Lf and Ls with matrix coefficients of 0.5 (power 0.25) and to Cf with coefficient of 0.7071 (power 0.5). Mapping to four or five output channels may be performed with all equal matrix coefficients. Following common matrixing practice, the set of matrix coefficients for each source channel may be chosen so as to sum-square to 1.0.
[0107] Alternative, more elaborate downmixing arrangements, including dynamic power-preserving downmixing based on source channel cross-correlation, may be provided and are within the scope of the present invention.
[0108] It will be noted that in the example of
[0109] In order to extract channels that have been mapped to multiple downmix channels, it is necessary to identify the amount of common signal elements in two or more downmix channels. A common technique for doing this (even in application outside of upmixing) is cross correlation. As mentioned above, the measure of cross-correlation preferably is a measure of the zero-time-offset cross-correlation, which is the ratio of the common power level with respect to the geometric mean of the input signal power levels. The common power level preferably is the smoothed or averaged common power level and the input signal power levels are the smoothed or averaged input signal power levels. In this context, the cross-correlation of two signals, S1 and S2, may be expressed as:
Xcor=|S1*S2|/Sqrt(|S1*S1|*|S2*S2|),
where the vertical bars indicate an average or smoothed value. Correlation of three or more signals is more complicated, although a technique for calculating the cross correlation of three signals is described herein under the heading “Higher Order Calculation of Common Power.” For downmixing to 5.1 channels, it is shown in Table A that source channels may map to as many as five downmix channels, necessitating the derivation of cross correlation values from a like number of channels, i.e., up to 5th order cross correlation.
[0110] Rather than trying to perform an exact solution, which would be computationally intensive, an approximate cross-correlation technique, according to an aspect of the present invention, uses only second-order cross-correlations as described in the above Xcor equation.
[0111] The approximate cross-correlation technique involves computing the common power (defined as the numerator of the above Xcor equation) for each pair of nodes involved. For a 3.sup.rd order correlation of signals S1, S2, and S3, this would be |S1*S2|, |S2*S3|, and |S1*S3|. For a 4.sup.th order correlation, the common power terms would be |S1*S2|, |S1*S3|, |S1*S4|, |S2*S3|, |S2*S4|, and |S3*S4|The situation for 5.sup.th order is similar, with a total of ten such terms required. Many of these cross power calculations (five, in fact, for upmixing from 5.1) are already needed for decoding the horizontal channels, so for correlations up to fifth order, a total of ten smoothed cross products are needed, five of which are already calculated and five more are needed for the 5.sup.th order calculation. This total of 10 pairwise calculations also serves for all the 4.sup.th order correlations as well.
[0112] If any of the pairwise cross power values are zero, it means there is no common signal between the two nodes in question, hence there is no signal common to all N (N=3, 4, or 5) nodes, hence there is zero output from the output channel in question. Otherwise, if none are zero, the amount of the common signal indicated by the cross power value of two nodes, Node(i) and Node(j), can be calculated by assuming that the observed cross power obtains from the signal common to all nodes under consideration. If the source channel amplitude is A, then the amplitude at nodes Node(i) and Node(j) is given by the corresponding downmix matrix coefficients, M.sub.i and M.sub.j, as AM.sub.i and AM.sub.j. Therefore the common power between those nodes, X==|Si*Sj|=|AM.sub.i*AM.sub.J|. Therefore, the estimate of the desired output amplitude from the cross power of a pair of nodes i and j is:
A(estimated)=Sqrt(X/M.sub.i*M.sub.j).
[0113] From considering the estimated value of A for all pairs of nodes associated with a given output channel, the true value of A can be no greater than the minimum estimate. If the node pair corresponding to the minimum estimate is common to no other outputs, then the minimum estimate is taken as the value of A.
[0114] If there are other output channels being mapped to the two nodes in question, then there is not enough information (within this technique) to differentiate between them, so an equal signal distribution between the output channels in question is assumed and all other output channels are mapped to the two nodes in question.
[0115] To aid this operation, one may calculate during program initialization a matrix that may be referred to as the “Transfer Matrix,” a square matrix relating input node i to input node j, derived from the original encoding (downmix) matrix, wherein the value of the Transfer Matrix at row i column j=the sum of all encoding matrix cross products having a common output channel. For example, suppose that encode source channel 1 maps to downmix channels 1 and 2 with matrix values (0.7071, 0.7071), and suppose that source channel 17 maps to downmix channels 1, 2, and 3 with matrix values 0.577 each (note: 0.577*0.577=0.3333, so the matrix values sum squared to 1.0 as desired.) Then the Transfer Matrix at element 1,2 is (0.7071*0.7071+0.577*0.577)=0.5+0.33=0.83. Thus, each element of the Transfer Matrix is a measure of the total output power derived from that pair of nodes. If in deriving the output level of channel 17, one finds a minimum cross power estimate of A.sup.2 involving downmix nodes 1 and 2, then the amount of A one may assign to output channel 17 is:
Outpower=A.sup.2*(0.577*0.577)/0.83=0.4A.sup.2.
[0116] From the ratio of the estimated output amplitude and the amplitudes at the input nodes, we get the final scale factor for the output channel in question.
[0117] As explained elsewhere in this document, one may perform the derivation of output levels in a hierarchical order, starting with the output channel derived from the largest number of channels (five in the
[0118] After calculating the output level of a given node, the power contribution of each encoded channel to the output is subtracted from the measured power levels associated with the given node before continuing to the next node output calculation.
[0119] A disadvantage of the cross-correlation approximation technique is that more signal may be fed to an output channel than was originally present. However, the audible consequences of an error in feeding more signal to an output channel derived from three or more encoded inputs are minor, as the contributing channels are proximate to the output channel and the human ear will have trouble differentiating the extra signal to the derived output channel, given that the local array of output channels will have the correct total power. If the encoded 5.1-channel program is played without decoding, the channels that have been mapped to three or more of the 5.1 channels will be reproduced from the corresponding 5.1 channel speaker array, and heard as somewhat broadened sources by listeners, which should not be objectionable.
Blind Upmixing
[0120] The decoding process just described can optionally be fed from any existing 5.1-channel source, even one not specifically encoded as just described. One may refer to such decoding as “blind upmixing”. It is desired that such an arrangement produce interesting, esthetically pleasing results, and that it make reasonable use of the derived output channels. Unfortunately, it is not uncommon to find that commercial 5.1-channel motion picture soundtracks have few common signal elements between pairs of channels, and even fewer among combinations of three or more channels. In such a case, an upmixer as just described produces little output for any derived output channel, which is undesirable. In this case, one may provide a blind upmix mode in which the input channel signals are modified or augmented so that at least some signal output is provided in a derived output channels when at least one of the input channels from which the output channel is derived has a signal input.
[0121] According to aspects of the present invention, non-augmented decoding looks for [0122] (a) correlation among all the input channels from which the output channel is derived, and [0123] (b) significant signal levels at each of the input channels from which the output channel is derived.
[0124] If there is low pair-wise correlation among any of the involved input channels, or low signal level at any of the involved input channels, then the derived channel gets little or no signal. Each contributing input channel, in effect, has veto power over whether the derived channel gets signal.
[0125] In order to perform a blind upmix of channels that have not been encoded in a manner as described herein, one may derive channels in a manner so as to have some signal when, under certain signal conditions, the derived signal would be zero. This may be achieved, for example, by modifying both of the above conditions. As to the first condition, this may be accomplished by setting a lower limit on the value of the correlation. For example, the limit may be a minimum based on the “random equal-distribution” correlation value described elsewhere herein. Then, to satisfy condition (b), one may simply take a weighted average of the signal power of the input channels from which the output channel is derived, wherein the weighting may be the matrix coefficient of the input channel. Employment of such an averaging technique is not critical. Other ways to assure that a derived channel has some signal when at least one of the input channels from which it is derived has some signal may be employed. .
[0126]
[0127] Because the levels are energy levels (a second-order quantity), as opposed to amplitudes (a first-order quantity), after the divide operation, a square-root operation is applied in order to obtain the final scale factor (scale factors are associated with first-order quantities). The addition of the interior levels and subtraction from the total input level are all performed in a pure energy sense, because interior outputs of different module interiors are assumed to be independent (uncorrelated). If this assumption is not true in an unusual situation, the calculation may yield more leftover signal at the input than there should be, which may cause a slight spatial distortion in the reproduced soundfield (e.g., a slight pulling of other nearby interior images toward the input), but in the same situation, the human ear likely reacts similarly. The interior output channel scale factors, such as PSF6 through PSF 8 of module 26, are passed on by the supervisor as final scale factors (they are not modified). For simplicity,
[0128] Returning to the description of
[0129] Supervisor 201 also performs an optional time domain smoothing of the final scale factors before they are applied to the variable matrix 203. In a variable matrix system, output channels are never “turned off”, the coefficients are arranged to reinforce some signals and cancel others. However, a fixed-matrix, variable-gain system, as in described embodiments of the present invention, however, does turn channels on and off, and is more susceptible to undesirable “chattering” artifacts. This may occur despite the two-stage smoothing described below (e.g., smoothers 319/325, etc.). For example, when a scale factor is close to zero, because only a small change is needed to go from ‘small’ to ‘none’ and back, transitions to and from zero may cause audible chattering.
[0130] The optional smoothing performed by supervisor 201 preferably smooths the output scale factors with variable time constants that depend on the size of the absolute difference (“abs-diff”) between newly derived instantaneous scale factor values and a running value of the smoothed scale factor. For example, if the abs-diff is greater than 0.4 (and, of course, <=1.0), there is little or no smoothing applied; a small additional amount of smoothing is applied to abs-diff values between 0.2 and 0.4; and below values of 0.2, the time constant is a continuous inverse function of the abs-diff. Although these values are not critical, they have been found to reduce audible chattering artifacts. Optionally, in a multiband version of a module, the scale factor smoother time constants may also scale with frequency as well as time, in the manner of frequency smoothers 413, 415 and 417 of
[0131] As stated above, the variable matrix 203 preferably is a fixed decode matrix with variable scale factors (gains) at the matrix outputs. Each matrix output channel may have (fixed) matrix coefficients that would have been the encode downmix coefficients for that channel had there been an encoder with discrete inputs (instead of mixing source channels directly to the downmixed array, which avoids the need for a discrete encoder.) The coefficients preferably sum-square to 1.0 for each output channel. The matrix coefficients are fixed once it is known where the output channels are (as discussed above with regard to the “master” matrix); whereas the scale factors, controlling the output gain of each channel, are dynamic.
[0132] Inputs comprising frequency domain transform bins applied to the modules 24-34 of
[0133]
Pairwise Calculation of Common Energy
[0134] For example, suppose an input channel pair A/B contains a common signal X along with individual, uncorrelated signals Y and Z:
A=0.707X+Y
B=0.707X+Z
[0135] where the scalefactors of 0.707=√{square root over (0.5)} provide a power preserving mapping to the nearest input channels.
RMSEnergy(A)=∫A.sup.2∂t=
Because X and Y are uncorrelated,
So:
[0136]
i.e., Because X and Y are uncorrelated, the total energy in input channel A is the sum of the energies of signals X and Y.
[0137] Similarly:
[0138] Since X, Y, and Z are uncorrelated, the averaged cross-product of A and B is:
[0139] So, in the case of an output signal shared equally by two neighboring input channels that may also contain independent, uncorrelated signals, the averaged cross-product of the signals is equal to the energy of the common signal component in each channel. If the common signal is not shared equally, i.e., it is panned toward one of the inputs, the averaged cross-product will be the geometric mean between the energy of the common components in A and B, from which individual channel common energy estimates can be derived by normalizing by the square root of the ratio of the channel amplitudes. Actual time averages are computed subsequent smoothing stages, as described below.
Higher Order Calculation of Common Energy
[0140] A technique for approximating the common energy of decoding modules with three or more inputs is provided above. Provided here is another way to derive the common energy of decoding modules with three or more inputs. This may be accomplished by forming the averaged cross products of all the input signals. Simply performing pairwise processing of the inputs fails to differentiate between separate output signals between each pair of inputs and a signal common to all.
[0141] Consider, for example, three input channels, A, B, and C, made up of uncorrelated signals W, Y, Z, and common signal X:
A=X+W
B=X+Y
C=X+Z
[0142] If the average cross-product is calculated, all terms involving combinations of W, Y, and Z cancel, as in the second order calculation, leaving the average of X.sup.3:
[0143] Unfortunately, if X is a zero mean time signal, as expected, then the average of its cube is zero. Unlike averaging X.sup.2, which is positive for any nonzero value of X, X.sup.3 has the same sign as X, so the positive and negative contributions will tend to cancel. Obviously, the same holds for any odd power of X, corresponding to an odd number of module inputs, but even exponents greater than two can also lead to erroneous results; for example, four inputs with components (X, X, −X, −X) will have the same product/average as (X, X, X, X).
[0144] This problem may be resolved by employing a variant of the averaged product technique. Before being averaged, the sign of the each product is discarded by taking the absolute value of the product. The signs of each term of the product are examined. If they are all the same, the absolute value of the product is applied to the averager. If any of the signs are different from the others, the negative of the absolute value of the product is averaged. Since the number of possible same-sign combinations may not be the same as the number of possible different-sign combinations, a weighting factor comprised of the ratio of the number of same to different sign combinations is applied to the negated absolute value products to compensate. For example, a three-input module has two ways for the signs to be the same, out of eight possibilities, leaving six possible ways for the signs to be different, resulting in a scale factor of 2/6=⅓. This compensation causes the integrated or summed product to grow in a positive direction if and only if there is a signal component common to all inputs of a decoding module.
[0145] However, in order for the averages of different order modules to be comparable, they must all have the same dimensions. A conventional second-order correlation involves averages of two-input multiplications and hence of quantities with the dimensions of energy or power. Thus, the terms to be averaged in higher order correlations must be modified also to have the dimensions of power. For a kth order correlation, the individual product absolute values must therefore be raised to the power 2/k before being averaged.
[0146] Of course, regardless of the order, the individual input energies of a module, if needed, can be calculated as the average of the square of the corresponding input signal, and need not be first raised to the kth power and then reduced to a second order quantity.
[0147] Returning to the description of
[0148] Each subband from blocks 407, 409 and 411 is applied to a frequency smoother or frequency smoothing function 413, 415 and 417 (hereinafter “frequency smoother”), respectively. The purpose of the frequency smoothers is explained below. Each frequency-smoothed subband from a frequency smoother is applied to optional “fast” smoothers or smoothing functions 419, 421 and 423 (hereinafter “fast smoothers”), respectively, that provide time-domain smoothing. Although preferred, the fast smoothers may be omitted when the time constant of the fast smoothers is close to the block length time of the forward transform that generated the input bins (for example, a forward transform in supervisor 201 of
[0149] Thus, whether fast smoothing is provided by the inherent operation of a forward transform or by a fast smoother, a two-stage smoothing action is preferred in which the second, slower, stage is variable. However, a single stage of smoothing may provide acceptable results.
[0150] The time constants of the slow smoothers preferably are in synchronism with each other within a module. This may be accomplished, for example, by applying the same control information to each slow smoother and by configuring each slow smoother to respond in the same way to applied control information. The derivation of the information for controlling the slow smoothers is described below.
[0151] Preferably, each pair of smoothers are in series, in the manner of the pairs 419/425, 421/427 and 423/429 as shown in
[0152] Each stage of the two-stage smoothers may be implemented by a single-pole lowpass filter (a “leaky integrator”) such as an RC lowpass filter (in an analog embodiment) or, equivalently, a first-order lowpass filter (in a digital embodiment). For example, in a digital embodiment, the first-order filters may each be realized as a “biquad” filter, a general second-order IIR filter, in which some of the coefficients are set to zero so that the filter functions as a first-order filter. Alternatively, the two smoothers may be combined into a single second-order biquad stage, although it is simpler to calculate coefficient values for the second (variable) stage if it is separate from the first (fixed) stage.
[0153] It should be noted that in the embodiment of
[0154] The two-stage smoothers thus provide a time average for each subband of each input channel's energy (that of the 1st channel is provided by slow smoother 425 and that of the mth channel by slow smoother 427) and the average for each subband of the input channels' common energy (provided by slow smoother 429).
[0155] The average energy outputs of the slow smoothers (425, 427, 429) are applied to combiners 431, 433 and 435, respectively, in which (1) the neighbor energy levels (if any) (from supervisor 201 of
[0156] The resulting “neighbor-compensated” energy levels for each subband of each of the module's inputs are applied to a function or device 437 that calculates a nominal ongoing primary direction of those energy levels. The direction indication may be calculated as the vector sum of the energy-weighted inputs. For a two input module, this simplifies to being the L/R ratio of the smoothed and neighbor-compensated input signal energy levels.
[0157] Assume, for example, a planar surround array in which the positions of the channels are given as 2-ples representing x, y coordinates for the case of two inputs. The listener in the center is assumed to be at, say, (0, 0). The left front channel, in normalized spatial coordinates, is at (1, 1). The right front channel is at (-1, 1). If the left input amplitude (Lt) is 4 and the right input amplitude (Rt) is 3, then, using those amplitudes as weighting factors, the nominal ongoing primary direction is:
(4*(1, 1)+3*(−1, 1))/(4+3)=(0.143, 1),
or slightly to the left of center on a horizontal line connecting Left and Right.
[0158] Alternatively, once a master matrix is defined, the spatial direction may be expressed in matrix coordinates, rather than physical coordinates. In that case, the input amplitudes, normalized to sum-square to one, are the effective matrix coordinates of the direction. In the above example, the left and right levels are 4 and 3, which normalize to 0.8 and 0.6. Consequently, the “direction” is (0.8, 0.6). In other words, the nominal ongoing primary direction is a sum-square-to-one-normalized version of the square root of the neighbor-compensated smoothed input energy levels. Block 337 produces the same number of outputs, indicating a spatial direction, as there are inputs to the module (two in this example).
[0159] The neighbor-compensated smoothed energy levels for each subband of each of the module's inputs applied to the direction-determining function or device 337 are also applied to a function or device 339 that calculates the neighbor-compensated cross-correlation (“neighbor-compensated_xcor”). Block 339 also receives as an input the averaged common energy of the module's inputs for each subband from slow variable smoother 329, which has been compensated in combiner 335 by higher-order neighbor energy levels, if any. The neighbor-compensated cross-correlation is calculated in block 339 as the higher-order compensated smoothed common energy divided by the Mth root, where M is the number of inputs, of the product of the neighbor-compensated smoothed energy levels for each of the module's input channels to derive a true mathematical correlation value in the range 1.0 to −1.0. Preferably, values from 0 to −1.0 are taken to be zero. Neighbor-compensated_xcor provides an estimate of the cross-correlation that exists in the absence of other modules.
[0160] The neighbor-compensated_xcor from block 339 is then applied to a weighting device or function 341 that weights the neighbor-compensated_xcor with the neighbor-compensated direction information to produce a direction-weighted neighbor-compensated cross-correlation (“direction-weighted_xcor”). The weighting increases as the nominal ongoing primary direction departs from a centered condition. In other words, unequal input amplitudes (and, hence, energies) cause a proportional increase in direction-weighted_xcor. Direction-weighted_xcor provides an estimate of image compactness. Thus, in the case of a two input module having, for example, left L and right R inputs, the weighting increases as the direction departs from center toward either left or right (i.e., the weighting is the same in any direction for the same degree of departure from the center). For example, in the case of a two input module, the neighbor-compensated_xcor value is weighted by an L/R or R/L ratio, such that uneven signal distribution urges the direction-weighted_xcor toward 1.0. For such a two-input module, [0161] when R>=L.
direction-weighted_xcor=(1−((1−neighbor-compensated_xcor)*(L/R)),
[0162] and [0163] when R<L,
direction-weighted_xcor=(1−((1−neighbor-compensated_xcor)*(R/L))
[0164] Alternatively, a weighted cross correlation (WgtXcor) may be obtained in other ways. For example:
let A=(|L*L|−|R*R|)/(|L*L|+|R*R|)) (normalized input power difference) (where “| . . . |,” indicates an averaging), and
let B=2*|L*R|/(|L*L|+R*R|)) (normalized input cross power) (where “| . . . |,” indicates an averaging).
[0165] Then, one may use:
WgtXcor=A+B,
[0166] or, using sum of squares:
WgtXcor=Sqrt(A*A+B*B).
In either case, WgtXcor approaches 1 as L or R approaches 0, regardless of the value of |L*R|.
[0167] For modules with more than two inputs, calculation of the direction-weighted_xcor from the neighbor-weighted xcor requires, for example, replacing the ratio L/R or R/L in the above by an “evenness” measure that varies between 1.0 and 0. For example, to calculate the evenness measure for any number of inputs, normalize the input signal levels by the total input power, resulting in normalized input levels that sum in an energy (squared) sense to 1.0. Divide each normalized input level by the similarly normalized input level of a signal centered in the array. The smallest ratio becomes the evenness measure. Therefore, for example, for a three-input module with one input having zero level, the evenness measure is zero, and the direction-weighted_xcor is equal to one. (In that case, the signal is on the border of the three-input module, on a line between two of its inputs, and a two-input module (lower in the hierarchy) decides where on the line the nominal ongoing primary direction is, and how wide along that line the output signal should be spread.)
[0168] Returning to the description of
[0169] Random_xcor is the average cross product of the input magnitudes divided by the square root of the average input energies. The value of random_xcor may be calculated by assuming that the output channels were originally module input channels, and calculating the value of xcor that results from all those channels having independent but equal-level signals, being passively downmixed. According to this approach, for the case of a three-output module with two inputs, random_xcor calculates to 0.333, and for the case of a five-output module (three interior outputs) with two inputs, random_xcor calculates to 0.483. The random_xcor value need only be calculated once for each module. Although such random_xcor values have been found to provide satisfactory results, the values are not critical and other values may be employed at the discretion of the system designer. A change in the value of random_xcor affects the dividing line between the two regimes of operation of the signal distribution system, as described below. The precise location of that dividing line is not critical.
[0170] The random_xcor weighting performed by function or device 343 may be considered to be a renormalization of the direction-weighted_xcor value such that an effective_xcor is obtained:
effective_xcor=(direction-weighted_xcor−random_xcor)/(1−random_xcor), if direction-weighted_xcor>=random_xcor, effective_xcor=0 otherwise
[0171] Random_xcor weighting accelerates the reduction in direction-weighted_xcor as direction-weighted_xcor decreases below 1.0, such that when direction-weighted_xcor equals random_xcor, the effective_xcor value is zero. Because the outputs of a module represent directions along an arc or a line, values of effective_xcor less than zero are treated as equal to zero.
[0172] Information for controlling the slow smoothers 325, 327 and 329 is derived from the non-neighbor-compensated slow and fast smoothed input channels' energies and from the slow and fast smoothed input channels' common energy. In particular, a function or device 345 calculates a fast non-neighbor compensated cross-correlation in response to the fast smoothed input channels' energies and the fast smoothed input channels' common energy. A function or device 347 calculates a fast non-neighbor compensated direction (ratio or vector, as discussed above in connection with the description of block 337) in response to the fast smoothed input channel energies. A function or device 349 calculates a slow non-neighbor compensated cross-correlation in response to the slow smoothed input channels' energies and the slow smoothed input channels' common energy. A function or device 351 calculates a slow non-neighbor compensated direction (ratio or vector, as discussed above) in response to the slow smoothed input channel energies. The fast non-neighbor compensated cross-correlation, fast non-neighbor compensated direction, slow non-neighbor compensated cross-correlation and slow non-neighbor compensated cross-correlation, along with direction-weighted_xcor from block 341, are applied to a device or function 353 that provides the information for controlling the variable slow smoothers 325, 327 and 329 to adjust their time constants (hereinafter “adjust time constants”). Preferably, the same control information is applied to each variable slow smoother. Unlike the other quantities fed to the time constant selection box, which compare a fast to a slow measure, the direction-weighted_xcor preferably is used without reference to any fast value, such that if the absolute value of the direction-weighted_xcor is greater than a threshold, it may cause adjust time constants 353 to select a faster time constant. Rules for operation of “adjust time constants” 353 are set forth below.
[0173] Generally, in a dynamic audio system, it is desirable to use slow time constants as much as possible, staying at a quiescent value, to minimize audible disruption of the reproduced soundfield, unless a “new event” occurs in the audio signal, in which case it is desirable for a control signal to change rapidly to a new quiescent value, then remain at that value until another “new event” occurs. Typically, audio processing systems have equated changes in amplitude with a “new event.” However, when dealing with cross products or cross-correlation, newness and amplitude do not always equate: a new event may cause a decrease in the cross-correlation. By sensing changes in parameters relevant to the module's operation, namely measures of cross-correlation and direction, a module's time constants may speed up and rapidly assume a new control state as desired.
[0174] The consequences of improper dynamic behavior include image wandering, chattering (a channel rapidly turning on and off), pumping (unnatural changes in level), and, in a multiband embodiment, chirping (chattering and pumping on a band-by-band basis). Some of these effects are especially critical to the quality of isolated channels.
[0175] Embodiments such as those of
[0176] The basic decoding process within each module depends on a measure of energy ratios of the input signals and a measure of cross-correlation of the input signals, (in particular, the direction-weighted correlation (direction-weighted_xcor), described above; the output of block 341 in
[0177] A common method of implementing variable time constant behavior is, in analog terms, the use of a “speed-up” diode. When the instantaneous level exceeds the averaged level by a threshold amount, the diode conducts, resulting in a shorter effective time constant. A drawback of this technique is that a momentary peak in an otherwise steady-state input may cause a large change in the smoothed level, which then decays very slowly, providing unnatural emphasis of isolated peaks that would otherwise have little audible consequence.
[0178] The correlation calculation described in connection with the embodiment of
[0179] For each pair of smoothers (e.g., 319/325), the first stage, the fixed fast stage, time constant may be set to a fixed value, such as 1 msec. The second stage, variable slow stage, time constants may be, for example, selectable among 10 msec (fast), 30 msec (medium), and 150 msec (slow). Although such time constants have been found to provide satisfactory results, their values are not critical and other values may be employed at the discretion of the system designer. In addition, the second stage time constant values may be continuously variable rather than discrete. Selection of the time constants may be based not only on the signal conditions described above, but also on a hysteresis mechanism using a “fast flag”, which is used to ensure that once a genuine fast transition is encountered, the system remains in fast mode, avoiding the use of the medium time constant, until the signal conditions re-enable the slow time constant. This may help assure rapid adaptation to new signal conditions.
[0180] Selecting which of the three possible second-stage time constants to use may be accomplished by “adjust time constants” 353 in accordance with the following rules for the case of two inputs: [0181] If the absolute value of direction-weighted_xcor is less than a first reference value (0.5, for example) and the absolute difference between fast non-neighbor-compensated_xcor and slow non-neighbor-compensated_xcor is less than the same first reference value, and the absolute difference between the fast and slow direction ratios (each of which has a range +1 to −1) is less than the same first reference value, then the slow second stage time constant is used, and the fast flag is set to True, enabling subsequent selection of the medium time constant. [0182] Else, if the fast flag is True, the absolute difference between the fast and slow non-neighbor-compensated_xcor is greater than the first reference value and less than a second reference value (0.75, for example), the absolute difference between the fast and slow temporary L/R ratios is greater than the first reference value and less than the second reference value, and the absolute value of direction-weighted_xcor is greater than the first reference value and less than the second reference value, then the medium second stage time constant is selected. [0183] Else, the fast second stage time constant is used, and the fast flag is set to False, disabling subsequent use of the medium time constant until the slow time constant is again selected.
[0184] In other words, the slow time constant is chosen when all three conditions are less than a first reference value, the medium time constant is chosen when all conditions are between a first reference value and a second reference value and the prior condition was the slow time constant, and the fast time constant is chosen when any of the conditions are greater than the second reference value.
[0185] Although the just-stated rules and reference values have been found to produce satisfactory results, they are not critical and variations in the rules or other rules that take fast and slow cross-correlation and fast and slow direction into account may be employed at the discretion of the system designer. In addition, other changes may be made. For example, it may be simpler but equally effective to use diode-speedup type processing, but with ganged operation so that if any smoother in a module is in fast mode, all the other smoothers are also switched to fast mode. It may also be desirable to have separate smoothers for time constant determination and signal distribution, with the smoothers for time constant determination maintained with fixed time constants, and only the signal distribution time constants varied.
[0186] Because, even in fast mode, the smoothed signal levels require several milliseconds to adapt, a time delay may be built into the system to allow control signals to adapt before applying them to a signal path. In a wideband embodiment, this delay may be realized as a discrete delay (5 msec, for example) in the signal path. In multiband (transform) versions, the delay is a natural consequence of block processing, and if analysis of a block is performed before signal path matrixing of that block, no explicit delay may be required.
[0187] Multiband embodiments of aspects of the invention may use the same time constants and rules as wideband versions, except that the sampling rate of the smoothers may be set to the signal sampling rate divided by the block size, (e.g., the block rate), so that the coefficients used in the smoothers are adjusted appropriately.
[0188] For frequencies below 400 Hz, in multiband embodiments, the time constants preferably are scaled inversely to frequency. In the wideband version, this is not possible inasmuch as there are no separate smoothers at different frequencies, so, as partial compensation, a gentle bandpass/preemphasis filter may be applied to the input signal to the control path, to emphasize middle and upper-middle frequencies. This filter may have, for example, a two-pole highpass characteristic with a corner frequency at 200 Hz, plus a 2-pole lowpass characteristic with a corner frequency at 8000 Hz, plus a preemphasis network applying 6 dB of boost from 400 Hz to 800 Hz and another 6 dB of boost from 1600 Hz to 3200 Hz. Although such a filter has been found suitable, the filter characteristics are not critical and other parameters may be employed at the discretion of the system designer.
[0189] In addition to time-domain smoothing, multiband versions of aspects of the invention preferably also employ frequency-domain smoothing, as described above in connection with
[0190] Turning to the description of
Dominant Scale Factor Components
[0191] In addition to effective_xcor, device or function 355 (“calculate dominant scale factor components”) receives the neighbor-compensated direction information from block 337 and information regarding the local matrix coefficients from a local matrix 369, so that it may determine the N nearest output channels (where N=number of inputs) that can be applied to a weighted sum to yield the nominal ongoing primary direction coordinates and apply the “dominant” scale factor components to them to yield the dominant coordinates. The output of block 355 is either one scale factor component (per subband) if the nominal ongoing primary direction happens to coincide with an output direction or, otherwise, multiple scale factor components (one per the number of inputs per subband) bracketing the nominal ongoing primary direction and applied in appropriate proportions so as to pan or map the dominant signal to the correct virtual location in a power-preserving sense (i.e., for N=2, the two assigned dominant-channel scale factor components should sum-square to effective_xcor).
[0192] For a two-input module, all the output channels are in a line or arc, so there is a natural ordering (from “left” to “right”), and it is readily apparent which channels are next to each other. For the hypothetical case discussed above having two input channels and five output channels with sin/cos coefficients as shown, the nominal ongoing primary direction may be assumed to be (0.8, 0.6), between the Middle Left ML channel (0.92, 0.38) and the center C channel (0.71, 0.71). This may be accomplished by finding two consecutive channels where the L coefficient is larger than the nominal ongoing primary direction L coordinate, and the channel to its right has an L coefficient less than the dominant L coordinate.
[0193] The dominant scale factor components are apportioned to the two closest channels in a constant power sense. To do this, a system of two equations and two unknowns is solved, the unknowns being the dominant-component scale factor component of the channel to the left of the dominant direction (SFL), and the corresponding scale factor component to the right of the nominal ongoing primary direction (SFR) (these equations are solved for SFL and SFR).
first_dominant_coord=SFL*left-channel matrix value 1+SFR*right-channel matrix value 1
second_dominant_coord=SFL*left-channel matrix value 2+SFR*right-channel matrix value 2
Note that left- and right-channel means the channels bracketing the nominal ongoing primary direction, not the L and R input channels to the module.
[0194] The solution is the anti-dominant level calculations of each channel, normalized to sum-square to 1.0, and used as dominant distribution scale factor components (SFL, SFR), each for the other channel. In other words, the anti-dominant value of an output channel with coefficients A, B for a signal with coordinates C, D is the absolute value of AD−BC. For the numerical example under consideration:
Antidom (ML channel)=abs(0.92*0.6−0.38*0.8)=0.248
Antidom (C channel)=abs(0.71*0.6−0.71*0.8)=0.142 [0195] (where “abs” indicates taking the absolute value).
[0196] Normalizing the latter two numbers to sum-square to 1.0 yields values of 0.8678 and 0.4969 respectively. Thus, switching these values to the opposite channels, the dominant scale factor components are (note that the value of the dominant scale factor, prior to direction weighting, is the square root of effective_xcor):
ML dom sf=0.4969*sqrt(effective_xcor)
C dom sf=0.8678*sqrt(effective_xcor) [0197] (the dominant signal is closer to Cout than MidLout).
[0198] The use of one channel's antidom component, normalized, as the other channel's dominant scale factor component may be better understood by considering what happens if the nominal ongoing primary direction happens to point exactly at one of the two chosen channels. Suppose that one channel's coefficients are [A, B] and the other channel's coefficients are [C, D] and the nominal ongoing primary direction coordinates are [A, B] (pointing to the first channel), then:
Antidom (first chan)=abs(AB−BA)
Antidom (second chan)=abs(CB−DA)
[0199] Note that the first antidom value is zero. When the two antidom signals are normalized to sum-square to 1.0, the second antidom value is 1.0. When switched, the first channel receives a dominant scale factor component of 1.0 (times square root of effective_xcor) and the second channel receives 0.0, as desired.
[0200] When this approach is extended to modules with more than two inputs, there is no longer a natural ordering that occurs when the channels are in a line or arc. Once again, block 337 of
[0201] For example, suppose one has a three input module fed by a triangle of channels: Ls, Rs, and Top as in
[0202] In the examples of
Fill Scale Factor Components
[0203] In addition to effective_xcor, device or function 357 (“calculate fill scale factor components”) receives random_xcor, direction-weighted_xcor from block 341, “EQUIAMPL” (“EQUIAMPL” is defined and explained below), and information regarding the local matrix coefficients from the local matrix (in case the same fill scale factor component is not applied to all outputs, as is explained below in connection with
[0204] As explained above, effective_xcor is zero when the direction-weighted_xcor is less than or equal to random_xcor. When direction-weighted_xcor>=random_xcor, the fill scale factor component for all output channels is
fill scale factor component=sqrt(1−effective_xcor)*EQUIAMPL
[0205] Thus, when direction-weighted_xcor=random_xcor, the effective_xcor is 0, so (1−effective_xcor) is 1.0, so the fill amplitude scale factor component is equal to EQUIAMPL (ensuring output power=input power in that condition). That point is the maximum value that the fill scale factor components reach.
[0206] When weighted_xcor is less than random_xcor, the dominant scale factor component(s) is (are) zero and the fill scale factor components are reduced to zero as the direction-weighted_xcor approaches zero:
fill scale factor component=sqrt(direction-weighted_xcor/random_xcor)*EQUIAMPL
[0207] Thus, at the boundary, where direction-weighted_xcor=random_xcor, the fill preliminary scale factor component is again equal to EQUIAMPL, assuring continuity with the results of the above equation for the case of direction-weighted_xcor greater than random_xcor.
[0208] Associated with every decoder module is not only a value of random_xcor but also a value of “EQUIAMPL”, which is a scale factor value that all the scale factors should have if the signals are distributed equally such that power is preserved, namely:
EQUIAMPL=square_root_of (Number of decoder module input channels/Number of decoder module output channels)
[0209] For example, for a two-input module with three outputs:
EQUIAMPL=sqrt(2/3)=0.8165 [0210] where “sqrt( )” means “square_root_of ( ) ”
[0211] For a two-input module with 4 outputs:
EQUIAMPL=sqrt(2/4)=0.7071
[0212] For a two-input module with 5 outputs:
EQUIAMPL=sqrt(2/5)=0.6325
[0213] Although such EQUIAMPL values have been found to provide satisfactory results, the values are not critical and other values may be employed at the discretion of the system designer. Changes in the value of EQUIAMPL affect the levels of the output channels for the “fill” condition (intermediate correlation of the input signals) with respect to the levels of the output channels for the “dominant” condition (maximum condition of the input signals) and the “all endpoints” condition (minimum correlation of the input signals).
Endpoint Scale Factor Components
[0214] In addition to neighbor-compensated_xcor (from block 439,
[0215] However, the excess endpoint energy scale factor components produced by block 359 are not the only “endpoint” scale factor components. There are three other sources of endpoint scale factor components (two in the case of a single, stand-alone module): [0216] First, within a particular module's preliminary scale factor calculations, the endpoints are possible candidates for dominant signal scale factor components by block 355 (and normalizer 361). [0217] Second, in the “fill” calculation of block 357 (and normalizer 363) of
[0219] In order for block 459 to calculate the “excess endpoint energy” scale factor components, the total energy at all interior outputs is reflected back to the module's inputs, based on neighbor-compensated_xcor, to estimate how much of the energy of interior outputs is contributed by each input (“interior energy at input ‘n’”), and that energy is used to compute the excess endpoint energy scale factor component at each module output that is coincident with an input (i.e., an endpoint).
[0220] Reflecting the interior energy back to the inputs is also required in order to provide information needed by a supervisor, such as supervisor 201 of
[0221]
[0222] Using the scale factor components derived in blocks 455 and 457 of
[0223] Referring to
[0224] The energy level components for each interior output (e.g., X1 and Xm; Z1 and Zm) are summed in combiners 611 and 613 in an amplitude/power manner in accordance with neighbor-compensated_xcor. If the inputs to a combiner are in phase, indicated by a neighbor-weighted cross correlation of 1.0, their linear amplitudes add. If they are uncorrelated, indicated by a neighbor-weighted cross correlation of zero, their energy levels add. If the cross-correlation is between one and zero, the sum is partly an amplitude sum and partly a power sum. In order to sum properly the inputs to each combiner, both the amplitude sum and the power sum are calculated and weighted by neighbor-compensated_xcor and (1−neighbor-weighted_xcor), respectively. In order to obtain the weighted sum, either the square root of the power sum is taken, to obtain an equivalent amplitude, or the linear amplitude sum is squared to obtain its power level before doing the weighted sum. For example, taking the latter approach (weighted sum of powers), if the amplitude levels are 3 and 4 and neighbor-weighted_xcor is, the amplitude sum is 3+4=7, or a power level of 49 and the power energy sum is 9+16=25. So the weighted sum is 0.7*49+(1−0.7)*25=41.8 (power energy level) or, taking the square root, 6.47.
[0225] The summation products (X1+Xm; Z1+Zm) are multiplied by the scale factor components for each of the outputs, X and Z, in multipliers 613 and 615 to produce the total energy level at each interior output, which may be identified as X′ and Z′. The scale factor component for each of the interior outputs is obtained from block 467 (
[0226] The total energy level at each interior output, X′ and Z′ is reflected back to respective ones of the module's inputs by multiplying each by a matrix coefficient (of the module's local matrix) that relates the particular output to each of the module's inputs. This is done for every combination of interior output and input. Thus, as shown in
[0227] It should be noted that when a second order value, such as the total energy level X′, is weighted by a first order value, such as a matrix coefficient, a second order weight is required. This is equivalent to taking the square root of the energy to obtain an amplitude, multiplying that amplitude by the matrix coefficient and squaring the result to get back to an energy value.
[0228] Similarly, multipliers 619, 621 and 623 provide scaled energy levels Xm', Z1′ and Zm'. The energy components relating to each output (e.g., X1′ and Z1′, Xm' and Zm') are summed in combiners 625 and 627 in an amplitude / power manner, as described above in connection with combiners 611 and 613, in accordance with neighbor-compensated_xcor. The outputs of combiners 625 and 627 represent the total estimated interior energy for inputs 1 and m, respectively. In the case of a multiple module lattice, this information is sent to the supervisor, such as supervisor 201 of
[0229] The total estimated interior energy contributed by each of inputs 1 and m are also required by the module in order to calculate the excess endpoint energy scale factor component for each endpoint output.
[0230] If there is only a single stand-alone module, the endpoint preliminary scale factor components are thus determined by virtue of having determined the dominant, fill and excess endpoint energy scale factors.
[0231] Thus, all output channels including endpoints have assigned scale factors, and one may proceed to use them to perform signal path matrixing. However, if there is a lattice of multiple modules, each one has assigned an endpoint scale factor to each input feeding it, so each input having more than one module connected to it has multiple scale factor assignments, one from each connected module. In this case, the supervisor (such as supervisor 201 of the
[0232] In practical arrangements, there is no certainty that there is actually an output channel direction corresponding to an endpoint position, although this is often the case. If there is no physical endpoint channel, but there is at least one physical channel beyond the endpoint, the endpoint energy is panned to the physical channels nearest the end, as if it were a dominant signal component. In a horizontal array, this is the two channels nearest to the endpoint position, preferably using a constant-energy distribution (the two scale factors sum-square to 1.0). In other words, when a sound direction does not correspond to the position of a real sound channel, even if that direction is an endpoint signal, it is preferred to pan it to the nearest available pair of real channels, because if the sound slowly moved, it jumps suddenly from one output channel to another. Thus, when there is no physical endpoint sound channel, it is not appropriate to pan an endpoint signal to the one sound channel closest to the endpoint location unless there is no physical channel beyond the endpoint, in which case there is no choice other than to the one sound channel closes to the endpoint location.
[0233] Another way to implement such panning is for the supervisor, such as supervisor 201 of
[0234] As mentioned above, the outputs of each of the “calculate scale factor component” devices or functions 455, 457 and 459 are applied to respective normalizing devices or functions 461, 463 and 465. Such normalizers are desirable because the scale factor components calculated by blocks 455, 457 and 459 are based on neighbor- compensated levels, whereas the ultimate signal path matrixing (in the master matrix, in the case of multiple modules, or in the local matrix, in the case of a stand-alone module) involves non-neighbor-compensated levels (the input signals applied to the matrix are not neighbor- compensated). Typically, scale factor components are reduced in value by a normalizer.
[0235] One suitable way to implement normalizers is as follows. Each normalizer receives the neighbor-compensated smoothed input energy for each of the module's inputs (as from combiners 331 and 333), the non-neighbor-compensated smoothed input energy for each of the module's inputs (as from blocks 325 and 327), local matrix coefficient information from the local matrix, and the respective outputs of blocks 355, 357 and 359. Each normalizer calculates a desired output for each output channel and an actual output level for each output channel, assuming a scale factor of 1. It then divides the calculated desired output for each output channel by the calculated actual output level for each output channel and takes the square root of the quotient to provide a potential preliminary scale factor for application to “sum and/or greater of” 367. Consider the following example.
[0236] Assume that the smoothed non-neighbor compensated input energy levels of a two-input module are 6 and 8, and that the corresponding neighbor-compensated energy levels are 3 and 4. Assume also a center interior output channel having matrix coefficients=(0.71, 0.71), or squared: (0.5, 0.5). If the module selects an initial scale factor for this channel (based on neighbor-compensated levels) of 0.5, or squared=0.25, then the desired output level of this channel (assuming pure energy summation for simplicity and using neighbor-compensated levels) is:
0.25*(3*0.5+4*0.5)=0.875.
[0237] Because the actual input levels are 6 and 8, if the above scale factor (squared) of 0.25 is used for the ultimate signal path matrixing, the output level is
0.25*(6*0.5+8*0.5)=1.75
instead of the desired output level of 0.875. The normalizer adjusts the scale factor to get the desired output level when non-neighbor compensated levels are used.
Actual output, assuming SF=1=(6*0.5+8*0.5)=7.
(Desired output level)/(Actual output assuming SF=1)=0.875/7.0=0.125=final scale factor squared
Final scale factor for that output channel=sqrt(0.125)=0.354, instead of the initially calculated value of 0.5.
[0238] The “sum or and/or greatest of” 367 preferably sums the corresponding fill and endpoint scale factor components for each output channel per subband, and, selects the greater of the dominant and fill scale factor components for each output channel per subband. The function of the “sum and/or greater of” block 367 in its preferred form may be characterized as shown in
[0239]
[0240] As illustrated in
[0241] Although it is desirable that there be a single spatially compact sound image (at the nominal ongoing primary direction of the input signals) for the case of full correlation and a plurality of spatially compact sound images (each at an endpoint) for the case of full uncorrelation, the spatially spread sound image between those extremes may be achieved in ways other than as shown in the illustration of
Output Scale Factor Examples
[0242] A series of idealized representations,
[0243] The meanings of “all dominant”, “mixed dominant and fill”, “evenly filled”, “mixed fill and endpoints”, and “all endpoints” are further illustrated in connection with the examples of
[0244] In
[0245] In
[0246] In
[0247] In
[0248] In
[0249] In the examples of
[0250] For the five outputs corresponding to the scale factors of
Lout=Lt(SF.sub.L)
MidLout=((0.92)Lt+(0.38)Rt))(SF.sub.MidL)
Cout=((0.45)Lt+(0.45)Rt))(SF.sub.C)
MidRout=((0.38)Lt+(0.92)Lt))(SF.sub.MidR)
Rout=Rt(SF.sub.R).
[0251] Thus, in the
output amplitude (output_channel_sub_i)=sf (i)*(Lt_Coeff (i)*Lt+Rt_Coeff (i)*Rt)
[0252] Although one preferably takes into account the mix between amplitude and energy addition (as in the calculations relating to
Lout=0.1*(1*0.92+0*0.38)=0.092
MidLout=0.9*(0.92*0.92+0.38*0.38)=0.900
Cout=0.1*(0.71*0.92+0.71*0.38)=0.092
MidRout=0.1*(0.38*0.92+0.92*0.38)=0.070
Rout=0.1*(0*0.92+1*0.38)=0.038
[0253] Thus, this example demonstrates that the signal outputs at the Lout, Cout, MidRout and Rout are unequal because Lt is larger than Rt even though the scale factors for those outputs are equal.
[0254] The fill scale factors may be equally distributed to the output channels as shown in the examples of
[0255] Examples of such curved fill scale factor amplitudes are set forth in
Communication Between Module and Supervisor With Regard to Neighbor Levels and Higher-Order Neighbor Levels
[0256] Each module in a multiple-module arrangement, such as the example of
[0259] Once a supervisor knows all the total estimated interior energy contributions of each input of each module: [0260] (1) it determines if the total estimated interior energy contributions of each input (summed from all the modules connected to that input) exceeds the total available signal level at that input. If the sum exceeds the total available, the supervisor scales back each reported interior energy reported by each module connected to that input so that they sum to the total input level. [0261] (2) it informs each module of its neighbor levels at each input as the sum of all the other interior energy contributions of that input (if any).
[0262] Higher-order (HO) neighbor levels are neighbor levels of one or more higher-order modules that share the inputs of a lower-level module. The above calculation of neighbor levels relates only to modules at a particular input that have the same hierarchy: all the three-input modules (if any), then all the two-input modules, etc. An HO-neighbor level of a module is the sum of all the neighbor levels of all the higher order modules at that input. (i.e., the HO neighbor level at an input of a two-input module is the sum of all the third, fourth, and higher order modules, if any, sharing the node of a two-input module). Once a module knows what its HO-neighbor levels are at a particular one of its inputs, it subtracts them, along with the same-hierarchy-level neighbor levels, from the total input energy level of that input to get the neighbor-compensated level at that input node. This is shown in
[0263] One difference between the use of neighbor levels and HO-neighbor levels for compensation is that the HO-neighbor levels also are used to compensate the common energy across the input channels (e.g., accomplished by the subtraction of an HO-neighbor level in combiner 435). The rationale for this difference is that the common level of a module is not affected by adjacent modules of the same hierarchy, but it can be affected by a higher-order module sharing all the inputs of a module.
[0264] For example, assume input channels Ls (left surround), Rs (right surround), and Top, with an interior output channel in the middle of the triangle between them (elevated ring rear), plus an interior output channel on a line between Ls and Rs (main horizontal ring rear), the former output channel needs a three-input module to recover the signal common to all three inputs. Then, the latter output channel, being on a line between two inputs (Ls and Rs), needs a two-input module. However, the total common signal level observed by the two-input module includes common elements of the three input module that do not belong to the latter output channel, so one subtracts the square root of the pairwise products of the HO neighbor levels from the common energy of the two-input module to determine how much common energy is due solely to its interior channel (the latter one mentioned). Thus, in
[0265] The present invention and its various aspects may be implemented in analog circuitry, or more probably as software functions performed in digital signal processors, programmed general-purpose digital computers, and/or special purpose digital computers. Interfaces between analog and digital signal streams may be performed in appropriate hardware and/or as functions in software and/or firmware. Although the present invention and its various aspects may involve analog or digital signals, in practical applications most or all processing functions are likely to be performed in the digital domain on digital signal streams in which audio signals are represented by samples.
[0266] It should be understood that implementation of other variations and modifications of the invention and its various aspects will be apparent to those skilled in the art, and that the invention is not limited by these specific embodiments described. It is therefore contemplated to cover by the present invention any and all modifications, variations, or equivalents that fall within the true spirit and scope of the basic underlying principles disclosed and claimed herein.