The present invention refers to a non-linear control method of an input signal for a loudspeaker based on numerical modeling of the transduction process.
A loudspeaker is a transducer, i.e. a device capable of converting a physical quantity at its input, e.g. a current or a voltage, in another output by altering some characteristics that identify it. In particular, an electrical signal is converted into sound waves and the physical transduction mechanism can be described by a non-linear modeling to describe, for example, a harmonic distortion and a modulation of the electrical input signal due to the excursion of the moving parts and to the coil current
Non-linearities of the transduction process are alleviated or controlled through three different methods:
feedback-based methods;
methods based on functional representation;
physical model-based methods of the transduction process.
The limit of the first family of methods lies in the need to use sensors to measure mechanical signals to be used in the feedback loop (typically acceleration or speed of the moving parts): the use of these sensors poses implementation problems due to the addition of a mass additional to the mobile unit and the need to compensate for the non-linearities introduced by the sensor itself.
The second family of methods is based on a representation of non-linear behavior using generic functional forms (Volterra, Hammerstein or Wiener systems) to estimate the variables of the system's state. The limit of this family of methods lies in the need to truncate the functional representation to limit the complexity of the estimation of the elements necessary to represent the terms above the second degree.
The third family of methods is based on a non-linear physical model of the transduction process. This representation allows to overcome the disadvantages of methods based on functional representation, at the cost of an increase in computational complexity.
Document ‘Passive parametric modeling of dynamic loudspeakers’, D. Franken et al., IEEE Transactions on speech and audio processing, NY vol. 9, no. 8, XP011054138 ISSN: 1063-6676 discloses a direct model of a loudspeaker without an wave digital filter inverse model. A direct model alone cannot linearize non-linearities such as inductance and/or the stiffness of the transducer and/or the force factor of the controlled generator used to simulate the coupling of the electric circuit model and the mechanical circuit model.
Document ‘Observer-based feedback linearization of dynamic loudspeakers with AC amplifiers’, D. Franken et al. IEEE Transactions on speech and audio processing, NY vol. 13, no. 2, XP055816411 ISSN: 1063-6676 DOI: 10.1109 TSA.2004.841043 discloses the generation of inverse mathematical models via a state observer but such approach does not produce a directly computable mathematical formula and the system of equations is solved by iterative algorithms. The cited wave digital filters are applied to estimate parameters of a direct model in real time.
The scope of the present invention is to at least partially solve the disadvantages mentioned above.
The purpose of the present invention is achieved through a method for controlling a loudspeaker having an electromechanical force transducer and a diaphragm comprising the steps of:
Providing a non-linear electromechanical model configured to apply one or more desired conditions to a loudspeaker input digital audio signal, i.e. to an analogic input signal converted in a digital input signal;
Providing an inverse non-linear electromechanical model of the transducer configured to receive a signal processed by the non-linear model and to linearize at least one mechanical and/or electrical and/or electromechanical non-linearity of the transducer;
Converting the digital output signal of the electromechanical model into an analog signal for the transducer,
wherein the output signal comprises an input voltage signal for the transducer and at least the second non-linear model is a digital wave filter (hereinafter referred to as Wave Digital Filters, WDF) to provide a directly computable function in the discrete-time domain to get the input voltage signal for the transducer.
The method of the present invention, belonging to the third family mentioned above, proposes a representation which reduces the computational complexity, e.g. avoiding iterative calculation algorithms of the state of the art, through WDFs, which are instead directly computable through e.g. a binary tree structure.
In addition, a new method of inversion of the model based on the use of a nullor applied to a ‘direct’ electromechanical model of the loudspeaker is also advantageously introduced. This solves the main limitations existing today for physical model-based methods of the transduction process:
In particular, the non-linear model of the inverse system is obtained through the following steps:
The first direct model is preferably characterized by a desired property in the transduction process, such as one between the desired frequency response and/or a desired excursion-dependent force factor and/or a desired excursion-dependent mechanical stiffness and/or a desired inductance dependent on the excursion of the force transducer.
In particular, the first model limits the peaks of an input signal in order to avoid damage to the transducer, for example due to excessive movement, or to emulate a loudspeaker having known acoustic and/or electrical and/or mechanical characteristics known and different from those of the loudspeaker receiving the signal or the like.
Preferably, the aforementioned non-linear electromechanical model includes speaker parameters belonging to an electrical domain, at least one resistance and one impedance of a transducer coil; and to a mechanical domain, at least one elastic parameter such as stiffness, a damping and a moving mass of the transducer, the electrical and mechanical domain being coupled through a first conversion factor which relates an electromagnetic force applied to said moving mass with a counter electromotive force generated in the coil by the movement of the mass.
In this way, it is possible to express important non-linearities, such as those of inductance, of the elastic parameter and of the electromechanical conversion factor.
According to a preferred embodiment, the electromechanical model comprises at least one parameter of an acoustic domain, at least one acoustic impedance, the acoustic domain being coupled to the electrical and mechanical domains via a second conversion factor which relates to acoustic pressure waves generated from the diaphragm with a force applied by the transducer to the diaphragm.
The inclusion of an acoustic domain in the electro-mechanical model allows to increase the accuracy of the model itself.
Preferably the aforesaid method described above is combined with an adaptation step over time of one or more parameters of the electromechanical model based on an amplified analog output signal of the electromechanical model by means of an estimator.
In this way, the model can take into account the evolution over time of the value of some parameters.
Further characteristics and advantages of the present invention are indicated in the following description and in the claims.
The electrical part of the model includes the series of the following elements:
The mechanical part includes the series of the following elements:
The acoustic part, specialized for modeling the behavior of a closed volume, includes the following elements:
The configuration of the acoustic part described here represents a loudspeaker in a closed box, variations to this configuration are known in the state of the art and easily derivable e.g. as expressed in
The solution of the present invention consists in a method for processing a digital audio signal to alter the acoustic signal produced by a loudspeaker allowing to reduce the non-linear distortion generated by the loudspeaker or by imposing on the loudspeaker the linear or non-linear behavior of another speaker model.
Furthermore, it is necessary to consider the composition of the model in a purely explanatory way as indicated in
The DSP receives and processes a digital audio signal by applying a first and a second non-linear mathematical model: for example, the processor can apply a first non-linear digital filter to set a desired non-linear characteristic on the audio signal and, subsequently, to set another nonlinear compensating feature, e.g. linearizes, the non-linear characteristic of the speaker through the second mathematical model. According to a preferred embodiment of the invention, the digital signal processor also includes an estimator that receives the amplified signal and estimates the constituent parameters of the non-linear digital filter that compensates for the non-linear characteristic of the loudspeaker. The presence of the estimator is optional, since the system can also operate using the nominal parameters of the loudspeaker.
The pre-distorted signal is converted into an analog signal using a digital-to-analog converter (DAC) and subsequently amplified by means of an amplifier. The amplified signal drives the loudspeaker to produce an acoustic output signal. The loudspeaker includes a dynamic direct radiation loudspeaker operating in a closed box. The amplified signal is also used as the estimator input. The DSP is made by means of a hardware (a processor) which executes a suitable software loaded on a memory that can be read by the processor to perform the digital signal processing operations described below.
First Mathematical Model: Non-Linear Target Filter (FT)
The target nonlinear digital filter receives the digital audio signal in input, applies the nonlinear filter based on the parametric model of the loudspeaker to the input signal to produce a filtered digital signal and finally outputs the pre-distorted signal with the desidered non-linear characteristic, in order to be received and processed by downstream components. The non-linear target digital filter is implemented using a WDF system, described below. The non-linear target digital filter imposes on the audio signal a desired non-linear characteristic (target) which, for example, prevents overshooting of the transducer thus increasing its life time.
The WDF implementation is based on the local constitutive relationships of the single-port elements that constitute the loudspeaker model in the continuous-time domain, as shown in the following table, in which the nomenclature of the elements refers to
(t) = V (t) + R (t)
(t) = R (t)
(t) = R (t)
(t) = R (t)
indicates data missing or illegible when filed
The dependent generators form two double-port elements. The first double-port element is an ideal rotator with a rotation ratio equal to Bl. In the continuous-time domain it is possible to write its constitutive relations
V
cm(t)=Ims(t)Bl, Vme(t)=Ie(t)Bl, (1)
where Vcm(t) represents the counter-electromotive force in the electrical domain, and Vme(t) represents the force in the mechanical domain.
The second double-port element is an ideal transformer with a transformation ratio equal to Sd. In the continuous-time domain its constitutive relations are
V
ma(t)=Vout(t)Sd, Iam(t)=Ims(t)Sd, (2)
where Vma(t) is the reaction force impressed by the acoustic load on the mechanical domain and Iam(t) is the volumetric velocity in the acoustic domain.
The overall system to numerical wave is shown in
The implementation of systems WDF containing multiport elements in the solution described here consists in connecting the dependent generators to a 3-port junction, as shown in the binary connection tree in
b
1
=v
1
+Z
1
j
1
, a
1
=v
1
−Z
1
j
1, (3)
b
2
=v
2
+Z
2
j
2
, a
2
=v
2
−Z
2
j
2, (4)
b
3
=v
3
+Z
3
j
3
, a
3
=v
3
−Z
3
j
3, (5)
where b1, b2 and b3 are the incident waves and a1, a2, a3 are the waves reflected by the junction. The scattering matrix of the junction is obtained with methods known in the state of the art, obtaining:
obtained, obtaining for junction S1
The scattering matrix of the junction S3 is
The scattering matrix of the junction S2 is
The scattering matrix of the junction 1 is
Given the constitutive relationships shown above, the single-port elements of the loudspeaker model can be implemented as numerical wave elements as shown in the table below, where k denotes discrete time, Ts denotes sampling period and Fs=Ts−1 indicates the sampling frequency.
indicates data missing or illegible when filed
While the following table shows the numerical wave implementation of the junctions, which uses the scattering matrices defined in Equations (6)-(10).
indicates data missing or illegible when filed
The WDF implementation shown in
Output Signals and Status Signals
The status and output signals are computed from the incident and reflected waves computed by the computational flow described above.
The input signal is represented by the variable v1. In the discrete time domain, the signal analogous to the coil displacement can be estimated as
{circumflex over (x)}[k]=ξx(TsIms[k−1]+x[k−2]), (11)
where ξx≤1 is oblivion, whose role is to dampen the truncation error of the integrator at each sample, so as not to accumulate. The signal Ims [k] is calculated as
The output signal Vout[k] equivalent to the pressure produced by the transducer is estimated as
Time-Varying Parameters
Some parameters of the speaker model are not time-invariant, but depend on the x(t) signal equivalent to the physical displacement of the coil in the transducer. In particular, the parameters Bl, Kms and Le are non-linear functions of the signal x(t). In the known art these functions are modeled as polynomials. This aspect is problematic since if the excursion x(t) exceeds the interval of
validity of the polynomial representation, extrapolation based on the polynomial model can lead to unrealistic evaluations of the parameters Bl, Kms and Le. For this reason, in our solution we use functions that best approximate the nonlinear functions Bl(x), Kms(x) and Le(x) in the entire domain of the signal x(t). The function Bl(x) is modeled as a Gaussian type function, the Le(x) function is modeled as a sigmoid type function, the Kms(x) function is modeled as a linear combination of exponential functions. The non-linear force factor is updated with each sample by evaluating the function Bl(x) in {circumflex over (x)}[k]. In the case of non-linear and time-variant inductance Le, the proposed numerical wave realization is where L′e[k] represents the numerical derivative of Le(x(t))
Considering the time-varying non-linear stiffness, the proposed numerical realization is
where K′ms[k] is the numerical derivative of Kms(x(t))
K
ms′[k]=KmsαKmsβ exp(Kmsβ{circumflex over (x)}[k])+KmsγKmsλ exp(Kmsλ{circumflex over (x)}[k]). (17)
Second Mathematical Model: Inverse Nonlinear Filter (FI)
The inverse non-linear digital filter receives the output of the target non-linear digital filter at its input, applies the inverse non-linear filter based on the parametric model of the speaker to produce a filtered digital signal, and outputs the pre-distorted signal with the characteristic desired non-linear, compensating for the non-linear characteristic of the transducer, in order to be received and processed by the other components of the system. The inverse non-linear digital filter is implemented using a digital wave system, described below. The parameters of the inverse nonlinear digital filter are received by the estimator block, described later. Preferably, the structure of the model before the inversion is the same as that of the first model with the addition of a null, as explained in more detail below. Instead, the parameters of the second model are suitably different from those of the first model to adapt to the construction characteristics of the speaker e.g. of the transducer.
The proposed invention realizes the inverse system by manipulating the equivalent circuit of the speaker shown in
The equivalent circuit of the transduction process, shown in
Considering the properties of the nullor, it can be observed that the circuits of
To obtain an inverse circuit that allows, with reference to
The circuits in
This result is known in the literature. C.f.r. A. Leuciuc, “The realization of inverse system for circuits containing nullors with applications in chaos synchronization”, Int. J. Circ. Theor. Appl., 26, 1-12 (1998).
The scattering matrix of the junction, which in this case (considering the different topology) has five gates, is defined as
Output Signals and Status Signals
The status and output signals are computed from the incident and reflected waves computed by the computational flow described above.
The input signal is represented by the variable v3. The output signal Vout[k] equivalent to the transducer input voltage which cancels its non-linear behavior is Vout[k]=v1.
Estimator
It is known that the parameters that describe the behavior of the transducer are variable over time depending on the electrical energy entering the transducer. In particular, the parameters most sensitive to variations are the electrical resistance Re and the Kms value (x=0) which describes the stiffness at rest of the transducer suspensions. The estimator is responsible for inferring the variation of these two parameters as a function of time, using the voltage Ve(t) and the current Ie(t) in input to the transducer as input signals.
The estimation of Re(t) and Kms(x=0, t) is performed by the following algorithm.
1. Estimate of Re. We consider the estimate R{circumflex over ( )}e and two perturbations of the estimate R{circumflex over ( )}e±δR. The non-linear target digital filter is used to predict the current entering the transducer. The three estimated currents are compared with the measured current. The resistance value that returns the smallest error between the measured current and the estimated current is selected.
2. Estimate of Kms(0). We consider the K{circumflex over ( )}ms (0) estimate and two perturbations of the K{circumflex over ( )}ms (0)±δK estimate. The non-linear target digital filter is used to predict the current entering the transducer. The three estimated currents are compared with the measured current. The stiffness value is selected which gives the smallest error between the measured current and the estimated current.
Remaining Parts of the System
The pre-distorted signal with the desired non-linear characteristic, compensating for the non-linear characteristic of the transducer and adapting the parameters Re and Kms (x=0) is converted into the analog domain by a digital/analog converter and then amplified with a audio amplifier. The amplified signal constitutes the transducer input that allows you to obtain the desired acoustic output. The amplified signal is also used as an input from the estimator.
Finally, it is clear that it is possible to make changes or variations to the method described and illustrated here without departing from the scope of protection as defined by the attached claims.
Number | Date | Country | Kind |
---|---|---|---|
102020000024175 | Oct 2020 | IT | national |