Professional Documents
Culture Documents
AESNY
AESNY
AESNY
Convention Paper
Presented at the 127th Convention
2009 October 9–12 New York NY, USA
The papers at this Convention have been selected on the basis of a submitted abstract and extended precis that have
been peer reviewed by at least two qualified anonymous reviewers. This convention paper has been reproduced from
the author’s advance manuscript, without editing, corrections, or consideration by the Review Board. The AES takes
no responsibility for the contents. Additional papers may be obtained by sending request and remittance to Audio
Engineering Society, 60 East 42nd Street, New York, New York 10165-2520, USA; also see www.aes.org. All rights
reserved. Reproduction of this paper, or any portion thereof, is not permitted without direct permission from the
Journal of the Audio Engineering Society.
1
Ircam - CNRS - STMS UMR 9912, Analysis/Synthesis Team, Paris, France
2
Orosys R&D, Montpellier, France
Correspondence should be addressed to Ivan Cohen, Thomas Helie (ivan.cohen@orosys.fr,
thomas.helie@ircam.fr)
ABSTRACT
This paper deals with the simulation of a high gain triode stage of a guitar amplifier. Triode models taking
into account various “secondary phenomena” are considered and their relevance on the stage is analyzed.
More precisely, both static and dynamic models (including parasitic capacitances) are compared. For each
case, the stage can be modeled by a nonlinear differential algebraic system. For static triode models,
standard explicit numerical schemes yield efficient stable simulations of the stage. However, the effect due to
the capacitances in dynamic models is audible (Miller effect) and must be considered. The problem becomes
stiff and requires the use of implicit schemes. The results are compared for all the models and corresponding
VST plug-ins have been implemented.
2. THE COMMON CATHODE TRIODE AM- Fig. 1: The common cathode triode amplifier
PLIFIER
2.1. Presentation Rp . To increase the performances of this topology,
The common cathode triode amplifier is a topology the resistance Rk is added between the cathode and
of circuit that has been used in hi-fi and guitar am- the ground, to polarize the input voltage, with a de-
plifiers to increase the voltage of a signal. It has coupling condensator Ck in parallel, which limits the
interesting properties in terms of sound for musi- variation of the cathode bias potential. The resis-
cians and audiophiles, which justifies its use today, tance Rg limits the grid rectification effect (see next
several years after the apparition of transistors (for section for explanations). The Ro and Co coupling
example the harmonic content of the triode satura- components allow the designer to add several triode
tion [1]), and its study in papers about guitar ampli- amplifiers in cascade, if more distortion of harmon-
fiers simulation [5] [6] [7] [8] [9]. It is found in most ics is needed in the output signal. The condensator
of the guitar preamplifiers, which have the purpose suppresses the DC component of the signal, the re-
to increase the voltage of the guitar’s signal (with a sistance changes the output gain of the electronic
maximum voltage of 400 mV, and an impedance of stage, and they act together as a high-pass filter [2].
20 kΩ, depending on the type of guitar pickup), and
to enrich its tone. The triode chosen by designers is 2.3. Electronic equations
very often a 12AX7 (also called ECC83). For this study, the resistances and capacitors are
considered ideal, and the triode as a set of two cur-
2.2. Electronic circuit rent sources (see figure 2), controlled by the voltages
The electronic circuit can be seen in figure 1, with of its poles, the grid (g), the cathode (k) and the
values for its components in the table 1. plate (p). The influence of the heater is neglected.
The triode modeled is a generic 12AX7 / ECC83.
Rp Rg Ro Rk
100 KΩ 220 KΩ 22 KΩ 2.7 KΩ Vg Vp
Vbias Co Ck
300 V 20 nF 10 µF Ig Ip
AES 127th Convention, New York NY, USA, 2009 October 9–12
Page 2 of 9
COHEN AND HELIE Simulation of a guitar amplifier stage for several triode models
measures. E1Ex
Lp = Kg (1 + sgn(E1 )) (4)
3.2. Triode models
For the first modeling, we focus on the static triode The following table gives typical values for the model
models of Leach [3] and Norman Koren [4], which are parameters, from [4] and SPICE models. The figures
standard and broadly used. They model the triode 5 and 6 show the dependance of Ip with Vgk and Vpk .
as two current sources which are a function of the
voltages Vpk and Vgk : µ Kp Kvb Kg Ex
88.5 600 300 1060 1.4
AES 127th Convention, New York NY, USA, 2009 October 9–12
Page 3 of 9
COHEN AND HELIE Simulation of a guitar amplifier stage for several triode models
10 10 V
=1
V
k
=1
9 9 Vg
k
Vg
8 8
V V
7 =0 7 =0
V gk Vg
k
6 V 6
Ip (mA)
Ip (mA)
1 V
5 =− 5 −1
k =
Vg V gk
4 2 4 V
k =− 2V
3
Vg
3
k =−
2 2 Vg
1 1
0 0
0 50 100 150 200 250 300 350 0 50 100 150 200 250 300 350
Vpk (V) Vpk (V)
Fig. 3: Ip function of Vpk for the Leach’s model Fig. 5: Ip function of Vpk for the Koren’s model
10 10
0V
0V
9 9
35
k=
35
0V
8 8
0V
k=
Vp
30
Vp
30
7 7
k=
0V
V
k=
Vp
0
25
6 6
25
Vp
Ip (mA)
Ip (mA)
k=
k = =10 50 V V
V
k=
0
5
Vp pk = =15 200
5
Vp
20
Vp
k=
V
k=
4 4
0
Vp
Vp
50 0 V
1
k=
V
3 3
0
k
Vp
0
V
Vp
1
V
2 2
k
0
Vp
=5
V
V
1
1
=0
Vp
k
k Vpk =0 V
0 Vp 0
−5 −4 −3 −2 −1 0 1 −5 −4 −3 −2 −1 0 1
Vgk (V) Vgk (V)
Fig. 4: Ip function of Vgk for the Leach’s model Fig. 6: Ip function of Vgk for the Koren’s model
result, the voltage measured at the grid in the com- model in this work (see figure 7), as a first study of
mon cathode triode is limited in its positive course. the grid rectification effect. Improvements will be
The triode acts like a rectifier. done in a future work using measures.
One of the uses of the resistance Rg is to control Next, deriving the equations of the circuit for these
the amount of the grid rectification effect. This is models leads to nonlinear differential algebraic sys-
why it is usually chosen with high values. Another tems, with a state-space-like representation.
use of this resistance will be seen in the study of the
3.4. Extended state-space representations
dynamic triode models.
3.4.1. Introduction
This kind of distortion is not wanted by electronic
Linear state-space representations are well known in
designers, but exists, and is modeled to increase the
automatics. Let X be the dynamic state vector of
realism of the simulation. More, it is one of the
the studied system, U the input vector and Y the
reasons of the plate voltage saturation.
output vector. A, B, C and D are the matrix which
Complex ways to model this current are described express the behavior of the linear system.
in SPICE circuits, like replacing the current source
by a diode and a resistance, but the adopted model dX/dt = AX + BU
for the current Ig is the expression from the Leach’s Y = CX + DU (5)
AES 127th Convention, New York NY, USA, 2009 October 9–12
Page 4 of 9
COHEN AND HELIE Simulation of a guitar amplifier stage for several triode models
g(X, W, U ) = o
W2 − U + R g I g
1
h(X, W, U ) = X 2 + W1 (8)
0.5
with
0
−6 −5 −4 −3 −2
Vgk (V)
−1 0 1 2
Ip = Lp (W2 − X1 , W1 − X1 )
Ig = Lg (W2 − X1 , W1 − X1 ) (9)
Fig. 7: Ig function of Vpk
This extended state space representation yields to a
numerical simulation with standard methods of res-
For nonlinear cases, the expression of dX/dt and Y olution, for differential and implicit equations.
can be replaced with nonlinear functions of X and
U . Moreover, the nonlinearity can introduce implicit 3.5. Resolution of differential equations and nu-
equations. They are expressed using a static nonlin- merical schemes
ear state vector W , and added to the state space The notation Zn indicates the state of the variable
representation. Z for the n-th sample. For each sample, Xn is deter-
mined using methods of resolution for the differential
equations dX/dt = f (X, W, U ), and then the zeros
of 0 = g(X, W, U ) give Wn with implicit equations
dX/dt = f (X, W, U ) resolution methods.
0 = g(X, W, U ) 3.5.1. Differential equations
Y = h(X, W, U ) (6) Let Te be the sampling period and Fe the sampling
frequency. A method to resolve differential equa-
3.4.2. State-space equations of the triode ampli- tions in the discrete domain is to approximate dX/dt
fier with Fe × (Xn+1 − Xn ). This is the explicit Euler
The dynamic behavior of the circuit is caused by the method (see equation 10).
condensators. The nonlinearity comes from the tri- Xn+1 = Xn + Te f (Xn , Wn , Un ) (10)
ode modeling, and the expression of the currents Ip
and Ig . Therefore, the condensators voltages have
In general, we prefer to use explicit Runge-Kutta
been chosen as the dynamic state variables, and the
methods instead of explicit Euler, for stability and
triode potentials as the static nonlinear state vari-
accuracy considerations [10]. The resolution of the
ables, which have an implicit expression. Let the
function dX/dt = f (X, W, U ) will be done with
state variables be :
the Runge-Kutta second order method (see equation
U = Vin 12).
T
X = [Vk Vout − Vp ] k1 = Te f (Xn , Wn , Un ) (11)
T k1 Un + Un+1
W = [Vp Vg ] Xn+1 = Xn + Te f (Xn + , Wn , )
Y = Vout (7) 2 2
AES 127th Convention, New York NY, USA, 2009 October 9–12
Page 5 of 9
COHEN AND HELIE Simulation of a guitar amplifier stage for several triode models
tion for W .
Vout (V)
0
Vout (V)
frequency Fe is high, Wn−1 is chosen as the initial- −20
AES 127th Convention, New York NY, USA, 2009 October 9–12
Page 6 of 9
COHEN AND HELIE Simulation of a guitar amplifier stage for several triode models
60
40
20
0
Vout (V)
−20
−40
−60
−80
−100
−120
0 5 10 15 20
time (ms)
40
20
0
Vout (V)
−20
−40
−60
−80
0 5 10 15 20
time (ms)
Vk dVk
+ Ck = Ig + Ip
Rk dt
Vg dVg Vin dVp
to the two other capacitances, and acts in combina- + Cgp = −Ig + + Cgp
Rg dt Rg dt
tion with Rg as a lowpass filter, with a minimum Vp dVp Vbias
cutoff frequency at 5 kHz. These results have been + (Co + Cgp ) = −Ip +
Rp dt Rp
confirmed using SPICE [12] simulations and are au-
dible. The other capacitances have a very low influ- dVout dVg
+Co + Cgp
ence on the frequency response, and have therefore dt dt
been neglected in the following study. The differ- Vout dVout dVp
+ Co = Co (13)
ence between the frequency response of the triode Ro dt dt
stage with and without the parasitic capacitances
are shown in the figure 10. Adding a capacitance in the circuit does not add an
equation in the system. As a result, the dimension of
the vector X becomes three, and the new dimension
of W is one. The new state-space variables are :
U = Vin
T
X = [Vk Vout − Vp Vg − Vp ]
4.2. New circuit and new equations
The circuit seen in figure 11 is the same triode ampli- W = Vp
fier as before, taking the parasitic capacitance Cgp Y = Vout (14)
of the 12AX7 into account, and yields to a new set
of equations, resulting from the Millman’s theorem. The extended state-space representation of the sys-
AES 127th Convention, New York NY, USA, 2009 October 9–12
Page 7 of 9
COHEN AND HELIE Simulation of a guitar amplifier stage for several triode models
Ip = Lp (X3 + W1 − X1 , W1 − X1 ) 30
Ig = Lg (X3 + W1 − X1 , W1 − X1 ) (16) 20
10
4.3. Stiff problems and stability
Vout (V)
AES 127th Convention, New York NY, USA, 2009 October 9–12
Page 8 of 9
COHEN AND HELIE Simulation of a guitar amplifier stage for several triode models
the use of high sampling frequencies or oversampling [4] Norman Koren, “Improved vacuum tube
functions is recommended for nonlinear digital sim- models for spice simulations”, http://www.
ulations, to avoid the apparition of aliasing in the normankoren.com, 2003.
audible frequencies. Secondly, the differential equa-
tions resolution algorithms use Fe as a step, so in- [5] Thomas Serafini, “A complete model of a tube
creasing the sampling frequency increases the accu- amplifer stage”, http://www.simulanalog.
racy of the processing. Lastly, the more the sam- org, 2002.
pling frequency is important, the less is the varia- [6] David T. Yeh and Julius O. Smith, “Simulat-
tion of W between two samples. The convergence ing guitar distortion circuits, using wave digi-
of the Newton-Raphson algorithm is faster if its ini- tal and nonlinear state-space formulations”, in
tial value is close to the solution W of the equa- Proc. of the 11th Int. Conf. on Digital Audio
tion g(X, W, U ) = 0. As such, increasing the sam- Effects (DAFx-08), Espoo, Finland, Sept. 1-4,
pling frequency increases the convergence’s speed of 2008.
Newton-Raphson’s algorithm for a given number of
iterations. [7] Stefano Tubaro, Francesco Santagata, Augusto
In realistic terms, the simulation of the triode stage Sarti, “Non-linear digital implementation of a
is able to produce signals with a rich harmonic con- parametric analog tube ground cathode ampli-
tent, if the gain of the input signal is high enough. fier”, in Proc. of the Int. Conf. on Digital Au-
Three or four triode stages in cascade, with a good dio Effects (DAFx-07), Bordeaux, France, Sept.
cabinet simulation, result in a good approxima- 10-15, 2007, pp. 169-172, http://dafx.labri.
tion of a high gain guitar amplifier sound. Sound fr/main/papers/p169.pdf.
examples are available at http://www.orosys.fr/ [8] Jyri Pakarinen, Matti Karjalainen, “Wave dig-
cohen/aes127.htm. ital simulation of a vacuum-tube amplifier”,
in IEEE International Conference on Acous-
6. CONCLUSION tics, Speech and Signal Processing (ICASSP06),
A preamplifier stage has been studied and simu- May 2006.
lated for Leach and Norman Koren’s static models
as well as dynamic versions, with efficient numerical [9] David T. Yeh, Jyri Pakarinen, “A review of digi-
schemes for real time applications. As a result, the tal techniques for modeling vacuum-tube guitar
Norman Koren’s model combined with the parasitic amplifiers”, in Computer Music Journal Sum-
capacitance Cgp was selected, for both objective and mer 2009, Vol. 33, No. 2, 2009.
perceptive considerations. It yields to the imple-
mentation of plug-ins, which produces satisfactory [10] Jean-Pierre Demailly, “Analyse numerique et
sounds with standard cabinet simulations. More- equations differentielles”, Collection Grenoble
over, future work will be dedicated to model and Sciences, 2006.
simulate the other stages of a guitar amplifier, and [11] John M. Miller, “Dependence of the input
to increase the efficiency of the electronic compo- impedance of a three-electrode vacuum tube
nents models using measures. upon the load in the plate circuit”, in Scien-
tific Papers of the Bureau of Standards, vol.15,
7. REFERENCES no. 351, 1920.
[1] Eric Barbour, “The Cool Sound of Tubes”, [12] Linear Technology, “LTSpice IV / Switcher-
IEEE Spectrum 35(8):24-35, 1998. CAD III”, http://www.linear.com, 2009
[2] Morgan Jones, “Valve Amplifiers, third edi-
tion”, editions Newnes, 2003.
[3] W. Marshall Leach JR., “Spice models for vac-
uum tube amplifiers”, in J. Audio Eng. Society,
Vol. 43, No. 3, March 1995, pp. 117-126.
AES 127th Convention, New York NY, USA, 2009 October 9–12
Page 9 of 9