Professional Documents
Culture Documents
net/publication/220057543
CITATIONS READS
37 2,690
4 authors, including:
Miikka Tikander
Huawei Technologies
25 PUBLICATIONS 512 CITATIONS
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Jyri Pakarinen on 22 May 2014.
Research Article
Real-Time Audio Transformer Emulation for
Virtual Tube Amplifiers
Rafael Cauduro Dias de Paiva,1, 2 Jyri Pakarinen,1 Vesa Välimäki,3 and Miikka Tikander3
1 Department of Signal Processing and Acoustics, School of Electrical Engineering, Aalto University, 02150 Espoo, Finland
2 Nokia Institute of Technology (INdT), SCS 1 Ed. Camargo Corrêa, 6th floor, 70397900 Brasilia, Brazil
3 Nokia Gear, Itämerenkatu 11, 00180 Helsinki, Finland
Copyright © 2011 Rafael Cauduro Dias de Paiva et al. This is an open access article distributed under the Creative Commons
Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is
properly cited.
An audio transformer is used in a guitar amplifier to match the impedances of the power amplifier and a loudspeaker. It is
important to understand the influence of the audio transformer on the overall sound quality for realistic tube amplifier emulation.
This paper proposes to simulate the audio transformer using a wave digital filter model, which is based on the gyrator-capacitor
analogy. The proposed model is two-directional in the sense that it outputs the loudspeaker current, but it also connects backward
to the power amplifier thus affecting its behavior in a nonlinear manner. A practical parameter estimation procedure is introduced,
which requires only the measurement of basic electrical quantities but no knowledge of material properties. Measurements of a
Fender NSC041318 and a Hammond T1750V transformer are presented as case studies, as well as parameter fitting and simulation
for the Fender transformer. The results show that these practical transformer designs introduce distortion at low frequencies only,
below about 100 Hz for the Fender and 30 Hz for the Hammond transformer, and that the proposed model faithfully reproduces
this effect. The proposed audio transformer model is implemented in real time using the BlockCompiler software. Parametric
control allows varying and also exaggerating the model nonlinearities.
such as Volterra techniques [2], which can be matched to the the transformer. A real-time implementation of a complete
desired nonlinear response characteristic, and physics-based output chain of a single-ended guitar amplifier is described,
approaches, which are chosen for this work. Among physical which proves the feasibility of the method.
modeling techniques, some works focus on directly modeling Section 2 reviews some basic concepts of transformer
and solving the differential equations of the nonlinear behavior, as well as magnetic quantities. A short introduction
circuits [3–5], nodal analysis and state-space approaches on WDFs is presented in Section 3, focusing on the imple-
[6, 7], and wave digital filters (WDFs) [8–11]. WDFs provide mentation aspects used in this paper. Section 4 presents the
a simple approach for circuit emulation, which enables transformer model using the GC approach, while Section 4.2
efficient implementation in real time. presents a new fitting procedure for the proposed model.
Audio transformer models in the literature include In Section 4.3 a new WDF implementation of the audio
linear models implemented in SPICE [12], WDFs [10], transformer is presented. In Section 4.4 a measurement setup
extended state-space techniques [13], and differential equa- is proposed for parameter fitting and testing the proposed
tion approximation [14]. Additionally, a nonlinear model model, while in Section 4.5 simulated and measurement
for offline vacuum tube guitar simulation is proposed in results are compared. In Section 5 the proposed model is
[15] using the Jiles and Atherton model [16] for magnetic included in the output chain of a single-ended vacuum tube
losses. Different models for magnetic behavior are available amplifier implemented in real time using WDFs. Section 6
in the literature. The Jiles and Atherton model includes concludes the paper.
implicit differential equations used to determine the behav-
ior of magnetic hysteresis. This is successful for modeling
magnetic behavior, although parameter fitting may not be
2. Transformer Characteristics
straightforward, and the concept complexity tends to push and Nonlinearity
designers/engineers to simpler solutions. A hyperbolic curve The nonlinear behavior of an audio transformer has some
fitting procedure is proposed in [17], where the function can peculiar characteristics which differ from other components
be easily fitted by parameters available in magnetic material in vintage analog circuits. Since saturation-like distortion
datasheets. However, the determination of the curve shape occurs in the magnetic domain, it does not manifest itself
is based on flux maximum and minimum values and would as simple clipping in the electrical domain. Additionally,
need to be dynamically changed as the waveform varies. This magnetic distortion is dependent on previous values of the
is usually not a problem for power electronics simulations magnetic field, and the distortion cannot be modeled with
in which the signal amplitude and frequency are kept nearly simple static nonlinearities.
constant but would be for audio signals, which have a wide Electrical signals are related to magnetic signals by the
bandwidth and varying amplitudes. following well-known relationships. The voltage E is the time
Other models have emerged from the gyrator-capacitor derivative of the magnetic flux Φ,
(GC) analogy, which provides an intuitive approach for
understanding magnetic behavior [18]. This approach makes −NdΦ
understanding the behavior of highly complex magnetic E= ; (1)
dt
circuits possible [19], and a complete model including core
saturation and hysteresis may be obtained with a nonlinear where N is the number of turns. The magnetic flux is related,
capacitor and resistor [20]. Additionally, the elements used in in turn, to the magnetic field, or flux density, B by the area
this model make it an excellent candidate for implementation integral
using WDFs. Preisach and other multistate transformer
models [21] are cumbersome and costly and may not be
appropriate for real-time implementation. Therefore, the GC Φ= Bda = BAe , (2)
model was chosen.
This paper proposes a WDF implementation of a nonlin- where Ae is the core’s effective area. The flux density B is
ear audio transformer model for real-time guitar amplifier most often used in magnetic material specifications, since
emulation. The complete model for audio transformer magnetic properties using Φ are related to the transformer’s
includes, in addition to the nonlinear transformer behavior, core geometry. The magnetizing force H is related to the
parasitic phenomena such as leakage inductance, winding current flowing in a winding of a transformer by simply
resistance, and input/output capacitance, which are impor- considering its number of turns N so that
tant for matching the transformer’s frequency response.
Nonlinear behavior is modeled using a GC approach [20], H = Ni, (3)
and a parameter fitting procedure is proposed requiring
only simple measurements instead of prior knowledge of where i is the current through the winding.
material properties, since in many cases detailed information For linear magnetic materials, B is linearly related to H as
is not available for the material and core type. A WDF
model is proposed to enable realistic simulation of the B = μH, (4)
interaction between the transformer’s varying impedance
and the backward connected circuitry, which changes its where μ represents the permeability of the material. However,
distortion behavior with the nonlinear load represented by this relationship is not followed for high values of B or H,
EURASIP Journal on Advances in Signal Processing 3
as shown in Figure 1, where it can be seen that, for high 3. Wave Digital Filters
excursions in H, saturation occurs in B. This effect is caused
by the inherent properties of magnetic materials, which can WFDs, introduced by Fettweis [22], offer a modular and
be interpreted as decreased permeability for high values of relatively light approach for real-time circuit simulation. The
H. Additionally, a loop can be observed in the B versus H main difference between WDFs and most other modeling
curve, which means that the B value not only depends on the methods is that WDFs represent all signals and states as wave
H value but also on its previous magnetic history. This loop variables and use local discretization for the circuit compo-
is related to losses occurring in the magnetic material which nents instead of the physical quantities themselves. Different
increases with frequency. electrical components are represented as elementary blocks,
Figure 2(a) shows an example of how distortion would and they are connected to each other via adaptor blocks. Only
occur in an audio transformer. In this example assuming a a brief introduction to WDFs is presented in the following.
1 : 1 turns ratio, the output voltage would be expected to be For more thorough tutorials, see, for example, [22, 23].
the same as the input when no magnetic saturation takes
place. Observing the 50 Hz example, shows that distortion 3.1. Wave Digital Filter Components. WDF components con-
occurs after the input voltage has reached its peak and lingers nect to each other using ports. Each port has two terminals,
after the input voltage has begun to decrease. This happens one for transporting incoming and another for transporting
because the magnetic flux Φ relates to voltage via a derivative outgoing waves. Also, each port has an additional parameter,
operation, and hence for a sinusoidal input there is a 90 the port resistance, which is used to implement proper
degree shift between the flux and voltage. As saturation impedance coupling between components. The relationship
occurs in the B versus H mapping, maximum B would be between the Kirchhoff pair (e.g., voltage U and current I)
reached at a voltage near zero, where maximum distortion is and wave variables A and B is given by
observed.
⎡ ⎤ ⎡ ⎤⎡ ⎤ ⎡ ⎤
The same transformer produces different saturation A 1 Rp U U
behavior at different frequencies for the same characteristics ⎣ ⎦=⎣ ⎦⎣ ⎦ ⇐⇒ ⎣ ⎦
of the input signal. Figure 2(a) shows the expected behavior B 1 −R p I I
at 50 and 100 Hz. As can be observed, with doubled fre- ⎡ ⎤ (5)
1 1 ⎡ ⎤
quency almost no distortion is present in the output signal. 1⎢ ⎥ A
As Φ is proportional to the integral of E in (1), it will have = ⎢ 1 1 ⎥ ⎣ ⎦,
2⎣ − ⎦ B
a higher amplitude when the frequency is lower. Additional Rp Rp
input/output voltage relationships can be observed in Figure
2(c), where at 100 Hz a nearly linear relationship is seen, where R p denotes the port resistance.
while it changes as frequency is decreased. The shape of the It should be noted that this port resistance is purely
input/output mapping is also seen to change with frequency. a computational parameter and it should not be confused
Thus, electric transformers have combined frequency- with the electrical resistance. Some elementary circuit
dependent losses and nonlinearity which causes them to components, such as resistors, capacitors, and inductors,
have a bandpass characteristic. On one hand, high-frequency can be represented using WDF one-port elements. Other
signals would have a small amount of nonlinear distortion electric components, such as transformers and gyrators, are
and high magnetic losses. This frequency-dependent loss is represented with two-port elements. The linear electrical
related to the amount of energy transfer and will cause a components used in this paper are presented together with
4 EURASIP Journal on Advances in Signal Processing
1 8
0.8
6
0.6
4
0.4
0.2 2
Voltage (V)
Current (A)
0 0
−0.2
−2
−0.4
−4
−0.6
−0.8 −6
−1 −8
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04
Time (s) Time (s)
Output 50 Hz Current 50 Hz
Output 100 Hz Current 100 Hz
(a) (b)
0.8
0.6
0.4
Output voltage (V)
0.2
0
−0.2
−0.4
−0.6
−0.8
−1
−1 −0.5 0 0.5 1
Input voltage (V)
10 Hz 50 Hz
20 Hz 100 Hz
(c)
Figure 2: Example of saturation in a power transformer. (a) Output voltage and (b) current at 50 and 100 Hz and (c) the input versus output
voltage.
their WDF counterparts in Figure 4. The port resistances of WDF resistor, the port resistance of a voltage source is
the one-port elements in Figure 4 can be given as follows: equivalent to the physical resistance. The port resistance of a
⎧
gyrator is equal to its transformation ratio, and it is the same
⎪
⎪
⎪R, for resistance, for both ports. The port resistances of a transformer are not
⎪
⎪
⎪
⎨ 1 identical but are related by the square of the turns ratio, as
Rp = ⎪ (2CF ) , for capacitance, (6) given in Figure 4(g).
⎪
⎪ s
⎪
⎪
⎪
⎩
2LFs , for inductance, 3.2. Adaptors. The WDF circuit components connect to each
other via adaptors. In practice, the adaptors direct signal
where R, C, and L are the electrical resistance (Ohms), routing inside the WDF circuit model and implement the
capacitance (Farads), and inductance (Henrys), respectively, correct impedance coupling via port resistances. Although
while Fs stands for the sample rate (Hertz). Similar to the the number of ports in an adaptor is unlimited in principle,
EURASIP Journal on Advances in Signal Processing 5
N = RP 1/N
R
R C L U1 I1 I2 U2 U1 I1 I2 U2
E ∼
A A A A A A B A B
RP RP Z −1 RP Z −1 RP RP −1 RP RP1 1/N
U I H(z) 2 E N RP2 = N 2 RP1
−1
0
B B B B B B A B A
(a) (b) (c) (d) (e) (f) (g)
Figure 4: Linear WDF elements used in this paper: (a) a generic one-port with voltage U across and current I at the terminals, (b) a resistor,
(c) capacitor, (d) inductor, (e) voltage source, (f) gyrator, and (g) an ideal transformer. Here, A represents an incoming wave for each
element, while B denotes an outgoing wave. R p stands for the port resistance. This figure is adapted from [11].
R1 Φ̇1 Ce Rc Φ̇2 R2 Figure 6(a), the open load in the secondary has the effect of a
N1
• • +
N2 short circuit before the gyrator at H2 , and the effect of leakage
+ + • • +
inductance Cl2 of the secondary can be ignored. Hence, Φ
V1 C1 H1 H2 V2
Cl1 Cl2 C2 and H can be simply obtained from the input current i1 and
− − − −
the output voltage V2 measurements via (3) and (1), which
(a) are integrated to obtain Φ:
r
R1 Φ̇1 Cc EC Φ̇2 R2 H = N1 i1 ,
+−
+ + + • • + (19)
1
V1 H1 C IR
Cl2 H2 C2 V2 Φ=− V2 dt.
−
C1
−
l1
− −
N2
Cc
Winding 1 Winding 2
W W
R1 C1 Cl1 Cc Cl2 C2 R2
W W
G1 G2
Winding
.. 3 .. Winding
.. 4
. . .
Winding model Winding model Winding N-1 Winding N
W W
RL
Core mode
RL
Core model
(a) (b)
Figure 7: Proposed WDF model of a nonlinear transformer model for (a) two windings and (b) a multiwinding configuration.
40 40
1
20 20
Amplitude (dB)
Amplitude (dB)
0 1 0
3
−20 −20
2 5 5
3 2
4
−40 −40 4
−60 −60
100 1k 10 k 100 1k 10 k
Frequency (Hz) Frequency (Hz)
(a) (b)
1 40
1
40 20
Amplitude (dB)
Amplitude (dB)
20 0
3
0 5 −20 5
2
2 3
−20 −40 4
4
−40 −60
100 1k 10 k 100 1k 10 k
Frequency (Hz) Frequency (Hz)
(c) (d)
Figure 9: Measurements performed on a Fender transformer using a logarithmic sweep analysis tool [28]: (a) input current, (b) input
current with the loaded transformer, (c) output voltage, and (d) output voltage with the loaded transformer. The numbered curves denote
the magnitude of each harmonic component, where number 1 refers to the fundamental frequency.
4.3. Wave Digital Filter Model. This section proposes a The model in Figure 7(a) can be easily expanded to an N-
new WDF model for a two-winding audio transformer in winding transformer. By connecting each winding’s elements
accordance with Figure 7(a). In this model, it is possible in series with the core elements, it is possible to generalize the
to notice common elements for each winding w, which model for any number of windings, as shown in Figure 7(b).
include a gyrator Gw , a capacitor Clw representing the leakage Hence, this model enables a block implementation and easy
inductance, a capacitor Cw representing winding parasitic adaptation for any transformer configuration.
capacitance, and a resistor Rw representing ohmic losses. The nonlinear elements in Figure 7 were implemented
Each winding is connected in series with the nonlinear core using delays. This simplification enables connecting several
elements Cc and Rc . nonlinear elements in the WDF network, without the need
The nonlinear elements use the approximations for iterations between nonlinear elements.
described in Section 3. The nonlinear resistor was calculated
as in (18), and vr was delayed by one time sample. The
nonlinear capacitance was implemented by using a constant 4.4. Measurement Setup. The practical measurement setup
capacitance Cc connected by a nonlinear transformer with used a Fender NSC041318 transformer, connected to a linear
the variable turns ratio calculated based on the delayed audio amplifier, Yamaha MX-70, as shown in Figure 8. This
voltage vc = Φ/Cc as transformer is commonly used in Fender Deluxe and Deluxe
Reverb amplifiers. Since possible output voltages in the
1
Nc (vc ) = . (34) power amplifier are often limited, the transformer secondary,
1 + a|vc |n−1 which is the low-voltage winding on vacuum tube amplifiers,
10 EURASIP Journal on Advances in Signal Processing
40
20 1
20
0
Amplitude (dB)
Amplitude (dB)
1
0
−20
−20
4 3
3 5 2
−40
5 2 −40
4
−60 −60
100 1k 10 k 100 1k 10 k
Frequency (Hz) Frequency (Hz)
(a) (b)
40 1 40 1
20 20
Amplitude (dB)
Amplitude (dB)
0 0
5 3
−20 −20 5 2
3 4
2
4
−40 −40
100 1k 10 k 100 1k 10 k
Frequency (Hz) Frequency (Hz)
(c) (d)
Figure 10: Measurements performed on a Hammond transformer using a logarithmic sweep analysis tool [28]: (a) input current, (b) input
current with the loaded transformer, (c) output voltage, and (d) output voltage with the loaded transformer. The numbered curves denote
the magnitude of each harmonic component, where number 1 refers to the fundamental frequency.
is connected to the power amplifier output. For full load breaking of fuses or other protection mechanisms of the
measurements, a load resistor RL is connected to the high- power amplifier during experimental measurements. The
voltage winding of the transformer. The load resistance value input signal for the power amplifier is generated by a
was chosen as computer. This enables either simple analysis using fixed
2 frequency sines or square waves as well as complex analysis,
N2
RL = Rt , (35) for example, with sweep signals.
N1 Once the transformer was connected, two main sets of
where N1 and N2 are the primary/secondary number of turns measurements were conducted. In the first one, full load
and Rt is the usual loudspeaker resistance, for example, 8 was considered with RL , as in (35), in order to emulate
Ω. It is important to notice in practical measurements that the transformer load when connected to a loudspeaker. In
resistor RL will dissipate all of the transformer power during the second set, no load was connected to the transformer
the measurement, and hence a power resistor must be used. primary, or RL = ∞. This open load measurement setup
An additional element in the measurement setup was important to determine the transformer’s magnetic
includes a series resistance RM . This is used to measure the elements, as discussed in Section 4.
input current as well as for limiting the input current if
transformer saturation is reached. As shown in Section 2, the 4.5. Transformer Measurements. Measurements with maxi-
transformer impedance is drastically reduced during satu- mum voltage amplitudes are shown in Figure 9. A logarith-
ration periods, and hence high current peaks are observed mic sweep analysis between 20 Hz and 10000 Hz of the DATK
during saturation. The peak limitation is important to avoid software tool was used [28] for the input current and output
EURASIP Journal on Advances in Signal Processing 11
N1 100 — 0.6
C 24.7 mF 0.2
a 900 — 0
n 7 — −0.2
r 0.077 Ω −0.4
b 4.46 — −0.6
m 4 — −0.8
Cl1 500 nF
−1
Cl2 500 nF −1 −0.5 0 0.5 1
R1 206 Ω Normalized magnetic field H
R2 0.7 Ω
Measured Φ × H curve
C1 1 nF Static Φ × H curve
C2 1 nF Model Φ × H curve
voltage with and without load. In order to avoid current onto an infinite resistance (or an open circuit) connected in
surges during saturation, an input resistance of 2.4 Ω was parallel to the capacitor Cl2 . In the case of an open circuit at
used, and the input current was measured based on the the transformer secondary, the infinite resistance is mapped
voltage across this resistor. onto a short circuit connected in parallel to the capacitor
The distortion is observed, in Figure 9, to occur at low Cl2 . Hence, the open circuit case is the one that presents the
frequencies, below 100 Hz, since the level of the harmonic lowest impedance to the voltage representing the primary
components 2–5 generally decays with frequency. By analyz- magnetizing force H1 , which will cause the highest magnetic
ing (1), it is possible to understand that, for the same input flux Φ.
voltage, the magnetic flux Φ is larger when the frequency is Further measurements were performed for a Hammond
lower. This explains the strong saturation at low frequencies T1750V transformer, which is used in the Vox AC30 guitar
observed in the results. Comparing the currents and voltages amplifiers, and the results are shown in Figure 10. It can be
shows that the input current suffers from higher distortion seen that this transformer has a lower level of distortion,
than the output voltage. Hence, it is possible to say that which is mostly concentrated at very low frequencies, below
the transformer effect may be in practice enhanced by the 30 Hz. When comparing it to the Fender transformer in
interaction between the transformer’s changing impedance Figure 9, a lower distortion is observed at all frequencies.
and the circuitry connected to its primary. Additionally, Since the normal tuning for the low E string on the guitar is
one sees that the open load input current and the output 82.4 Hz (E2), this transformer could be approximated using
voltages increase at high frequencies, which indicates the a linear model.
influence of parasitic capacitances, causing a resonance with Parameter fitting of the nonlinear model in Section 4.3
inductances at high frequencies. The amplitude peaks in resulted in the values shown in Table 1. The accuracy of the
Figure 9 for the higher harmonics at high frequencies are due nonlinear model can be observed in Figures 11 and 12. In
to the measurement artifacts related to the exponential sweep Figure 11, the Φ versus H curve shows good accuracy for
technique and are not present in reality. an 80 Hz sine input between the modeled and measured
Measurements were conducted for two output load situ- magnetic behavior, which includes both the transformer
ations in order to show that the frequency behavior depends saturation and the hysteresis. Please notice that these results
on the type of output load connected to the transformer. apply only to the periodic test signals used.
Experiments have shown some load dependency on the Comparing Figures 12 and 9 shows that the frequency
transformer nonlinearity. By comparing Figures 9(a), 9(c) to behavior of the model resembles the one observed in
Figures 9(b), 9(d), one may observe that by having a resis- practical measurements. The main differences occur in some
tance as the output load there is a decrease in the harmonic harmonics that stop decreasing their amplitudes beyond
content generated by the transformer’s nonlinearity. This is a certain frequency. Those differences may be caused by
understood by analyzing the equivalent transformer circuit transformer losses that were not included in the model,
in Figure 6 under short-circuit and open-circuit conditions. such as eddy current losses, which could cause extra energy
In the case of short circuiting the secondary, the small damping at higher frequencies, as well as inaccuracies in
resistance in the secondary of the second gyrator is mapped the nonlinear functions for small H and Φ values, since the
12 EURASIP Journal on Advances in Signal Processing
40 40
1
20 20
1
Amplitude (dB)
Amplitude (dB)
0 0
5 −20
−20
2 3 5
4
−40 −40 2
4
3
−60 −60
100 1k 10 k 100 1k 10 k
Frequency (Hz) Frequency (Hz)
(a) (b)
1
1
40 40
Amplitude (dB)
Amplitude (dB)
20 20
0 0
5 3
2 3
−20 −20
4 4 5
2
−40 −40
100 1k 10 k 100 1k 10 k
Frequency (Hz) Frequency (Hz)
(c) (d)
Figure 12: Emulated results with the WDF model based on the Fender transformer using a logarithmic sweep analysis tool [28]: (a)
input current, (b) input current with the loaded transformer, (c) output voltage and (d) output voltage, with the loaded transformer. The
numbered curves denote the magnitude of each harmonic component, where number 1 refers to the fundamental frequency.
transformer model was optimized for a close-to-saturation Section 4.3. The complete circuit is an enhanced version of
condition. Additionally, the high-pass characteristic has the single-ended guitar amplifier model presented in [10],
differences to the one observed in measured results. This while the tube model is the same as that presented in
difference can be explained by the fact that in practice [11].
the input/output capacitances are distributed throughout Simulation results for a sine input are shown in Figure 14.
the input/output windings. These distributed capacitances The output sound pressure is measured in this circuit as
could be modeled by several interleaved inductances and the current through the loudspeaker acoustic resistance Ra
capacitances, although this kind of model would significantly in Figure 13(b). The transformer parameters used in this
increase the computational complexity and make parameter simulation are the optimized parameters in Table 1, expect
fitting harder. for the parameter a, which was modified to provide different
levels of transformer distortion.
5. Tube Amplifier Output Chain In the time-domain results shown in Figure 14(a), no
transformer saturation is present with a = 9, the output
This section presents a new complete output chain model for signal is a smoothed squared wave, which indicates that dis-
a single-ended vacuum tube guitar amplifier. WDF circuit tortion results mainly from clipping in the vacuum tube. As
elements connections are presented in Figure 13(a), which the transformer saturation increases, with a = 90; the output
includes a connection to a triode, using Koren’s model [29], waveform starts to look like a triangular wave. With a = 900,
a linear model for the output speaker shown in Figure the output transformer is already highly saturated, and the
13(b), and the nonlinear transformer model presented in observed output pressure is formed by short impulses.
EURASIP Journal on Advances in Signal Processing 13
Rp
Plate
circuit
V+ Tx Le Lm Ra
+
−
Loudspeaker
T em T ma
input
+
−
V in Rk
Cathode
circuit
Cg Ri Rg
Grid circuit Re Cm Rm Ca
(a) (b)
Figure 13: WDF implementation of the output chain of a vacuum tube amplifier using the proposed transformer model. (a) The complete
circuit and (b) the loudspeaker implementation.
0.06 5
0
0.04 Normalized output pressure (dB) −5
−10
0.02
Output pressure
−15
−20
0
−25
−30
−0.02
−35
−0.04 −40
−45
−0.06 −50
0 0.005 0.01 0.015 0.02 0 500 1000 1500 2000
Time (s) Frequency (Hz)
a=9 a=9
a = 90 a = 90
a = 900 a = 900
(a) (b)
Figure 14: Simulated loudspeaker output pressure for different levels of transformer saturation, for an input consisting of a sine with 200 Hz
with 3 different levels of transformer saturation in (a) the time domain and (b) the frequency domain. In (b), a frequency offset of 30 Hz is
applied for clarity.
In the frequency-domain analysis of the output chain The real-time model operates at a 96 kHz sampling rate
response in Figure 14(b), there are little differences between in a standard PC with an Intel Core 2 Quad CPU, 3 GHz,
harmonics for a = 9 and a = 90. Hence, for a lower and 8 GB RAM, and it consumes roughly 7% of CPU time
transformer saturation, although there would be some (implementation efficiency improvement is still possible by
differences in the time-domain waveforms, there would be using other programming languages).
only subtle audible differences. For a = 900, there is at least a
5 dB difference for most of the harmonics when compared to 6. Conclusion
a = 9. In this case, the transformer saturation contributes
to guitar coloration significantly at lower-frequency notes, A new model for the audio transformer used in tube
while little effect should be noticed for higher-frequency amplifiers was proposed. Wave digital filters were chosen
notes. as the modeling paradigm. The model is based on the
The real-time model is implemented using the previously proposed gyrator-capacitor analogy, in which the
BlockCompiler software [30]. Media files will be updated at nonlinear behavior is represented using voltage-dependent
http://www.acoustics.hut.fi/publications/papers/jasp-trafo/. voltage and current sources.
14 EURASIP Journal on Advances in Signal Processing
A parameter fitting procedure was introduced. It uses [5] J. Macak and J. Schimmel, “Nonlinear circuit simulation
an open circuit measurement in which a sinusoidal input using time-variant filter,” in Proceedings of the International
voltage is fed into the primary while there is no load in the Conference on Digital Audio Effects, Como, Italy, September
secondary. By conducting basic electrical measurements of 2009.
the input current and output voltage of the audio trans- [6] D. T. Yeh, Digital implementation of musical distortion circuits
by analysis and simulatio, Ph.D. thesis, Stanford Univer-
former, the nonlinear capacitance and resistance parameters
sity, Palo Alto, Calif, USA, 2009, https://ccrma.stanford.edu/
can be determined. There is no need to know physical
∼dtyeh/papers/DavidYehThesissinglesided.pdf.
parameters of the transformer or even the number of [7] D. T. Yeh, J. S. Abel, and J. O. Smith, “Automated physical
windings. The transformation ratio can be calculated based modeling of nonlinear audio circuits for real-time audio
on the estimated primary and secondary inductances. effects - part I: theoretical development,” IEEE Transactions on
As a case study, measurements of a Fender NSC041318 Audio, Speech and Language Processing, vol. 18, no. 4, pp. 728–
transformer were presented. It was shown that nonlinear 737, 2010.
distortion is generated mainly at frequencies below about [8] M. Karjalainen and J. Pakarinen, “Wave digital simulation
100 Hz. This implies that audible effects appear only with of a vacuum-tube amplifier,” in Proceedings of IEEE Interna-
low guitar tones. A comparison to a Hammond T1750V tional Conference on Acoustics, Speech and Signal Processing
(ICASSP ’06), vol. 5, pp. 153–156, Toulouse, France, 2006.
was made. This transformer presented nonlinear distortion
[9] G. De Sanctis and A. Sarti, “Virtual analog modeling in the
only for frequencies below 30 Hz, which may be inaudible. wave-digital domain,” IEEE Transactions on Audio, Speech and
Once the model parameters were estimated, the WDF model Language Processing, vol. 18, no. 4, pp. 715–727, 2010.
reproduced the behavior of the transformers accurately [10] J. Pakarinen, M. Tikander, and M. Karjalainen, “Wave digital
at low frequencies but not so well at higher frequencies. modeling of the output chain of a vacuum-tube amplifier,”
However, the distortion produced by the model at high in Proceedings of the 12th International Conference on Digital
frequencies was negligible. Audio Effects (DAFx ’09), Como, Italy, September 2009.
A real-time implementation of the model, which runs [11] J. Pakarinen and M. Karjalainen, “Enhanced wave digital
in a modern PC at the 96 kHz sample rate, was briefly triode model for real-time tube amplifier emulation,” IEEE
Transactions on Audio, Speech and Language Processing, vol. 18,
described. Parameters of the model can be varied freely to
no. 4, pp. 738–746, 2010.
change the distortion characteristics. By exaggerating the [12] M. Veen and P. Touzelet, “New vacuum tube and output
nonlinearities, a prominent effect, reminiscent of that of the transformer models applied to the Quad II valve amplifier,” in
blocking distortion, is obtained. Proceedings of the 114th Audio Engineering Society Convention,
Future research may look, for example, into the non- Amsterdan, The Netherlands, March 2003, preprint 5748.
linearities of loudspeakers used in guitar amplifiers and the [13] I. Cohen and T. Hélie, “Real-time simulation of a guitar power
inclusion of frequency-dependent losses in the magnet core amplifier,” in Proceedings of the 13th International Conference
of the audio transformer, such as modeling of eddy currents. on Digital Audio Effect (DAFx ’10), Graz, Austria, September
Additionally, the behavior of the GC model under transient 2010.
conditions should be evaluated in future studies. [14] J. Macak and J. Schimmel, “Real-time guitar tube amplifier
simulation using an approximation of differential equations,”
in Proceedings of the 13th International Conference on Digital
Acknowledgment Audio Effect (DAFx ’10), Graz, Austria, September 2010.
[15] P. Touzelet, “Accurate non linear models of valve amplifiers
including output transformers,” in Proceedings of the 120th
This research was funded by CIMO, Aalto University, and
Audio Engineering Society Convention, Paris, France, May
Academy of Finland (Project 122815). 2006, preprint 6830.
[16] D. C. Jiles and D. L. Atherton, “Theory of ferromagnetic
hysteresis,” Journal of Magnetism and Magnetic Materials, vol.
References 61, no. 1-2, pp. 48–60, 1986.
[1] J. Pakarinen and D. T. Yeh, “A review of digital techniques [17] J. H. Chan, A. Vladimirescu, X. C. Gao, P. Liebmann,
for modeling vacuum-tube guitar amplifiers,” Computer Music and J. Valainis, “Nonlinear transformer model for circuit
Journal, vol. 33, no. 2, pp. 85–100, 2009. simulation,” IEEE Transactions on Computer-Aided Design of
Integrated Circuits and Systems, vol. 10, no. 4, pp. 476–482,
[2] T. Hélie, “Volterra series and state transformation for real-
1991.
time simulations of audio circuits including saturations:
[18] D. C. Hamill, “Gyrator-capacitor modeling: a better way
application to the Moog ladder filter,” IEEE Transactions on
of understanding magnetic components,” in Proceedings of
Audio, Speech and Language Processing, vol. 18, no. 4, pp. 747–
the 9th Annual Applied Power Electronics Conference and
759, 2010.
Exposition (APEC ’94), vol. 1, pp. 326–332, February 1994.
[3] D. T. Yeh, J. S. Abel, A. Vladimirescu, and J. O. Smith, [19] Y. S. Lee, L. P. Wong, and D. K. W. Cheng, “Simulation and
“Numerical methods for simulation of guitar distortion design of integrated magnetics for power converters,” IEEE
circuits,” Computer Music Journal, vol. 32, no. 2, pp. 23–42, Transactions on Magnetics, vol. 39, no. 2, pp. 1008–1018, 2003.
2008. [20] Q. Chen, L. Xu, X. Ruan, S. C. Wong, and C. K. Tse,
[4] M. N. Gallo, “Method and apparatus for distortion of audio “Gyrator-capacitor simulation model of nonlinear magnetic
signals and emulation of vacuum tube amplifiers,” US patent core,” in Proceedings of the 24th Annual IEEE Applied Power
Application 2008/0218259 A1. Filed on March 2007, published Electronics Conference and Exposition (APEC ’09), pp. 1740–
on September 2008. 1746, February 2009.
EURASIP Journal on Advances in Signal Processing 15