MODELING SALLEN-KEY AUDIO FILTERS IN THE WAVE …

5
MODELING SALLEN-KEYAUDIO FILTERS INTHE WAVE DIGITAL DOMAIN Mattia Verasani, Alberto Bernardini and Augusto Sarti Dipartimento di Elettronica, Informazione e Bioingegneria Politecnico di Milano, Piazza L. Da Vinci 32, 20133 Milano, Italy Email: [email protected], [email protected], [email protected] ABSTRACT Sallen-Key filters are widespread in audio circuits. Therefore, ac- curate and efficient digital models of such filters are highly desir- able in audio Virtual Analog applications. In this paper, we will dis- cuss a possible strategy, based on Wave Digital Filters (WDFs), for implementing all the analog filters described in the historical 1955 manuscript by Sallen and Key. In particular, we will group the eigh- teen filter models presented by Sallen and Key into nine classes, ac- cording to their topological properties. For each class we will de- scribe the corresponding WDF structures. Finally, we will compare the output signals of WDFs to the output signals of the same models implemented in LTSpice. Index TermsVirtual Analog Modeling, Wave Digital Filters, Audio Filters 1. INTRODUCTION Sallen-Key filters [1] are used pervasively in analog audio circuitry [2]. Therefore, accurate and efficient digital implementations of such filters are extremely useful in audio and music applications based on Virtual Analog (VA) modeling [3]. Some approaches exist in the lit- erature for digitally implementing Sallen-Key filters [4–6], but they are mostly based on discretizing the transfer function, which charac- terizes the frequency response of the reference filter [4]. Moreover, using these kinds of digital filters, the information about the actual topological structure of the reference analog filter is not preserved in the digital domain. Therefore, such approaches are probably not the best solution for obtaining modular digital models characterized by physically-meaningful parameters. Instead, Wave Digital Filters (WDFs) [7] are suitable for these purposes [8]. Moreover, WDFs are known to be an excellent tool for realizing efficient, accurate and stable digital implementations of linear and Non Linear (NL) refer- ence analog circuits [9–12], as they turn systems of implicit Kirch- hoff equations into a computable graph constituted of blocks, which are connected through input-output relations [13]. For these rea- sons, they have been widely used in the literature on sound synthesis through physical modeling and interactive VA modeling [14]. How- ever WDFs present also some limitations. In fact, in many cases non-computable Delay-Free-Loops (DFLs) arise also in WDF struc- tures. They may be caused by the presence of multiple non-adaptable NL elements or by complex topologies [15–17]. For accommodating multiple nonlinearities, many methods are under study: approaches based on multi-port NL elements [18–21], iterative methods [8] or dynamic adaptation [22]. For facing topological problems, the ap- proach based on a graph decomposition of the reference circuit by Franken et al. [15] is quite effective, as the circuit can be represented as a computable structure constituted of series, parallel and R-type junctions. R-type junctions can be implemented using one of the three methods presented in [16, 17, 23]. In order to effectively implement Sallen-Key filters in the Wave Digital (WD) domain, besides having to accommodate complex topologies, it is also essential to rely on efficient and accurate op- erational amplifier (op-amp) models. In the literature on WDFs there are only few works in which circuits containing op-amps are discussed; [24], [25] and [26]. In particular, in [26] a Modified Nodal Analysis (MNA)-based method is described for accommo- dating arbitrarily complex linear circuits containing op-amps, along with two possible op-amp models; one ideal model based on nullors and one more complex linear macromodel containing some linear nonidealities. In the light of the approach described in [17, 26], in this paper, we will analyze all the Sallen-Key filters and we will derive their WD implementations, using a simplified, though accu- rate, real op-amp macromodel. The paper is organized as follows. In Section 2 we will group the eighteen Sallen-Key filters presented in [1] into nine classes, according to their topological properties. In Section 3, we will briefly describe how to proceed for modeling a generic circuit with complex topologies in the WD domain. In Section 4, for each one of the nine classes defined in Section 2, we will show how to build the corresponding WDF model, following the approach presented in [17, 26]. For modeling op-amps, we will use a static small-signal macromodel, which is simpler w.r.t. the linear macromodel presented in [26]. In Section 5, we will test the derived WDF models through some examples of applications and we will show the resulting output signals are nearly identical to the corresponding LTSpice implementations. Finally, Section 6 concludes this paper. 2. SALLEN-KEY FILTERS CLASSIFICATION Sallen-Key filters are second order electronic active filters contain- ing op-amps, introduced in the 1955 manuscript [1] by Sallen and Key. They have been widely used, not only in audio circuits [27], for implementing low-pass, high-pass and band-pass frequency re- sponses. In the original work [1], such filters involved only resistors and capacitors. In [1] a ‘catalog of second order active networks” with eighteen numbered filters is presented. Analyzing those filters we identified nine recurring topological patterns, which are shown in Fig. 1. The white rectangular blocks indicate generic impedances Z h (with h an integer), which could also be combinations of elements in series or parallel. The numbered filters in the Sallen and Key catalog are classified in Fig. 1 as follows: (a) refers to filters 1, 3 and 9, (b) refers to 5 and 7, (c) refers to 10 and 13, (d) refers to 11 and 14, (e) refers to 16 and 17, (f) refers to 12 and 15, (g) refers to 6 and 8, (h) refers to 2 and 4, while (i) refers to 18. As it is evident from Fig. 1, in the classification process, we considered also the op-amp

Transcript of MODELING SALLEN-KEY AUDIO FILTERS IN THE WAVE …

Page 1: MODELING SALLEN-KEY AUDIO FILTERS IN THE WAVE …

MODELING SALLEN-KEY AUDIO FILTERS IN THE WAVE DIGITAL DOMAIN

Mattia Verasani, Alberto Bernardini and Augusto Sarti

Dipartimento di Elettronica, Informazione e BioingegneriaPolitecnico di Milano, Piazza L. Da Vinci 32, 20133 Milano, Italy

Email: [email protected], [email protected], [email protected]

ABSTRACT

Sallen-Key filters are widespread in audio circuits. Therefore, ac-curate and efficient digital models of such filters are highly desir-able in audio Virtual Analog applications. In this paper, we will dis-cuss a possible strategy, based on Wave Digital Filters (WDFs), forimplementing all the analog filters described in the historical 1955manuscript by Sallen and Key. In particular, we will group the eigh-teen filter models presented by Sallen and Key into nine classes, ac-cording to their topological properties. For each class we will de-scribe the corresponding WDF structures. Finally, we will comparethe output signals of WDFs to the output signals of the same modelsimplemented in LTSpice.

Index Terms— Virtual Analog Modeling, Wave Digital Filters,Audio Filters

1. INTRODUCTION

Sallen-Key filters [1] are used pervasively in analog audio circuitry[2]. Therefore, accurate and efficient digital implementations of suchfilters are extremely useful in audio and music applications based onVirtual Analog (VA) modeling [3]. Some approaches exist in the lit-erature for digitally implementing Sallen-Key filters [4–6], but theyare mostly based on discretizing the transfer function, which charac-terizes the frequency response of the reference filter [4]. Moreover,using these kinds of digital filters, the information about the actualtopological structure of the reference analog filter is not preservedin the digital domain. Therefore, such approaches are probably notthe best solution for obtaining modular digital models characterizedby physically-meaningful parameters. Instead, Wave Digital Filters(WDFs) [7] are suitable for these purposes [8]. Moreover, WDFsare known to be an excellent tool for realizing efficient, accurate andstable digital implementations of linear and Non Linear (NL) refer-ence analog circuits [9–12], as they turn systems of implicit Kirch-hoff equations into a computable graph constituted of blocks, whichare connected through input-output relations [13]. For these rea-sons, they have been widely used in the literature on sound synthesisthrough physical modeling and interactive VA modeling [14]. How-ever WDFs present also some limitations. In fact, in many casesnon-computable Delay-Free-Loops (DFLs) arise also in WDF struc-tures. They may be caused by the presence of multiple non-adaptableNL elements or by complex topologies [15–17]. For accommodatingmultiple nonlinearities, many methods are under study: approachesbased on multi-port NL elements [18–21], iterative methods [8] ordynamic adaptation [22]. For facing topological problems, the ap-proach based on a graph decomposition of the reference circuit byFranken et al. [15] is quite effective, as the circuit can be representedas a computable structure constituted of series, parallel and R-type

junctions. R-type junctions can be implemented using one of thethree methods presented in [16, 17, 23].

In order to effectively implement Sallen-Key filters in the WaveDigital (WD) domain, besides having to accommodate complextopologies, it is also essential to rely on efficient and accurate op-erational amplifier (op-amp) models. In the literature on WDFsthere are only few works in which circuits containing op-amps arediscussed; [24], [25] and [26]. In particular, in [26] a ModifiedNodal Analysis (MNA)-based method is described for accommo-dating arbitrarily complex linear circuits containing op-amps, alongwith two possible op-amp models; one ideal model based on nullorsand one more complex linear macromodel containing some linearnonidealities. In the light of the approach described in [17, 26], inthis paper, we will analyze all the Sallen-Key filters and we willderive their WD implementations, using a simplified, though accu-rate, real op-amp macromodel. The paper is organized as follows.In Section 2 we will group the eighteen Sallen-Key filters presentedin [1] into nine classes, according to their topological properties.In Section 3, we will briefly describe how to proceed for modelinga generic circuit with complex topologies in the WD domain. InSection 4, for each one of the nine classes defined in Section 2, wewill show how to build the corresponding WDF model, followingthe approach presented in [17, 26]. For modeling op-amps, we willuse a static small-signal macromodel, which is simpler w.r.t. thelinear macromodel presented in [26]. In Section 5, we will testthe derived WDF models through some examples of applicationsand we will show the resulting output signals are nearly identicalto the corresponding LTSpice implementations. Finally, Section 6concludes this paper.

2. SALLEN-KEY FILTERS CLASSIFICATION

Sallen-Key filters are second order electronic active filters contain-ing op-amps, introduced in the 1955 manuscript [1] by Sallen andKey. They have been widely used, not only in audio circuits [27],for implementing low-pass, high-pass and band-pass frequency re-sponses. In the original work [1], such filters involved only resistorsand capacitors. In [1] a ‘‘catalog of second order active networks”with eighteen numbered filters is presented. Analyzing those filterswe identified nine recurring topological patterns, which are shown inFig. 1. The white rectangular blocks indicate generic impedances Zh(with h an integer), which could also be combinations of elements inseries or parallel. The numbered filters in the Sallen and Key catalogare classified in Fig. 1 as follows: (a) refers to filters 1, 3 and 9, (b)refers to 5 and 7, (c) refers to 10 and 13, (d) refers to 11 and 14,(e) refers to 16 and 17, (f) refers to 12 and 15, (g) refers to 6 and8, (h) refers to 2 and 4, while (i) refers to 18. As it is evident fromFig. 1, in the classification process, we considered also the op-amp

Page 2: MODELING SALLEN-KEY AUDIO FILTERS IN THE WAVE …

+

Z8 Z5

Z6

Z4

+

Z8 Z5

Z6

Z4

1

(a)

+

Z8 Z5

Z6

Z4

+

Z8 Z5

Z6

Z4

1

(b)

+

Z8

Z4

Z6

Z5

+

Z8

Z4

Z6

Z5

1

(c)

+

Z11

Z7 Z8Z9

+

Z11

Z7 Z8Z9

1

(d)

+

Z7

Z4

Z6

Z5

+

Z7

Z4

Z6

Z5

1

(e)

+

Z7

Z4

Z6

Z5−

+

Z7

Z4

Z6

Z5

1

(f)

+

Z10

Z4

Z5 Z6

Z7 Z8

+

Z10

Z4

Z5 Z6

Z7 Z8

1

(g)

+

Z10

Z4

Z5 Z6

Z7 Z8

+

Z10

Z4

Z5 Z6

Z7 Z8

1

(h)

+

Z9

Z7

Z5Z8

Z4

Z6

+

Z9

Z7

Z5Z8

Z4

Z6

1

(i)

Fig. 1. Nine classes of Sallen-Key filters with different topologies.

polarity as a discriminative property. Therefore, the circuits pairs(a)–(b), (e)–(f) and (g)–(h) share the same topological structure, butthe positive and negative input terminals of the op-amp are swapped.

3. WDF MODELING OF CIRCUITS

WDFs are derived performing a lumped discretization of a referenceanalog circuit and applying a port-wise linear transformation. If thereference circuit is a N -port network, the vectors of port voltagesv = [v1, . . . , vN ]t and port currents i = [i1, . . . , iN ]t are mappedinto the vectors of incident waves a = [a1, . . . aN ]t and reflectedwaves b = [b1 . . . bN ]t, as follows

a = v + Ri , b = v −Ri , (1)

where R = diag[R01, . . . R0N ] is the diagonal matrix of theport free parameters, called reference port resistances. Often itis also useful to define the port admittance matrix G = R−1 =diag[G01, . . . G0N ]. In the WD domain, each element becomes ablock characterized by an input-output relation [7] and the topo-logical connections between the elements are implemented usingmulti-port junctions, called adaptors [28]. How to accommodatethe most spread linear circuit elements (e.g. real sources, resistors,capacitors) and traditional series and parallel adaptors is extensivelyexplained in [7, 28]. In order to solve more complex connectionsthan series and parallel, the method by Franken et al. [15] is usedfor turning the reference circuit graph into a SPQR-tree structure,in order to identify the S-, P-, Q- and R-type portions. Then, thecorresponding adaptors of the R-type nodes should be derived us-ing one of the approaches described in the three works [23], [16]and [17]. As pointed out in [25] in Fig. 8, where a circuit witha simple op-amp model is studied, in some cases a replacementgraph [15] must be added to the circuit graph representation inorder to embed multi-port active elements into R-type nodes andavoid DFLs. Therefore, especially in some particular cases wherecontrolled sources are involved, the implementation of hybrid activejunctions, which embody both topological connections and activemulti-port elements, seems unavoidable for ensuring computability.The MNA-based [29] method presented in [17, 25, 26, 30] allows usto derive the scattering matrix S of such active junctions as follows

S = I +[0 R 0

]X−1 [0 I 0

]t with b = Sa , (2)

where I is the identity matrix, 0 is a matrix of zeros with the appro-priate size and X is the so called MNA matrix. The MNA analysis isapplied to the circuit corresponding to the R-type components of theSPQR-tree to which ports are attached Thevenin equivalents. Theideal voltage sources of the Thevenin equivalents are ordered in thevector e = [e1, . . . , eN ]t , while the corresponding branch currentsare j1 = [j1, . . . , jN ]t. Applying the analogy, which is described in[17], using the concept of instantaneous Thevenin equivalents, andalso explained in [18], under the name of Kirchhoff Domain Analogy,we set e = a, j = [jt1, j

t2]t = [−it, jt2]t, where j2 are other branch

currents not passing through the instantaneous Thevenin equivalents(e.g. through Voltage Controlled Voltage Source (VCVS)), and weset the port resistances equal to the Thevenin equivalents series resis-tances. More precisely, X satisfies the following system of equations

X

[vn

j

]=

[Y AB D

] [vn

j

]=

[ise

](3)

where the X partitions Y, A, B, and D define the relation amonge, j, the node voltages vn and the current source values is, which inour context are always zero. Once all the needed WD elements andadaptors are derived, systematic methods for initializing and imple-menting generic WDF structures could be used, as explained in [13].

4. SALLEN-KEY FILTERS IN THE WD DOMAIN

In this Section, we describe how to apply the WDF approach re-sumed in Section 3, in order to implement all the Sallen-Key topolo-gies. The MNA method, described in Section 3, would work inde-pendently on the used op-amp macromodel. However, in this paper,we will describe op-amps with the linear small-signal static macro-model in Fig. 2. Rin is the finite, typically very high, input resis-tance. Rout is the non-zero, typically very low, output resistance.A0 is the finite open-loop gain. Rin, Rout and A0 are usually spec-ified in the reference op-amp datasheet. The VCVS is controlled by

Page 3: MODELING SALLEN-KEY AUDIO FILTERS IN THE WAVE …

Rin

+

RoutC

G

A0vid

A

B

+

vidRin

+

RoutC

G

A0vid

A

B

+

vid

1

Fig. 2. Op-amp linear static small signal macromodel.

the signal A0vid. The nodes A, B, C and G indicate the terminalsof the op-amp macromodel.

Let us now consider the nine models shown in Fig. 1. For eachfilter in Fig. 1 we connect a real voltage source Vin to the inputport and a load resistance Rload to the output port. In order to de-rive the corresponding WDF structures, we have firstly to build therelative graphs. Then we find the split components of the SPQR-tree structure, forcing the nodes A, B, C and G to be part of aR-type node, using a replacement graph, as explained in [15] andas shown also in Fig. 8 in [25]. A graph representation of the cir-cuits in Fig. 1 is shown in Fig. 3; the fictitious edges of the replace-ment graphs are colored in gray. We labeled the edges of the graphsusing the Zh impedances subscripts (with h an integer) shown inFig. 1, while we always assign the label 1 to the element Rin, 2 toRout and 3 to Rload. We named the different R-types using differ-ent subscripts. From the circuit graph representation, it is now easyto build the scheme of the corresponding WDF structures. As anexample, in Fig. 4 we show the WDF structure resulting from theSPQR-tree in Fig. 3.d. In order to find the scattering matrix of the R-node Rτ , we perform the MNA analysis of the circuit in Fig. 5, i.e.the R-node circuit with instantaneous Thevenin equivalents attachedat each port. The MNA matrix relative to Rτ is called Xτ and,according to Fig. 5, if we set vn = [vm, vn, vo, vt, vA, vC , vB ]t,j = [−i5,−i4,−i2,−i3, jV CV S ]t, e = [a5, a4, a2, a3]t, the corre-sponding Xτ partition matrices are: Dτ = 0,

Yτ =

G05 0 0 0 −G05 0 00 G04 0 0 −G04 0 00 0 G02 0 0 −G02 00 0 0 G03 0 0 −G03

−G05 −G04 0 0 (G05 + G04) 0 00 0 −G02 0 0 G02 00 0 0 −G03 0 0 G03

,

Aτ =

1 0 0 0 00 1 0 0 00 0 1 0 00 0 0 1 00 0 0 0 00 0 0 0 10 −1 −1 0 0

, Bτ =

1 0 0 0 0 0 00 1 0 0 0 0 −10 0 1 0 0 0 −10 0 0 1 0 0 00 0 0 0 −A0 1 A0

.

Finally we use equation (2) for finding Sτ . All the other scatteringmatrices of the R-type nodes in Fig. 3 can be derived similarly.

As in traditional adaptors, also one port of such R-type nodescan be made reflection free. For instance, in our example, we adaptthe left port of Rτ by setting G05 = G04G02+G04G03

G04+G02+G03+A0G02.

5. EXAMPLES OF APPLICATIONS

In this Section, we analyze the behavior of the derived WD Sallen-Key models, feeding them with a linear sinusoidal up-chirp signalwith f1 = 20 Hz and f2 = 2000 Hz as starting and ending fre-quencies. The amplitude of that signal is 3 V. A zoomed portion ofthe up-chirp is shown at the top of Fig. 6. The output signals arecompared to the outputs of the corresponding LTSpice simulations.

B

C

G

A

d

6

RαS

e

d

G

21

3

4

15

7′7′8

9

1

(a)

A

C

G

B

d

6

RβS

e

d

G

21

3

4

15

7′7′8

9

1

(b)

B

C

G

A6e

A

G

2

3

514d

7′

7′

RξS

8

9

Figure 1: Sallen-Key lowpass filter1

1

(c)

RτS1 P1

P2S2B

C

G

A

7

6′

e

A

G

24′

5′

A

G

3

A

A

B

B

1 4′6′8

10′ 9 5′10′

d

11

12

1

(d)

B

C

G

A

e

2

3

5

4

6

8

1

7 d

Figure 1: Sallen-Key lowpass filter1

1

(e)

A

C

G

B

e

2

3

5

4

6

8

1

7 d

Figure 1: Sallen-Key lowpass filter1

1

(f)

RγS

f A

7

B

C

G

6d

8e

d

G

21

3

4

5

9′9′10

11

1

(g)

RθS

f B

7

A

C

G

6d

8e

d

G

21

3

4

5

9′9′10

11

1

(h)

B

C

G

A

f

e

8

9

10

2

3

5

4

7

1

6

Figure 1: Sallen-Key lowpass filter1

1

(i)

Fig. 3. Finding split components of the nine filters in Fig. 1.

Z11

Vin Rload

Z9 Rout Rin Z8

Z7

Fig. 1: Sallen-Key lowpass filter with static small-signalmacromodel wave digital structureFig. 4. WDF structure relative to the graph in Fig. 3.d.

We use a LTSpice model of the LM324 op-amp, which is very com-mon in some audio synthesizers, such as the Korg Monotron [31].The needed parameters are taken from the LM324 datasheet [32].The LM324 LTSpice model is employed in all the circuit simula-tions. According to the LM324 datasheet, we set the small-signalstatic macromodel parameters to Rin = 106 Ω, Rout = 10 Ω andA0 = 105. We implement variants of the filters in Fig. 1. Here weshow the results of five significant Sallen-Key configurations. Thesampling rate is Fs = 48 kHz. For the sake of brevity, we define

Page 4: MODELING SALLEN-KEY AUDIO FILTERS IN THE WAVE …

+−a′

5

R′5

+ −

a′4

B

R′4

A

+ +

R2

G

C

+ −

a2

+−a3

R3

Fig. 1: Sallen-Key lowpassfilter

Fig. 5. Kirchhoff Domain Analogy Circuit for MNA Analysis (re-ferred to Fig. 3.d).

the capacitance parameter C = 0.1 nF and the resistance parameterR = 100 kΩ. In the corresponding figures captions, we will specifythe actual filter impedances values used in each simulation. As faras the following plots are concerned, we define the Vload LTSpicesignal as Vload and the same signal taken from the WDF structureas Vload. In each plot we compare Vload to Vload and we show thesquared error signal V 2

error = (Vload − Vload)2.

T ime[sec]0.02 0.04 0.06 0.08 0.1 0.12

Vin

[V]

-2

0

2 WDS

T ime[sec]0.02 0.04 0.06 0.08 0.1 0.12

Vlo

ad

[V]

-2

0

2WDSSPICE

T ime[sec]0.02 0.04 0.06 0.08 0.1 0.12

V2 erro

r[V

2] #10-3

2

6

10 Squared Error

Fig. 6. Top: Up-chirp signal Vin used for all the simulations. Center:Vload signal WDF model vs LTSpice. The reference model is theone in Fig. 1.a; in particular Z4 = 1/sC, Z5 = R, Z6 = 1/sC andZ8 = R. Bottom: Squared Error signal WDF model vs LTSpice.

T ime[sec]0.02 0.04 0.06 0.08 0.1 0.12

Vlo

ad

[V]

-2

0

2 WDSSPICE

T ime[sec]0.02 0.04 0.06 0.08 0.1 0.12

V2 erro

r[V

2]

0.02

0.04Squared Error

Fig. 7. Vload WDF model vs LTSpice. The reference Sallen-Keymodel is the one in Fig. 1.c; in particular Z4 = 1/sC, Z5 = R,Z6 = 1/sC and Z8 = R.

6. CONCLUSION AND FUTURE WORK

In this paper, we analyzed the eighteen RC active filters proposedby Sallen and Key in their original manuscript and we divided them

T ime[sec]0.02 0.04 0.06 0.08 0.1 0.12

Vlo

ad

[V]

-2

0

2 WDSSPICE

T ime[sec]0.02 0.04 0.06 0.08 0.1 0.12

V2 erro

r[V

2] #10-3

51015 Squared Error

Fig. 8. Vload WDF model vs LTSpice. The reference Sallen-Keymodel is the one in Fig. 1.d; in particular Z7 = 1/sC, Z8 = R,Z9 = 1/sC and Z11 = R.

T ime[sec]0.02 0.04 0.06 0.08 0.1 0.12

Vlo

ad

[V]

-2

0

2 WDSSPICE

T ime[sec]0.02 0.04 0.06 0.08 0.1 0.12

V2 erro

r[V

2] #10-5

1

2

3Squared Error

Fig. 9. Vload WDF model vs LTSpice. The reference Sallen-Keymodel is the one in Fig. 1.e; in particular Z4 = 1/sC, Z5 = R,Z6 = 1/sC and Z7 = R.

T ime[sec]0.02 0.04 0.06 0.08 0.1 0.12

Vlo

ad

[V]

-0.5

0

0.5 WDSSPICE

T ime[sec]0.02 0.04 0.06 0.08 0.1 0.12

V2 erro

r[V

2] #10-4

5

10

15Squared Error

Fig. 10. Vload WDF model vs LTSpice. The reference Sallen-Keymodel is the one in Fig. 1.g; in particular Z4 = R/3, Z5 = R/3,Z6 = 1/sC, Z7 = 1/sC, Z8 = R and Z10 = R/3.

into nine possible classes, according to their topological properties.Then we showed how to develop the parametric WDF model foreach class. Finally, we showed that the WDF output signals greatlymatch the corresponding LTSpice simulation results, even thoughsome small errors are present. Such errors are not necessarily pro-duced entirely by WDFs. In fact, they might be partially due tothe numerical inaccuracies of the iterative solvers employed by LT-Spice and/or the re-sampling process (from non-uniform sampling touniform sampling) performed on LTSpice output signals. The pre-sented models are highly modular, independent from the actual filterimpedances and they preserve the topological properties of the ref-erence analog circuits. Moreover, as all traditional WDFs, they aresuitable to be used for interactive VA applications [3, 14].

As far as future work is concerned, we are planning to apply thesame methodology in order to derive WD models of more complexfilter topologies involving op-amps, such as biquad filters.

Page 5: MODELING SALLEN-KEY AUDIO FILTERS IN THE WAVE …

7. REFERENCES

[1] R. P. Sallen and E. L. Key, “A practical method of designingrc active filters,” IRE Trans. Circuit Theory, vol. 2, pp. 74–85,1955.

[2] B. Klein, Electronic Music Circuits, 1st ed. Howard W. Samsand Co., Inc., 1982.

[3] G. De Sanctis and A. Sarti, “Virtual analog modeling in thewave-digital domain,” IEEE Trans. Audio, Speech, LanguageProcess., vol. 18, pp. 715–727, May 2010.

[4] W. Pirkle, Designing Software Synthesizer Plug-ins in C++:For RackAFX, VST3, and Audio Units, 1st ed. Focal Press,Taylor and Francis Group, 2015.

[5] W. Pirkle, “Modeling the korg35 lowpass and highpass filters,”in Audio Engineering Society Convention 135. New York,NY: Audio Engineering Society, Oct. 17 – Oct. 20 2013.

[6] W. Pirkle, “Novel hybrid virtual analog filters based on thesallen-key architecture,” in Audio Engineering Society Conven-tion 137. Los Angeles, CA: Audio Engineering Society, Oct.9 – Oct. 12 2014.

[7] A. Fettweis, “Wave digital filters: Theory and practice,” Proc.of the IEEE, vol. 74, pp. 270–327, Feb. 1986.

[8] T. Schwerdtfeger and A. Kummert, “Newton’s method formodularity-preserving multidimensional wave digital filters,”in IEEE 9th Int. Workshop on Multidimensional (nD) Systems(nDS), Vila Real, Portugal, Sept. 7–9 2015, pp. 1–6.

[9] A. Fettweis, “Pseudo-passivity, sensitivity, and stability ofwave digital filters,” IEEE Trans. Circuit Theory, vol. 19, pp.668–673, Nov. 1972.

[10] K. Meerkotter and R. Scholz, “Digital simulation of nonlinearcircuits by wave digital filter principles,” in IEEE Int. Symp.Circuits Syst., vol. 1, June 1989, pp. 720–723.

[11] A. Sarti and G. De Poli, “Toward nonlinear wave digital fil-ters,” IEEE Trans. Signal Process., vol. 47, pp. 1654–1668,June 1999.

[12] K. J. Werner, V. Nangia, A. Bernardini, J. O. Smith, andA. Sarti, “An improved and generalized diode clipper modelfor wave digital filters,” in Proc. 139th Conv. Audio Eng. Soc.(AES), New York, NY, Oct. 29 – Nov. 1 2015.

[13] A. Sarti and G. De Sanctis, “Systematic methods for the imple-mentation of nonlinear wave-digital structures,” IEEE Trans.Circuits Syst. I, Reg. Papers, vol. 56, pp. 460–472, Feb. 2009.

[14] F. Pedersini, A. Sarti, and S. Tubaro, “Object-based sound syn-thesis for virtual environments using musical acoustics,” IEEESignal Process. Mag., vol. 17, pp. 37–51, Nov. 2000.

[15] D. Franken, J. Ochs, and K. Ochs, “Generation of wave digi-tal structures for connection networks containing multiport el-ements,” IEEE Trans. Circuits and Systems I: Regular Papers,vol. 52, pp. 586–596, March 2005.

[16] K. Meerkotter and D. Franken, “Digital realization of connec-tion networks by voltage-wave 2-port adapters,” AEU - In-ternational Journal of Electronics and Communications, vol.50(6), pp. 362–367, 1996.

[17] K. J. Werner, V. Nangia, J. O. Smith, and J. S. Abel, “A gen-eral and explicit formulation for wave digital filters with mul-tiple/multiport nonlinearities and complicated topologies,” inProc. IEEE Workshop on Applicat. of Signal Process. to Audioand Acoust. (WASPAA), New Paltz, NY, Oct. 18–21 2015.

[18] A. Bernardini, K. J. Werner, A. Sarti, and J. O. Smith, “Model-ing nonlinear wave digital elements using the Lambert func-tion,” IEEE Trans. Circuits and Systems I: Regular Papers,vol. 63, pp. 1231–1242, August 2016.

[19] A. Bernardini, K. J. Werner, A. Sarti, and J. O. Smith, “Multi-port nonlinearities in wave digital structures,” in Proc. IEEEInt. Symp. Signals Circuits Syst. (ISSCS 2015), Iasi, Romania,July 9–10 2015.

[20] A. Bernardini, K. J. Werner, A. Sarti, and J. O. Smith, “Mod-eling a class of multi-port nonlinearities in wave digital struc-tures,” in Proc. European Signal Process. Conf. (EUSIPCO),Nice, France, Aug. 31 – Sept. 4 2015, pp. 669–673.

[21] S. D’Angelo, J. Pakarinen, and V. Valimaki, “New family ofwave-digital triode models,” IEEE Trans. Audio, Speech, Lan-guage Process., vol. 21, pp. 313–321, Feb. 2013.

[22] A. Bernardini and A. Sarti, “Dynamic adaptation of instanta-neous nonlinear bipoles in wave digital networks,” in Proc. Eu-ropean Signal Process. Conf. (EUSIPCO), Budapest, Hungary,Aug. 29 – Sept. 2 2016.

[23] G. O. Martens and K. Meerkotter, “On n-port adaptors for wavedigital filters with application to a bridged-tee filter,” in ProcIEEE Int. Symp. Circuits Syst., Munich, Germany, Apr. 1976,p. 514517.

[24] R. C. D. Paiva, S. D’Angelo, J. Pakarinen, and V. Valimaki,“Emulation of operational amplifiers and diodes in audio dis-tortion circuits,” IEEE Trans. Circuits Syst. II, Exp. Briefs,vol. 59, pp. 688–692, Oct. 2012.

[25] K. J. Werner, J. O. Smith, and J. S. Abel, “Wave digital fil-ters adaptors for arbitrary topologies and multiport linear ele-ments,” in Proc. 18th Conf. Digital Audio Effects (DAFx-15),Trondheim, Norway, Nov. 30 – Dec. 3 2015.

[26] K. J. Werner, W. R. Dunkel, M. Rest, M. J. Olsen, and J. O.Smith, “Wave digital filter modeling of circuits with opera-tional amplifiers,” in Proc. European Signal Process. Conf.(EUSIPCO), Budapest, Hungary, Aug. 29– Sept. 2 2016.

[27] B. Razavi, Fundamentals of microelectronics, 2nd ed. JohnWiley and Sons Inc., 2009.

[28] A. Fettweis and K. Meerkotter, “On adaptors for wave digitalfilters,” IEEE Trans. Acoust., Speech, Signal Process., vol. 23,pp. 516–525, Mar. 1975.

[29] C. Ho, A. Ruehli, and P. Brennan, “The modified nodal ap-proach to network analysis,” IEEE Transactions on Circuitsand Systems, vol. 22, pp. 504–509, 1975.

[30] K. J. Werner, V. Nangia, J. O. Smith, and J. S. Abel, “Resolvingwave digital filters with multiple/multiport nonlinearities,” inProc. 18th Conf. Digital Audio Effects (DAFx-15), Trondheim,Norway, Nov. 30 – Dec. 3 2015.

[31] KORG, Schematic for public release: monotron DELAY, 2012.

[32] Texas Instruments, LMx24-N, LM2902-N Low-Power, Quad-Operational Amplifiers, 2015.