# Andy's Site of Audio Design Topics

## Introduction

This site has articles related to audio electronics design, acoustics and electroacoustics. Here you will also find the Multi-Sub Optimizer (MSO) freeware, which is used to optimize the performance of an audio system using multiple subwoofers.

### How to Get the Best Display of Equations When Reading this Site

This site uses MathML for displaying equations. In order to get compatibility with as many browser types as possible, MathJax is used. MathJax relies on JavaScript for equation rendering, and is much slower than using a browser having native MathML support. Even browsers with native MathML support such as Firefox do not use their native MathML capability by default when displaying MathJax content. With Firefox, you can get faster equation display by right-clicking on any equation and choosing Math Setttings, Math Renderer, MathML. A better solution for Firefox is to install the MathJax Native MathML add-on, which forces native MathML rendering for all sites using MathJax. When using this add-on, you should disable two of its options. Both Disable MathJax mml2jax preprocessor and Fix MathJax NativeMML bugs should be *unchecked*. This avoids strange error messages that appear on some web sites. For more information, see this discussion. If you use the Firefox native MathML support, follow the instructions on the Firefox MathML fonts page to get the best display quality. These instructions change from time to time, so it's a good idea to check them periodically to make sure your fonts are up to date.

## Topics Discussed

### 1. Multi-Sub Optimizer

Multi-Sub Optimizer (MSO) is a new freeware you can use to optimize multiple subwoofers in an audio system. MSO works by optimizing the frequency response of multiple-subwoofer systems at multiple listening positions using individual EQ for each subwoofer. It borrows some ideas from Earl Geddes and adds some others, including automated optimization of the filter parameters using global optimization technology.

### 2. Vented-Box Loudspeaker Design Including Conventional and Assisted Alignments of Arbitrary Order and Box Quality Factor

This article covers three topics in vented-box design. The first is a new algorithm for design with a given driver that allows any box quality factor to be specified. This eliminates the lookup procedure implied by the alignment charts and tables of the classic literature on the subject, replacing it with an algorithm that solves a single nonlinear equation in one unknown using conventional root-finding techniques. Using this procedure, one is no longer restricted to the discrete set of box quality factors imposed by the classic techniques.

The second is the extension of these techniques to assisted alignments of arbitrary order n. Thiele's notion of *alignment class* is extended to higher-order systems that require more than one class number to fully describe how the system transfer function is partitioned between the loudspeaker and external filter.

Finally, high-pass filtering techniques for reducing cone excursion below the box tuning frequency are explored. Some performance comparisons are made between assisted alignments and systems designed in the normal way with a high-pass filter added after the fact.

### 3. Mid-Bass Modules

An idea for mid-bass module (MBM) integration with main speakers using a Linkwitz-Riley low-pass filter for the MBM and a specially derived shelving filter for the mains such that the nominal summation of the system outputs adds up to an all-pass filter in an analogous way to the Linkwitz-Riley low-pass and high-pass filters.

### 4. Using LTspice as a Schematic Capture Tool for FreePCB

The LTspice - FreePCB article shows how to use these two freeware programs together to design printed circuit boards. Using netlist export in LTspice, a netlist is created and imported into FreePCB. The default behavior of LTspice when assigning pin numbers to devices in the exported netlist often results in incorrect pin numbering. This in turn would result in an incorrect circuit board design if nothing were done to correct the problem. This article introduces the concept of "pin-swapping subcircuits" for SPICE. These pin-swapping subcircuits can be used together with user-created LTspice symbol files to fix the LTspice pin numbering problem. Once this is done, LTspice and FreePCB become a powerful and free set of tools for creating PCB designs from a working simulation.

### 5. Phono Preamp Design With Active Equalization

This article covers the design of a simple and popular active RIAA phono equalization circuit. The equations developed can also be used for the design of an inverse RIAA network used for lab testing of phono preamps. Emphasis is placed on a technique for allowing the designer to explicitly specify the time constant associated with what's normally considered an undesired zero of the circuit's transfer function. This zero causes a break frequency that's above the audio band in a proper design. The idea could be used to implement the controversial "Neumann time constant", or the frequency of the zero could be chosen so as to force the capacitor ratio to correspond to actual standard values. Methods for achieving the best possible equalization accuracy are presented. The impact of finite op-amp gain-bandwidth product and DC open-loop gain on RIAA equalization errors is quantified. A SPICE technique for isolating the effects of op-amp-induced errors from the total equalization errors is shown. A complete derivation of the design equations used is provided in an appendix. This derivation uses a Foster expansion approach not covered elsewhere in the literature.

### 6. Improved SPICE Models for MJL3281A and MJL1302A

These bipolar power transistors are very popular as output stage transistors for audio power amplifiers. The SPICE models currently available from ON Semiconductor for these devices do not yield simulated performance that matches the datasheet measurements very well for some parameters. This leads to misleading simulation results in many cases. At a typical quiescent current one would use for a power amplifier output stage design, the SPICE model for the MJL3281A shows a simulated f_{T} that's low by a factor of six. The MJL1302A model shows a simulated β that's low by a factor of two to three, depending on collector current. The article shows graphs of the discrepancies between simulated and measured data. New models are developed in the article and can be downloaded here. Detailed information of the model extraction process is presented. Graphs of the simulated f_{T}, β and other parameters for the newly-developed model are shown, demonstrating improved correlation with measured device parameters.

#### A Note About SPICE

The power transistor SPICE article borrows heavily from the book *Semiconductor Device Modeling with SPICE* by Massobrio and Antognetti. That text contains a wealth of information about the equations used internally by SPICE to simulate device behavior. Such information is probably of most use to those writing simulator software or support tools. But there is also much insight to be gained by the end user in studying some of the SPICE modeling equations. Much of SPICE bipolar transistor modeling is related directly to device physics. But in its attempt to provide the most detailed information possible to software developers, Massobrio and Antognetti miss some opportunities to provide insight to the end user. I found that reading the text gave me a fuller understanding of the Early effect and the variation of f_{T} with collector current, but not until I had filled in some missing pieces. In the section of this site that describes how the model parameters were extracted, I have tried to pass on what I've learned about these two subjects to the reader. Looking at the Early effect from the perspective of the Gummel plots is especially thought-provoking. I have also attempted to fill in some missing information in the study of f_{T} behavior vs. collector current by first relating the behavior of h_{FE} vs. frequency to the hybrid-π model parameters. Then the hybrid-π model parameters are connected to the SPICE BJT model parameters to complete the picture.