Wave-Digital Polarity and Current Inverters and Their Application to Virtual Analog Audio Processing

Similar documents
Publication V. c 2012 Copyright Holder. Reprinted with permission.

Discrete-time modelling of musical instruments

A FINITE DIFFERENCE METHOD FOR THE EXCITATION OF A DIGITAL WAVEGUIDE STRING MODEL

Tutorial on Wave Digital Filters

This is an electronic reprint of the original article. This reprint may differ from the original in pagination and typographic detail.

Gustafsson, Tom; Stenberg, Rolf; Videman, Juha A posteriori analysis of classical plate elements

This is an electronic reprint of the original article. This reprint may differ from the original in pagination and typographic detail.

General Appendix A Transmission Line Resonance due to Reflections (1-D Cavity Resonances)

RESOLVING GROUPED NONLINEARITIES IN WAVE DIGITAL FILTERS USING ITERATIVE TECHNIQUES

FRACTIONAL ORDER FILTER BASED ON FRACTIONAL CAPACITORS AND FRACTIONAL INDUCTOR

Ideal String Struck by a Mass

SIMULATING GUITAR DISTORTION CIRCUITS USING WAVE DIGITAL AND NONLINEAR STATE-SPACE FORMULATIONS

Decomposition of the point-dipole field into homogeneous and evanescent parts

Antialiased Soft Clipping using an Integrated Bandlimited Ramp

MUS420 Lecture Mass Striking a String (Simplified Piano Model)

Nonlinear audio transformer simulation using approximation of differential equations

Niiranen, Jarkko; Khakalo, Sergei; Balobanov, Viacheslav Strain gradient elasticity theories in lattice structure modelling

Proceedings of Meetings on Acoustics

Georgia Institute of Technology School of Electrical and Computer Engineering. Midterm-1 Exam (Solution)

Harju, A.; Sverdlov, V.A.; Nieminen, Risto; Halonen, V. Many-body wave function for a quantum dot in a weak magnetic field

Impedance. Reactance. Capacitors

Module 13: Network Analysis and Directional Couplers

SYNTHESIS OF BIRECIPROCAL WAVE DIGITAL FILTERS WITH EQUIRIPPLE AMPLITUDE AND PHASE

Special Digital Filters for Audio Reproduction

Numerical Solution of Nonlinear Differential Equations in Musical Synthesis

Networks and Systems Prof. V. G. K. Murti Department of Electrical Engineering Indian Institution of Technology, Madras

Electronics Prof. D C Dube Department of Physics Indian Institute of Technology Delhi

Electronics for Analog Signal Processing - II Prof. K. Radhakrishna Rao Department of Electrical Engineering Indian Institute of Technology Madras

Lecture 11 Date:

Hinkkanen, Marko; Repo, Anna-Kaisa; Luomi, Jorma Influence of magnetic saturation on induction motor model selection

This is an electronic reprint of the original article. This reprint may differ from the original in pagination and typographic detail.

Chapter 2 Voltage-, Current-, and Z-source Converters

An enriched RWG basis for enforcing global current conservation in EM modelling of capacitance extraction

Kettunen, Henrik & Wallén, Henrik & Sihvola, Ari Polarizability of a dielectric hemisphere

Chapter 11 AC and DC Equivalent Circuit Modeling of the Discontinuous Conduction Mode

OBJECT-BASED SOUND SYNTHESIS. Augusto Sarti, Stefano Tubaro

Simple thermodynamic derivation of the electrocapillary equations

A Two-Dimensional Chaotic Logic Gate for Improved Computer Security

Continuous system simulation. Prof. S. Shakya

Charge The most basic quantity in an electric circuit is the electric charge. Charge is an electrical property of the atomic particles of which matter

Two-Layer Network Equivalent for Electromagnetic Transients

Freund, Jouni; Salonen, Eero-Matti Sensitized principle of virtual work and the single-element strain energy test

Ansoft HFSS 3D Boundary Manager Sources

Gate capacitances of high electron mobility transistors

6. MESH ANALYSIS 6.1 INTRODUCTION

Block-Based Physical Modeling for Digital Sound Synthesis

Divergent Fields, Charge, and Capacitance in FDTD Simulations

Nonlinear Modeling of a Guitar Loudspeaker Cabinet

CHV Series Vector Control Inverter Options. Operating Instructions for Tension Control Card

first name (print) last name (print) brock id (ab17cd) (lab date)

Reentilä, O. & Mattila, M. & Sopanen, M. & Lipsanen, Harri In situ determination of InGaAs and GaAsN composition in multiquantum-well structures

Designing Information Devices and Systems I Fall 2018 Lecture Notes Note Introduction: Op-amps in Negative Feedback

Lecture 23 Date: Multi-port networks Impedance and Admittance Matrix Lossless and Reciprocal Networks

Introduction to Acoustics Exercises

A Nonlinear Dynamic S/H-ADC Device Model Based on a Modified Volterra Series: Identification Procedure and Commercial CAD Tool Implementation

This is an electronic reprint of the original article. This reprint may differ from the original in pagination and typographic detail.

MITOCW watch?v=jtj3v Rx7E

Permeance Based Modeling of Magnetic Hysteresis with Inclusion of Eddy Current Effect

I. Impedance of an R-L circuit.

EAS327 Environmental Instrumentation Mid-term 13 Feb,2003

This is an electronic reprint of the original article. This reprint may differ from the original in pagination and typographic detail.

Physics 364, Fall 2012, reading due your answers to by 11pm on Thursday

The Modeling and Equalization Technique of Nonlinear Wireless Channel

ES 272 Assignment #2. in,3

Thermal Modeling of Power Devices in a Surface Mount Configuration

Chapter 2 Direct Current Circuits

MECHANICAL ENGINEERING TECHNOLOGY ESSENTIALS FOR LABORATORY REPORTS

Preserving the LTI system topology in s- to z-plane transforms

ECE 3300 Standing Waves

Koivisto, Juha; Illa Tortos, Xavier; Rosti, Jari; Alava, Mikko Line Creep in Paper Peeling

Physics 248, Spring 2009 Lab 7: Capacitors and RC-Decay

Modal Analysis: What it is and is not Gerrit Visser

Proceedings of Meetings on Acoustics

Transients on Integrated Power System

Automatic Stabilization of an Unmodeled Dynamical System Final Report

This is an electronic reprint of the original article. This reprint may differ from the original in pagination and typographic detail.

The Impedance Matrix

Experiment 9 Equivalent Circuits

Lab 08 Capacitors 2. Figure 2 Series RC circuit with SPDT switch to charge and discharge capacitor.

A NONLINEAR DIGITAL MODEL OF THE EMS VCS3 VOLTAGE CONTROLLED FILTER

Harju, A.; Siljamäki, S.; Nieminen, Risto Two-electron quantum dot molecule: Composite particles and the spin phase diagram

Exploring Operations Involving Complex Numbers. (3 + 4x) (2 x) = 6 + ( 3x) + +

Notes for course EE1.1 Circuit Analysis TOPIC 10 2-PORT CIRCUITS

On Pulse Charging of Lead-Acid Batteries Cyril Smith, November 2010

Analysis of polyphonic audio using source-filter model and non-negative matrix factorization

Research Article Amplitude and Frequency Control: Stability of Limit Cycles in Phase-Shift and Twin-T Oscillators

LM34 - Precision Fahrenheit Temperature Sensor

Impedance and Admittance Parameters

Solutions to Problems in Chapter 5

4.4 Microstrip dipole

Selected paper. Consistent circuit technique for zero-sequence currents evaluation in interconnected single/three-phase power networks

(Refer Slide Time: 03:41)

PHY3128 / PHYM203 (Electronics / Instrumentation) Transmission Lines

Publication VI. Esa Ollila On the circularity of a complex random variable. IEEE Signal Processing Letters, volume 15, pages

Scattering Parameters

Tuovinen, Toni & Hinkkanen, Marko & Luomi, Jorma Modeling of Mutual Saturation in Induction Machines

Contents. PART I METHODS AND CONCEPTS 2. Transfer Function Approach Frequency Domain Representations... 42

TRANSMISSION LINES AND MATCHING

Harju, A.; Siljamäki, S.; Nieminen, Risto Wave function for quantum-dot ground states beyond the maximum-density droplet

Higher National Unit specification: general information

Transcription:

Powered by TCPDF (www.tcpdf.org) This is an electronic reprint of the original article. This reprint may differ from the original in pagination and typographic detail. Author(s): D'Angelo, Stefano Title: Wave-Digital Polarity and Current Inverters and Their Application to Virtual Analog Audio Processing Year: 2012 Version: Post print /Accepted author version Please cite the original version: S. D Angelo and V. Välimäki. Wave-Digital Polarity and Current Inverters and Their Application to Virtual Analog Audio Processing. In Proc. Intl. Conf. Acoustics, Speech, and Signal Process. (ICASSP 2012), pp. 469 472, Kyoto, Japan, March 2012. Note: 2012 IEEE. Reprinted, with permission, from S. D Angelo and V. Välimäki. Wave-Digital Polarity and Current Inverters and Their Application to Virtual Analog Audio Processing. In Proc. Intl. Conf. Acoustics, Speech, and Signal Process. (ICASSP 2012). March 2012. This publication is included in the electronic version of the article dissertation: D'Angelo, Stefano. Virtual Analog Modeling of Nonlinear Musical Circuits. Aalto University publication series DOCTORAL DISSERTATIONS, 158/2014. In reference to IEEE copyrighted material which is used with permission in this thesis, the IEEE does not endorse any of Aalto University's products or services. Internal or personal use of this material is permitted. If interested in reprinting/republishing IEEE copyrighted material for advertising or promotional purposes or for creating new collective works for resale or redistribution, please go to http://www.ieee.org/publications_standards/publications/rights/rights_link.html to learn how to obtain a License from RightsLink. All material supplied via Aaltodoc is protected by copyright and other intellectual property rights, and duplication or sale of all or part of any of the repository collections is not permitted, except that material may be duplicated by you for your research use or educational purposes in electronic or print form. You must obtain permission for any other use. Electronic or print copies may not be offered, whether for sale or otherwise to anyone who is not an authorised user.

WAVE-DIGITAL POLARITY AND CURRENT INVERTERS AND THEIR APPLICATION TO VIRTUAL ANALOG AUDIO PROCESSING Stefano D Angelo, Vesa Välimäki Aalto University, School of Electrical Engineering Department of Signal Processing and Acoustics P.O. Box 13000, FI-00076 AALTO, Espoo, Finland ABSTRACT Wave digital filters (WDFs) allow for efficient real-time simulation of classic analog circuitry by DSP. This paper introduces two new nonenergic two-port WDF adaptors that allow mixing wave digital subnetworks adopting different polarity and sign conventions and extends the definitions of absorbed instantaneous and steady-state pseudopower to the case in which the active sign convention is used. This new knowledge is applied to a WDF triode tube amplifier model and it is shown to result in a more faithful reproduction of the simulated system than the previous model. Index Terms Acoustic signal processing, amplifiers, circuit simulation, music, wave digital filters 1. INTRODUCTION Wave digital filters (WDFs) are an extensively used technique for simulating analog electronics by DSP in music and audio technology. They were first introduced by Fettweis in 1971 [1], while [2, 3, 4, 5] are more exhaustive resources on the topic. WDFs allow one to accurately and efficiently digitize a wide class of lumped physical systems into networks of interconnected and reusable DSP filters that operate on physically meaningful quantities and whose coefficients depend on observable parameters of such physical systems. The preservation of energy and hence the numerical stability of WDFs are often considered. However, this technique requires that all circuit elements are modeled assuming a given polarity and sign convention, thus leading to a situation in which elements and subcircuits that exhibit asymmetrical behavior may need to be modeled more than once. This paper solves this problem by introducing two twoport adaptors to interface wave digital subnetworks adopting different conventions. It then extends the definitions of absorbed instantaneous and steady-state pseudopower to the case in which the active sign convention is used and develops further considerations regarding the nature and use of the new adaptors. It also shows that these adaptors they are Thanks to CIMO Centre for International Mobility for funding. pseudopassive, pseudolossless and nonenergic. In the end the results of this investigation are applied to the WDF-based vacuum-tube amplifier simulator described in [6]. 2. WDF POLARITY AND CURRENT INVERTERS This section describes the wave decomposition which the WDF theory is based on, then it includes a couple of considerations regarding polarity and sign conventions in WDFs that justify the need for the specific adaptors introduced in its last part. 2.1. WDF wave decomposition WDF elements in a wave digital network are interconnected with each other via ports, each having one ingoing and one outgoing terminal and for which a port current I and a port voltage V can be defined. The WDF elements do not operate on the Kirchoff pair, but instead they use the wave variables a and b as defined by the travelling-wave formulation of lumped eletrical elements: [ a b ] = [ 1 R0 1 R 0 ] [ V I ], (1) where a is the incoming wave component, or incident wave, b is the outgoing wave component, or reflected wave, and R 0 is a port resistance parameter that relates Kirchoff variables via Ohm s law. Since the port resistance does not need to correspond to any physically meaningful quantity, it is used as an additional degree of freedom to simplify calculations. The original K-variables can be, then, obtained from the wave variables as follows: V = a + b 2, I = a b 2R 0. (2) 2.2. Reconsidering polarity and sign conventions Note that (1), by itself, does not impose restrictions on the directions of V and I, and thus there would be four different

valid combinations for each wave variable couple when modeling a WDF element (++, +, +, ). This ambiguity is solved by always adopting the passive sign convention and by choosing voltages to point to the positive direction, i.e., from the minus to the plus pole, as explicitly indicated in [2]. Such a rigid arrangement, however, implies that circuit elements exhibiting asymmetrical properties (e.g., polarization) have to be modeled once per each possible use case. This means up to 2 n models for an n-port WDF element. Furthermore, it might be desirable, in some nontrivial cases, to use the active sign convention for some ports, thus leading to up to 2 2n different models. 2.3. Gaining flexibility through new specific adaptors Given the considerations above, it is natural to think that a general solution might consist of defining new specific twoport adaptor elements that act as translators between wave digital subnetworks using different conventions. A generic two-port WDF adaptor is shown in Figure 1, in which and a 2, as well as b 1 and, have opposite directions. This implies that, given (2), the direction of voltages is the same on the two ends while the direction of currents is opposite (this can be easily verified by considering a null adaptor by which b 1 = a 2, = and R 02 = R 01 ). R 01 R 02 Fig. 1: Generic two-port WDF adaptor. First we consider polarity inversion: in this case we have V 1 = V 2 and I 1 = I 2, hence: { a1+b 1 2 = a2+b2 2 b 1 2R 01 = a2 b2 2R 02, thus solving for b 1 and : { b1 = a1(r01 R 02 )+2a 2R 01 R 01 +R 02 = a2(r02 R 01 )+2R 02. R 01 +R 02 In order to preserve computability properties of traditional WDFs, i.e., to avoid introducing instantaneous reflections, we have to choose R 02 = R 01, thus getting: b 1 = a 2, =, R 02 = R 01. (3) Following a completely analogous reasoning, we study sign convention change by examining the case in which V 1 = V 2 and I 1 = I 2, leading to: b 1 = a 2, =, R 02 = R 01, (4) and similarly for the other case (V 1 = V 2, I 1 = I 2 ): b 1 = a 2, =, R 02 = R 01. (5) It is possible to notice that (5) is, functionally, the combination of (3) and (4), thus we can just add two new twoport WDF adaptors to the current WDF formalism: a polarity inverter, corresponding to (3) and shown in Figure 2, and a current inverter, corresponding to (4) and shown in Figure 3. R 01 +/ R 02 = R 01 Fig. 2: WDF polarity inverter and its signal-flow diagram. R 01 I R 02 = R 01 Fig. 3: WDF current inverter and its signal-flow diagram. 3. FURTHER CONSIDERATIONS This section discusses the definitions of absorbed instantaneous and steady-state pseudopower of WDF elements when using different sign conventions, showing that the polarity and current inverters are pseudopassive, pseudolossless and nonenergic. Moreover, it carries out some important considerations on negative port resistances and on the usage of the newly introduced adaptors in wave digital networks. 3.1. Passivity, losslessness and nonenergicity Fettweis [2] defines the instantaneous pseudopower absorbed by an n-port WDF element at time instant t as: p(t) = n [ 2 aν (t) ν (t) ] G 0ν (6) where G 0ν is the port conductance at port ν, and the steadystate pseudopower absorbed by an n-port WDF element as: P = n ( A ν 2 B ν 2) G 0ν (7) where A ν and B ν are, respectively, the incident and reflected wave at port ν in an appropriate reference frequency domain whose complex frequency variable is referred to as ψ. The most common and appropriate choice for ψ is the bilinear transform of the z-variable. A WDF element is, then, said to be: pseudopassive (or, simply, passive) if P 0 for Re(ψ) 0, pseudolossless (or, simply, lossless) if P = 0 for Re(ψ) = 0, nonenergic if P = 0 for all ψ. If the WDF element is delay-free, and hence

stateless, the requirements for pseudopassivity and nonenergicity can be replaced by the corresponding requirements that for all t we have p(t) 0 and p(t) = 0, respectively. In the case of our polarity and current inverters, we have that a ν 2 (t) = b ν 2 (t) for all t, hence p(t) = 0, that means that they are pseudopassive, pseudolossless and nonenergic. 3.2. New absorbed pseudopower definitions In general, it is clear that absorbed pseudopowers are intrinsic to WDF elements, but their definitions assume the use of the passive sign convention. Indeed, the signs of a ν and b ν have no influence on (6) and (7), contrary to the sign of G 0ν. We, therefore, hereby extend such definitions so that they are irrespective of the chosen sign convention: ˆp(t) = ˆP = n [ k 2 ν aν (t) ν (t) ] G 0ν (8) n k ν ( A ν 2 B ν 2) G 0ν (9) where k ν = 1 if the passive sign convention is used at port ν, otherwise. 3.3. On negative port resistances While it is obviously required that R 0 0 for port currents to be defined, the WDF theory generally also assumes that R 0 > 0, which at first seems to be in sharp contrast with the port resistance sign change carried out by the current inverter adaptor element. The rationale behind such requirement, as explained in [2], is that this condition has to be met for basic WDF elements to be passive. Yet, we have just seen how the definitions of instantaneous and steady-state absorbed pseudopower can be extended to allow the usage of the active sign convention by adding a sign coefficient (i.e., k ν ). It is immediate to check that, when using the active sign convention, for basic WDF elements to stay passive it is required that R 0 < 0, instead. This means that the sign of R 0 is closely related to the sign convention used, and it can be safely assumed to be strictly positive for ports that use the passive sign convention and likewise to be strictly negative for ports that use the active sign convention. 3.4. Usage within wave digital networks Note that (3) and (4) are not dependent on any assumption w.r.t. polarity or sign conventions on any side, but they do only ensure a certain relationship between voltages and currents on the two sides. This consideration, together with the nonenergicity of our polarity and current inverters, allows them to be inserted between any couple of WDF ports, any number of times and in any place of a wave digital subnetwork, as long as consistency is kept. It should be clear that the two subnetworks at each end of such adaptors operate as if the subnetwork at the other end used the same conventions that are used locally, but, since the evaluation of voltages and currents is always to be performed locally, the local conventions should be kept well in mind when extracting physically observable quantities from the wave variables. 4. CASE STUDY: TRIODE TUBE AMPLIFIER MODEL This section describes a nontrivial scenario in which the polarity inverter adaptor is used to properly take into account polarity issues without remodeling part of the circuit. In particular, it examines the triode tube amplifier shown as a schematic diagram in Figure 4 and more thoroughly discussed in [6]. V g R g I g I k I p R o R k C k C o R p Fig. 4: Triode amplifier stage with voltage and current annotations. We assume that the tube model employed does not consider the grid current (i.e., I g = 0) and that changes slowly compared to V g, so that V gk (n + 1) V g (n + 1) (n). Both these approximations are also enforced in the paper by Karjalainen and Pakarinen [6]. This allows us to model the whole circuit as the two separate circuits shown in Figure 5: an input circuit depicted in Figure 5a and a tube circuit in Figure 5b. The triode element is then considered as a nonlinear resistor placed between the plate and the cathode terminals (N.L. in Figure 5b) and is controlled by V gk, where V g is computed from the input circuit and is extracted from the tube circuit itself. I i (a) Input circuit I pk I k Z k Vo V pk N.L. E Z p Ip (b) Tube circuit Fig. 5: Resulting circuits with voltage and current annotations by assuming I g = 0. Traditional WDF series adaptors are derived by taking the V p V p

current and the voltages in the same direction for all involved elements, but this is not the case for the tube circuit. Hence, we will use the polarity inverter adaptor to interface the WDF model of the Z p impedance to the WDF series adaptor that connects it with N.L. and Z k in the resulting WDF-based implementation shown in Figure 6. z Voltage (V) 100 50 0-50 SPICE simulation New WDF model Old WDF model V g + N.L. V gk +/ C k R k -100-150 0 0.25 0.5 0.75 1 Time (ms) E/R p C o R o V o Fig. 6: Resulting WDF-based implementation. Remembering that the computation of voltages from wave variables using (2) is affected by the local conventions used, it is clear that the voltage across is V g, while the voltage across R k corresponds to. The voltage across R o is actually V o since we have the same situation as that in Figure 5b for the neighboring series adaptor. We could, otherwise, use two more polarity inverters for and R o. The traditional alternative to the discussed approach would have been to remodel one part of the tube circuit to match the conventions used in the other. Figure 7 shows how the new WDF model produces more accurate results than the one described in the original paper by confronting both with a SPICE simulation output. The introduced polarity inverter element corrects the matching of polarities between Z p and the rest of the WDF tree. While we can show the improvement with a sine wave input in this case, in general it is advisable to also use test input signals that have a strongly asymmetrical behavior (e.g., pulse waves with nonzero offset and duty cycle other than 50%), since multiple polarity-related mistakes can sometimes compensate each other with symmetrically behaving inputs. 5. SUMMARY This paper has introduced two new nonenergic two-port WDF adaptor elements to the current WDF formalism that allow interfacing wave digital subnetworks using different polarity and sign conventions. Such addition does also remove the need for developing specific models of circuit elements exhibiting asymmetrical behavior for each polarity and sign convention couple considered at each port. Then, it extended the definitions of instantaneous and steady-state pseudopower of WDF elements to the case in which the active sign convention is used and correlates negative port resistances to the active sign convention, thus solving Fig. 7: Output voltage when using a sine wave input (1 V amplitude, 1 khz frequency). Note that the output of the new WDF model and that of the SPICE simulation are on top of each other. an apparent contradiction that may have arisen w.r.t. earlier works. Finally, the newly introduced polarity inverter element was used in a concrete scenario to correct the matching of polarities in the WDF model of the triode tube amplifier stage discussed in [6]. 6. ACKNOWLEDGMENTS We acknowledge fruitful discussions with Dr. Jyri Pakarinen. 7. REFERENCES [1] A. Fettweis, Digital filters related to classical structures, AEU: Archive für Elektronik und Übertragungstechnik, vol. 25, pp. 78 89, Feb. 1971. [2] A. Fettweis, Wave digital filters: Theory and practice, Proc. IEEE, vol. 74, no. 2, pp. 270 327, Feb. 1986. [3] J.O. Smith, Wave digital filters, in Physical Audio Signal Processing. http://ccrma.stanford. edu/ jos/pasp/, accessed 12/09/2011, online book. [4] V. Välimäki, J. Pakarinen, C. Erkut, and M. Karjalainen, Discrete-time modelling of musical instruments, Reports on Progress in Physics, vol. 69, no. 1, pp. 1 78, Jan. 2006. [5] G. De Sanctis and A. Sarti, Virtual analog modeling in the wave-digital domain, Trans. Audio, Speech and Lang. Process., vol. 18, pp. 715 727, May 2010. [6] M. Karjalainen and J. Pakarinen, Wave digital simulation of a vacuum-tube amplifier, in Proc. Intl. Conf. on Acoustics, Speech, and Signal Process., Tolouse, France, May 2006, vol. 5, pp. 153 156.