AU2012202127A1 - System and method for digital signal processing - Google Patents

System and method for digital signal processing Download PDF

Info

Publication number
AU2012202127A1
AU2012202127A1 AU2012202127A AU2012202127A AU2012202127A1 AU 2012202127 A1 AU2012202127 A1 AU 2012202127A1 AU 2012202127 A AU2012202127 A AU 2012202127A AU 2012202127 A AU2012202127 A AU 2012202127A AU 2012202127 A1 AU2012202127 A1 AU 2012202127A1
Authority
AU
Australia
Prior art keywords
filter
shelf filter
signal
audio signal
filters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
AU2012202127A
Other versions
AU2012202127B2 (en
Inventor
Anthony Bongiovi
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bongiovi Acoustics LLC
Original Assignee
Bongiovi Acoustics LLC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from AU2007325096A external-priority patent/AU2007325096B2/en
Application filed by Bongiovi Acoustics LLC filed Critical Bongiovi Acoustics LLC
Priority to AU2012202127A priority Critical patent/AU2012202127B2/en
Publication of AU2012202127A1 publication Critical patent/AU2012202127A1/en
Application granted granted Critical
Publication of AU2012202127B2 publication Critical patent/AU2012202127B2/en
Assigned to BONGIOVI ACOUSTICS LLC reassignment BONGIOVI ACOUSTICS LLC Request for Assignment Assignors: BONGIOVI, ANTHONY
Ceased legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Tone Control, Compression And Expansion, Limiting Amplitude (AREA)

Abstract

OF THE INVENTION The present invention provides for methods and systems for digitally processing an audio signal. Specifically, the present invention provides for a 5 headliner speaker system that is configured to digitally process an audio signal in a manner such that studio-quality sound that can be reproduced. WO 2008/067454 1/2PCTIUS2007/085919 ol w 0u - '.4 cis 0)

Description

AUSTRALIA Regulation 3.2 Patents Act 1990 Complete Specification Standard Patent DIVISIONAL APPLICANT: Anthony Bongiovi Invention Title: SYSTEM AND METHOD FOR DIGITAL SIGNAL PROCESSING The following statement is a full description of this invention, including the best method of performing it known to me: System and Method for Digital Signal Processing CROSS-REFERENCE TO RELATED APPLICATIONS 5 This application claims priority to U.S. Provisional Application No. 60/861,711 filed November 30, 2006, and is a continuation-in-part of U.S. Application No. 11/703,216, filed February 7, 2007, which claims priority to U.S. Provisional Application No. 60/765,722, filed February 7, 2006. Each of the above applications is incorporated by reference herein in its entirety. 10 FIELD OF THE INVENTION The present invention provides for methods and systems for digitally processing an audio signal. Specifically, some embodiments relate to digitally processing an audio signal in a manner such that studio-quality sound that can be reproduced across the 15 entire spectrum of audio devices. BACKGROUND OF THE INVENTION Historically, studio-quality sound, which can best be described as the full reproduction of the complete range of audio frequencies that are utilized during the 20 studio recording process, has only been able to be achieved, appropriately, in audio recording studios. Studio-quality sound is characterized by the level of clarity and brightness which is attained only when the upper-mid frequency ranges are effectively manipulated and reproduced. While the technical underpinnings of studio-quality sound can be fully appreciated only by experienced record producers, the average 25 listener can easily hear the difference that studio-quality sound makes. While various attempts have been made to reproduce studio-quality sound outside of the recording studio, those attempts have come at tremendous expense (usually resulting from advanced speaker design, costly hardware, and increased power amplification) and have achieved only mixed results. Thus, there exists a need for a 30 process whereby studio-quality sound can be reproduced outside of the studio with consistent, high quality, results at a low cost. There exists a further need for audio devices embodying such a process, as well as computer chips embodying such a -1process that may be embedded within audio devices. There also exists a need for the ability to produce studio-quality sound through inexpensive speakers. Further, the design of audio systems for vehicles involves the consideration of many different factors. The audio system designer selects the position and number of 5 speakers in the vehicle. The desired frequency response of each speaker must also be determined. For example, the desired frequency response of a speaker that is located on the instrument panel may be different than the desired frequency response of a speaker that is located on the lower portion of the rear door panel. The audio system designer must also consider how equipment variations impact the 10 audio system. For example, an audio system in a convertible may not sound as good as the same audio system in the same model vehicle that is a hard top. The audio system options for the vehicle may also vary significantly. One audio option for the vehicle may include a basic 4-speaker system with 40 watts amplification per channel while another audio option may include a 12-speaker system with 200 watts 15 amplification per channel. The audio system designer must consider all of these configurations when designing the audio system for the vehicle. For these reasons, the design of audio systems is time consuming and costly. The audio system designers must also have a relatively extensive background in signal processing and equalization. 20 Given those considerations, in order to achieve something approaching studio-quality sound in a vehicle historically one would have required a considerable outlay of money, including expensive upgrades of the factory-installed speakers. As such, there is a need for a system that can reproduce studio-quality sound in a vehicle without having to make such expensive outlays. 25 SUMMARY OF THE INVENTION The present invention meets the existing needs described above by providing for a method of digitally processing an audio signal in a manner such that studio-quality sound that can be reproduced across the entire spectrum of audio devices. The 30 present invention also provides for a computer chip that can digitally processing an audio signal is such a manner, and provides for audio devices that comprise such a chip. -2- The present invention further meets the above stated needs by allowing inexpensive speakers to be used in the reproduction of studio-quality sound. Furthermore, the present invention meets the existing needs described above by providing for a mobile audio device that can be used in a vehicle to reproduce studio-quality sound using the 5 vehicle's existing speaker system by digitally manipulating audio signals. Indeed, even the vehicle's factory-installed speakers can be used to achieve studio-quality sound using the present invention. In one embodiment, the present invention provides for a method comprising the steps of inputting an audio signal, adjusting the gain of that audio signal a first time, 10 processing that signal with a first low shelf filter, processing that signal with a first high shelf filter, processing that signal with a first compressor, processing that signal with a second low shelf filter, processing that signal with a second high shelf filter, processing that signal with a graphic equalizer, processing that signal with a second compressor, and adjusting the gain of that audio signal a second time. In this 15 embodiment, the audio signal is manipulated such that studio-quality sound is produced. Further, this embodiment compensates for any inherent volume differences that may exist between audio sources or program material, and produces a constant output level of rich, full sound. This embodiment also allows the studio-quality sound to be reproduced in high-noise 20 environments, such as moving automobiles. Some embodiments of the present invention allow studio-quality sound to be reproduced in any environment. This includes environments that are well designed with respect to acoustics, such as, without limitation, a concert hall. This also includes environments that are poorly designed with respect to acoustics, such as, without limitation, a traditional living 25 room, the interior of vehicles and the like. Further, some embodiments of the present invention allow the reproduction of studio-quality sound irrespective of the quality of the electronic components and speakers used in association with the present invention. Thus, the present invention can be used to reproduce studio-quality sound with both top-of-the-line and bottom-of-the-line electronics and speakers, and with everything 30 in between. In some embodiments, this embodiment may be used for playing music, movies, or video games in high-noise environments such as, without limitation, an automobile, airplane, boat, club, theatre, amusement park, or shopping center. Furthermore, in -3some embodiments, the present invention seeks to improve sound presentation by processing an audio signal outside the efficiency range of both the human car and audio transducers which is between approximately 600 Hz and approximately 1,000 Hz. By processing audio outside this range, a fuller and broader presentation may be 5 obtained. In some embodiments, the bass portion of the audio signal may be reduced before compression and enhanced after compression, thus ensuring that the sound presented to the speakers has a spectrum rich in bass tones and free of the muffling effects encountered with conventional compression. Furthermore, in some embodiments, as 10 the dynamic range of the audio signal has been reduced by compression, the resulting output may be presented within a limited volume range. For example, the present invention may comfortably present studio-quality sound in a high-noise environment with an 80 dB noise floor and a 110 dB sound threshold. In some embodiments, the method specified above may be combined with over digital 15 signal processing methods that are perform before the above-recited method, after the above-recited method, or intermittently with the above-recited method. In another specific embodiment, the present invention provides for a computer chip that may perform the method specified above. In one embodiment, the computer chip may be a digital signal processor, or DSP. In other embodiments, the computer chip 20 may be any processor capable of performing the above-stated method, such as, without limitation, a computer, computer software, an electrical circuit, an electrical chip programmed to perform these steps, or any other means to perform the method described. In another embodiment, the present invention provides for an audio device that 25 comprises such a computer chip. The audio device may comprise, for example and without limitation: a radio; a CD player; a tape player; an MP3 player; a cell phone; a television; a computer; a public address system; a game station such as a Playstation 3 (Sony Corporation - Tokyo, Japan), an X-Box 360 (Microsoft Corporation Redmond, Washington), or a Nintendo Wii (Nintendo Co., Ltd. - Kyoto, Japan); a 30 home theater system; a DVD player; a video cassette player; or a Blu-Ray player. In such an embodiment, the chip of the present invention may be delivered the audio signal after it passes through the source selector and before it reaches the volume -4control. Specifically, in some embodiments the chip of the present invention, located in the audio device, processes audio signals from one or more sources including, without limitation, radios, CD players, tape players, DVD players, and the like. The output of the chip of the present invention may drive other signal processing modules 5 or speakers, in which case signal amplification is often employed. Specifically, in one embodiment, the present invention provides for a mobile audio device that comprises such a computer chip. Such a mobile audio device may be placed in an automobile, and may comprise, for example and without limitation, a radio, a CD player, a tape player, an MP3 player, a DVD player, or a video cassette 10 player. In this embodiment, the mobile audio device of the present invention may be specifically tuned to each vehicle it may be used in to obtain optimum performance and to account for unique acoustic properties in each vehicle such as speaker placement, passenger compartment design, and background noise. Also in this 15 embodiment, the mobile audio device of the present invention may provide precision tuning for all 4 independently controlled channels. Also in this embodiment, the mobile audio device of the present invention may deliver about 200 watts of power. Also in this embodiment, the mobile audio device of the present invention may use the vehicle's existing (sometimes factory-installed) speaker system to produce studio 20 quality sound. Also in this embodiment, the mobile audio device of the present invention may comprise a USB port to allow songs in standard digital formats to be played. Also in this embodiment, the mobile audio device of the present invention may comprise an adapter for use with satellite radio. Also in this embodiment, the mobile audio device of the present invention may comprise an adaptor for use with 25 existing digital audio playback devices such as, without limitation, MP3 players. Also in this embodiment, the mobile audio device of the present invention may comprise a remote control. Also in this embodiment, the mobile audio device of the present invention may comprise a detachable faceplate. Other features and aspects of the invention will become apparent from the following 30 detailed description, taken in conjunction with the accompanying drawings, which illustrate, by way of example, the features in accordance with embodiments of the invention. The summary is not intended to limit the scope of the invention, which is defined solely by the claims attached hereto. -5- BRIEF DESCRIPTION OF THE DRAWINGS The present invention, in accordance with one or more various embodiments, is described in detail with reference to the following figures. The drawings are provided 5 for purposes of illustration only and merely depict typical or example embodiments of the invention. These drawings are provided to facilitate the reader's understanding of the invention and shall not be considered limiting of the breadth, scope, or applicability of the invention. It should be noted that for clarity and ease of illustration these drawings are not necessarily made to scale. 10 FIG. 1 shows a block diagram of one embodiment of the digital signal processing method of the present invention. FIG. 2 shows the effect of a low-shelf filter used in one embodiment of the digital signal processing method of the present invention. FIG. 3 shows how a low-shelf filter can be created using high-pass and low-pass 15 filters. FIG. 4 shows the effect of a high-shelf filter used in one embodiment of the digital signal processing method of the present invention. FIG. 5 shows the frequency response of a bell filter used in one embodiment of the digital signal processing method of the present invention. 20 FIG. 6 shows a block diagram of one embodiment of a graphic equalizer used in one embodiment of the digital signal processing method of the present invention. FIG. 7 shows a block diagram showing how a filter can be constructed using the Mitra-Regalia realization. FIG. 8 shows the effect of magnitude-complementary low-shelf filters that may be 25 used in one embodiment of the digital signal processing method of the present invention. FIG. 9 shows a block diagram of an implementation of a magnitude-complementary low-shelf filter that may be used in one embodiment of the digital signal processing method of the present invention. -6- FIG. 10 shows the static transfer characteristic (the relationship between output and input levels) of a compressor used in one embodiment of the digital signal processing method of the present invention. FIG. 11 shows a block diagram of a direct form type I implementation of second 5 order transfer function used in one embodiment of the digital signal processing method of the present invention. FIG. 12 shows a block diagram of a direct form type 1 implementation of second order transfer function used in one embodiment of the digital signal processing method of the present invention. 10 The figures are not intended to be exhaustive or to limit the invention to the precise form disclosed. It should be understood that the invention can be practiced with modification and alteration, and that the invention be limited only by the claims and the equivalents thereof. 15 DETAILED DESCRIPTION It is to be understood that the present invention is not limited to the particular methodology, compounds, materials, manufacturing techniques, uses, and applications described herein, as these may vary. It is also to be understood that the terminology used herein is used for the purpose of describing particular embodiments 20 only, and is not intended to limit the scope of the present invention. It must be noted that as used herein and in the appended embodiments, the singular forms "a," "an, and "the" include the plural reference unless the context clearly dictates otherwise. Thus, for example, a reference to "an audio device" is a reference to one or more audio devices and includes equivalents thereof known to those skilled in the art. 25 Similarly, for another example, a reference to "a step" or "a means" is a reference to one or more steps or means and may include sub-steps and subservient means. All conjunctions used are to be understood in the most inclusive sense possible. Thus, the word "or" should be understood as having the definition of a logical "or" rather than that of a logical "exclusive or" unless the context clearly necessitates otherwise. 30 Language that may be construed to express approximation should be so understood unless the context clearly dictates otherwise. -7- Unless defined otherwise, all technical and scientific terms used herein have the same meanings as commonly understood by one of ordinary skill in the art to which this invention belongs. Preferred methods, techniques, devices, and materials are described, although any methods, techniques, devices, or materials similar or 5 equivalent to those described herein may be used in the practice or testing of the present invention. Structures described herein are to be understood also to refer to functional equivalents of such structures. 1.0 Overview First, some background on linear time-invarient systems is helpful. A linear, time 10 invariant (LTI) discrete-time filter of order N with input x[k] and output y[k] is described by the following difference equation: ylk| = box[k]+bi x[k --- +b.x[k-- N|I+aiy[k 1| +agy[k - 2|+. -+ a.y ylk -NI where the coefficients {bO, b1, . . . , bN, al, a2, . . . , aN} are chosen so that the filter has the desired characteristics (where the term desired can refer to time-domain 15 behavior or frequency domain behavior). The difference equation above can be excited by an impulse function, 6[k], whose value is given by 1. k=O When the signal 6 [k] is applied to the system described by the above difference 20 equation, the result is known as the impulse response, h[k]. It is a well-known result from system theory that the impulse response h[k] alone completely characterizes the behavior of a LTI discrete-time system for any input signal. That is, if h[k] is known, the output y[k] for an input signal x[k] can be obtained by an operation known as convolution. Formally, given h[k] and x[k], the response y[k] can be computed as y~k] J= b 1[njir[Ic - n] 25 Some background on the z-transform is also helpful. The relationship between the time-domain and the frequency-domain is given by a formula known as the z -8transform. The z-transform of a system described by the impulse response h[k] can be defined as the function H(z) where H) h[kZ and z is a complex variable with both real and imaginary parts. If the complex 5 variable is restricted to the unit circle in the complex plane (i.e., the region described by the relationship [zl = 1), what results is a complex variable that can be described in radial form as z= where 0 <K 2- ax j = V-I Some background on the discrete-time fourier transform is also instructive. With z 10 described in radial form, the restriction of the z-transform to the unit circle is known as the discrete-time Fourier transform (DTFT) and is given by Of particular interest is how the system behaves when it is excited by a sinusoid of a given frequency. One of the most significant results from the theory of LTI systems is 15 that sinusoids are eigenfunctions of such systems. This means that the steady-state response of an LTI system to a sinusoid sin(OOk) is also a sinusoid of the same frequency 0 0, differing from the input only in amplitude and phase. In fact, the steady-state output, yss[k] of the LTI system when driven by and input x[k] = sin(0 Ok) is given by y,.[ kI = A si(Ook + tOc) 20 where A= IH(o)a -9and S=a) Finally, some background on frequency response is needed. The equations above are significant because indicate that the steady-state response of an LTI system when 5 driven by a sinusoid is a sinusoid of the same frequency, scaled by the magnitude of the DTFT at that frequency and offset in time by the phase of the DTFT at that frequency. For the purposes of the present invention, what is of concern is the amplitude of the steady state response, and that the DTFT provides us with the relative magnitude of output-to-input when the LTI system is driven by a sinusoid. 10 Because it is well-known that any input signal may be expressed as a linear combination of sinusoids (the Fourier decomposition theorem), the DTFT can give the response for arbitrary input signals. Qualitatively, the DTFT shows how the system responds to a range of input frequencies, with the plot of the magnitude of the DTFT giving a meaningful measure of how much signal of a given frequency will appear at 15 the system's output. For this reason, the DTFT is commonly known as the system's frequency response. 2.0 Digital Signal Processing FIG. 1 illustrates an example digital signal process flow of a method 100 according to one embodiment of the present invention. Referring now to FIG. 1, method 100 20 includes the following steps: input gain adjustment 101, first low shelf filter 102, first high shelf filter 103, first compressor 104, second low shelf filter 105, second high shelf filter 106, graphic equalizer 107, second compressor 108, and output gain adjustment 109. In one embodiment, digital signal processing method 100 may take as input audio 25 signal 110, perform steps 101-109, and provide output audio signal 111 as output. In one embodiment, digital signal processing method 100 is executable on a computer chip, such as, without limitation, a digital signal processor, or DSP. In one embodiment, such a chip may be one part of a larger audio device, such as, without limitation, a radio, MP3 player, game station, cell phone, television, computer, or 30 public address system. In one such embodiment, digital signal processing method 100 may be performed on the audio signal before it is outputted from the audio device. In one such embodiment, digital signal processing method 100 may be performed on the -10audio signal after it has passed through the source selector, but before it passes through the volume control. In one embodiment, steps 101-109 may be completed in numerical order, though they may be completed in any other order. In one embodiment, steps 10 1-109 may 5 exclusively be performed, though in other embodiments, other steps may be performed as well. In one embodiment, each of steps 101-109 may be performed, though in other embodiments, one or more of the steps may be skipped. In one embodiment, input gain adjustment 101 provides a desired amount of gain in order to bring input audio signal 110 to a level that will prevent digital overflow at 10 subsequent internal points in digital signal processing method 100. In one embodiment, each of the low-shelf filters 102, 105 is a filter that has a nominal gain of 0 dB for all frequencies above a certain frequency termed the corner frequency. For frequencies below the corner frequency, the low-shelving filter has a gain of G dB, depending on whether the low-shelving filter is in boost or cut mode, 15 respectively. This is shown in FIG. 2. FIG. 2 illustrates the effect of a low-shelf filter being implemented by one embodiment of the present invention. Referring now to FIG. 2, the purpose of a low shelving filter is to leave all of the frequencies above the corner frequency unaltered, while boosting or cutting all frequencies below the corner frequency by a fixed 20 amount, G dB. Also note that the 0 dB point is slightly higher than the desired 1000 Hz. It is standard to specify a low-shelving filter in cut mode to have a response that is at -3 dB at the corner frequency, whereas a low-shelving filter in boost mode is specified such that the response at the corner frequency is at G - 3 dB - namely, 3 dB down from maximum boost. Indeed, all of the textbook formulae for creating shelving 25 filters lead to such responses. This leads to a certain amount of asymmetry, where for almost all values of boost or cut G, the cut and boost low-shelving filters are not the mirror images of one another. This is something that needed to be address by the present invention, and required an innovative approach to the filters' implementations. Ignoring for now the asymmetry, the standard method for creating a low-shelving 30 filter is as the weighted sum of highpass and lowpass filters. For example, let's consider the case of a low-shelving filter in cut mode with a gain of -G dB and a corner frequency of 1000 Hz. FIG. 3 shows a highpass filter with a 1000 cutoff -11frequency and a lowpass filter with a cutoff frequency of 1000 iz, scaled by -G dB. The aggregate effect of these two filters applied in series looks like the low-shelving filter in FIG. 2. In practice, there are some limitations on the steepness of the transition from no boost or cut to G dB of boost or cut. FIG. 3 illustrates this 5 limitation, with the corner frequency shown at 1000 Hz and the desired G dB of boost or cut not being achieved until a particular frequency below 1000 Hz. It should be noted that all of the shelving filters in the present invention are first-order shelving filters, which means they can usually be represented by a first-order rational transfer function: H(z) = ~+~ 1 + ai fz 10 In some embodiments, each of the high-shelf filters 103, 106 is nothing more than the mirror image of a low-shelving filter. That is, all frequencies below the corner frequency are left unmodified, whereas the frequencies above the corner frequency are boosted or cut by G dB. The same caveats regarding steepness and asymmetry 15 apply to the high-shelving filter. FIG. 4 illustrates the effect of a high-shelf filter implemented by an embodiment of the present invention. Referring now to FIG. 4, a 1000 Hz high-shelving filter is shown. FIG. 5 illustrates an example frequency response of a bell filter implemented by method 100 according to one embodiment of the present invention. As shown in FIG. 20 5, each of the second order filters achieves a bell-shaped boost or cut at a fixed centerfrequency, with FI(z) centered at 30 Hz, F1 1(z) centered at 16000 Hz, and the other filters in between centered at roughly one-octave intervals. Referring to FIG. 5, a bell-shaped filter is shown centered at 1000 Hz. The filter has a nominal gain of 0 dB for frequencies above and below the center frequency, 1000 Hz, a gain of -G dB at 25 1000 Hz, and a bell-shaped response in the region around 1000 Hz. The shape of the filter is characterized by a single parameter: the quality factor, Q. The quality factor is defined as the ratio of the filter's center frequency to its 3-dB bandwidth, B, where the 3-dB bandwidth is illustrated as in the figure: the difference in Hz between the two frequencies at which the filter's response crosses the -3 dB 30 point. -12- FIG. 6 illustrates an example graphic equalizer block 600 according to one embodiment of the present invention. Referring now to FIG. 6, graphic equalizer 600 consists of a cascaded bank of eleven second-order filters, Fi(z), F 2 (z),...,Fji(z). In one embodiment, graphic equalizer 107 (as shown in FIG. 1) is implemented as 5 graphic equalizer 600. Each of the eleven second-order filters in the present invention can be computed from formulas that resemble this one: b1 + h1Z + 1A. Using such an equation results in one problem: each of the five coefficients above, 10 {bo, bi, b 2 , a,, a 2 } depends directly on the quality factor, Q, and the gain, G. This means that for the filter to be tunable, that is, to have variable Q and G, all five coefficients must be recomputed in real-time. This can be problematic, as such calculations could easily consume the memory available to perform graphic equalizer 107 and create problems of excessive delay or fault, which is unacceptable. This 15 problem can be avoided by utilizing the Mitra-Regalia Realization. A very important result from the theory of digital signal processing (DSP) is used to implement the filters used in digital signal processing method 100. This result states that a wide variety of filters (particularly the ones used in digital signal processing method 100) can be decomposed as the weighted sum of an allpass filter and a 20 feedforward branch from the input. The importance of this result will become clear. For the time being, suppose that a second-order transfer function, H(z), is being implements to describes a bell filter centered at fc with quality factor Q and sampling frequency Fs by H(Z) = bo + b 1 z- 1 +bo,- 2 1 +aj- 1 +f,2,,-2 25 Ancillary quantities k], k2 can be defined by 1 - tan (,) I + Lut k2= -cos(2xf.,F,) -13and transfer function, A(z) can be defined by A /) 2 + Al 0 + A- 2 )z 1 1+ A ( 1± 1 44:2):,_ 1 + L 2 4' A(z) can be verified to be an allpass filter. This means that the amplitude of A(z) is constant for all frequencies, with only the phase changing as a function of frequency. 5 A(z) can be used as a building block for each bell-shaped filter. The following very important result can be shown: H1(+) = -(1 + C) A(-- + 1( - C) 2 '2 This is the crux of the Mitra-Regalia realization. A bell filter with tunable gain can be implemented to show the inclusion of the gain G in a very explicit way. This is 10 illustrated in FIG. 7, which illustrates an example filter constructed using the Mitra Regalia realization according to one embodiment of the present invention. There's a very good reason for decomposing the filter in such a non-intuitive manner. Referring to the above equation, remember that every one of the a and b coefficients needs to be re-computed whenever G gets changed (i.e., whenever one of the graphic 15 EQ "slider" is moved). Although the calculations that need to be performed for the a and b coefficients have not been shown, they are very complex and time-consuming and it simply isn't practical to recompute them in real time. However, in a typical graphic EQ, the gain G and quality factor Q remain constant and only G is allowed to vary. This is what makes the equation immediately above so appealing. Notice from 20 the above equations that A(z) does not depend in any way on the gain, G and that if Q and the center-frequency fc remain fixed (as they do in a graphic EQ filter), then kI and k2 remain fixed regardless of G. Thus, these variables only need to be computed once! Computing the gain variable is accomplished by varying a couple of simple quantities in real time: 1 -(1+G) 25 2 and -(1 - ). 2 -14- These are very simple computations and only require a couple of CPU cycles. This leaves only the question of how to implement the allpass transfer function, A(z), which is a somewhat trivial exercise. The entire graphic equalizer bank thus consists of 11 cascaded bell filters, each of which is implemented via its own Mitra-Regalia 5 realization: F1 (z) fixed k. k'. variable G1 F, (z) -. fixed k. k variable C2 FuI(z) -- fixed k . L ' variable C1 It can be seen from that equation that the entire graphic equalizer bank depends on a total of 22 fixed coefficients that need to be calculated only once and stored in memory. The "tuning" of the graphic equalizer is accomplished by adjusting the 10 parameters G 1,G2, .. .,G 11. Refer back to Figure 6 to see this in schematic form. The Mitra-Regalia realization will be used over and over in the implementation of the various filters used digital signal processing method 100. Mitra-Regalia is also useful in implementing the shelving filters, where it is even simpler because the shelving filters use first-order filter. The net result is that a shelving filter is characterized by a 15 single allpass parameter, k, and a gain, G. As with the bell filters, the shelving filters are at fixed corner frequencies (in fact, all of them have 1 kHz as their corner frequency) and the bandwidth is also fixed. All told, four shelving filters are completely described simply by Hi (z) -- fixed k variable G
H
2 ( ) fixed k variable C 2 H:(, (Z fixed k variale G3 H,1(z) fixed k. variable G, 1 20 As discussed above, there is an asymmetry in the response of a conventional shelving filter when the filter is boosting versus when it is cutting. This is due, as discussed, to the design technique having different definitions for the 3-dB point when boosting than when cutting. Digital signal processing method 100 relies on the filters HI(z) and H3(z) being the mirror images of one another and the same holds for H2(z) and 25 H4(z). This led to the use of a special filter structure for the boosting shelving filters, one that leads to perfect magnitude cancellation for H1,H3 and H2,H4, as shown in Figure 8. This type of frequency response is known as magnitude complementary. -15- This structure is unique to the present invention. In general, it is a simple mathematical exercise to derive for any filter H(z) a filter with complementary magnitude response. The filter H-1(z) certainly fits the bill, but may not be stable or implementable function of z, in which case the solution is merely a mathematical 5 curiosity and is useless in practice. This is the case with a conventional shelving filter. The equations above show how to make a bell filter from an allpass filter. These equation applies equally well to constructing a shelving filter beginning with a first-order allpass filter, A(z), where 4(_) = a -
X
1 1 - C12 10 and a is chosen such that ( 1 - si -2r) where fc is the desired corner frequency and Fs is the sampling frequency. Applying the above equations and re-arranging terms, this can be expressed as 1 +G 1 -G G H()=2 1+ +G 15 This is the equation for a low-shelving filter. (A high-shelving filter can be obtained by changing the term (1 - G) to (G - 1)). Taking the inverse of H(z) results in the following: 1 2 H(Z) ( )(1+ 4(__9A(z)) This equation is problematic because it contains a delay-free loop, which means that it 20 can not be implemented via conventional state-variable methods. Fortunately, there are some recent results from system theory that show how to implement rational functions with delay-free loops. Fontana and Karjalainen show that each step can be "split" in time into two "sub-steps." FIG. 9 illustrates an example magnitude-complementary low-shelf filter according to 25 one embodiment of the present invention. Refer to FIG. 9, during the first sub-step (labeled "subsample 1"), feed filter A(z) with zero input and compute its output, 10[k]. -16- During this same subsample, calculate the output y[k] using the value of 10[k], which from the equation immediately above can be performed as follows: y[k] T 277r. iI+~/V - ii ~ k] + x-l {a)[J + It can be seen from FIG. 9 that these two calculations correspond to the case where 5 the switches are in the "subsample I" position. Next, the switches are thrown to the "subsample 2" position and the only thing left to do is update the internal state of the filter A(z). This unconventional filter structure results in perfect magnitude complementarity, 11. This can be exploited for the present invention in the following manner: when the shelving filters of digital signal processing method 100 are in "cut" 10 mode, the following equation can be used: H(Z) = 1 G 1 + A(z) However, when the shelving filters of digital signal processing method 100 are in "boost" mode, the following equation can be used with the same value of G as used in Ccut" mode: y~kJ = I±+ ,: {r.u~kI + [~uk)} 15 LI()rIl j; x[k] + 'i -C 1] I This results in shelving filters that are perfect mirror images of on another, as per FIG. 8, which is what is needed for digital signal processing method 100. (Note: Equation 16 can be changed to make a high-shelving filter by changing the sign on the (1 - G)/2 term). FIG. 8 illustrates the effect of a magnitude-complementary low-shelf filter 20 implemented by an embodiment of the present invention. Each of the compressors 104, 108 is a dynamic range compressor designed to alter the dynamic range of a signal by reducing the ratio between the signal's peak level and its average level. A compressor is characterized by four quantities: the attack time, Tatt, the release time, Trel, the threshold, KT , and the ratio, r. In brief, the envelope of the 25 signal is tracked by an algorithm that gives a rough "outline" of the signal's level. Once that level surpasses the threshold, KT , for a period of time equal to Tatt, the -17compressor decreases the level of the signal by the ratio r dB for every dB above KT. Once the envelope of the signal falls below KT for a period equal to the release time, Trel, the compressor stops decreasing the level. FIG. 10 illustrates a static transfer characteristic (relationship between output and input levels) of a compressor 5 implemented in accordance to one embodiment of the present invention. It is instructive to examine closely the static transfer characteristic. Assume that the signal's level, L[k] at instant k has been somehow computed. For instructive purposes, a one single static level, L, will be considered. If L is below the compressor's trigger threshold, KT , the compressor does nothing and allows the 10 signal through unchanged. If, however, L is greater than KT , the compressor attenuates the input signal by r dB for every dB by which the level L exceeds KT. It is instructive to consider an instance where L is greater than KT, which means that 20 logio(L)> 20 logio(KT). In such an instance, the excess gain, i.e., the amount in dB by which the level exceeds the threshold, is: excess = 20 logio(L) - 20 logio(KT). 15 As the compressor attenuates the input by r dB for every dB of excess gain, the gain reduction, gR, can be expressed as 91? (20 log 10 C(L) - 20 log jo(Kr)) From that, it follows that that with the output of the compressor, y given by 20 logio(y) = gR * 20 logio(x), that the desired output-to-input relationship is satisfied. 20 Conversion of this equation to the linear, as opposed to the logarithmic, domain yields the following: Which is equivalent to: 25 The most important part of the compressor algorithm is determining a meaningful estimate of the signal's level. This is accomplished in a fairly straightforward way: a running "integration" of the signal's absolute value is kept, where the rate at which the level is integrated is determined by the desired attack time. When the -18instantaneous level of the signal drops below the present integrated level, the integrated level is allowed to drop at a rate determined by the release time. Given attack and release times Tatt and Trel, the equation used to keep track of the level, L[k] is given by L[k|= f(1 a)|x[k||+awrLlk-1] for |x[k||> -1| 5 ~ (1 a,,) Ix[k]I + a,.aLtk - 1] for <[ ] < L[k - 1| where oar.t. = exp F.iTr) and arI = xp F T 10 At every point of the level calculation as described above, L[k] as computed is compared to the threshold KT , and if L[k] is greater than KT , the input signal, x[k], is scaled by an amount that is proportional to the amount by which the level exceeds the threshold. The constant of proportionality is equal to the compressor ratio, r. After a great deal of mathematical manipulation, \the following relationship between the 15 input and the output of the compressor is established: With the level L[k] as computed in Equation 18, the quantity Gexcess by is computed as which represents the amount of excess gain. If the excess gain is less than one, the 20 input signal is not changed and passed through to the output. In the event that the excess gain exceeds one, the gain reduction, GR is computed by: Gn? = (Gve) = (L[kJK ) and then the input signal is scaled by GR and sent to the output: -19- Through this procedure, an output signal whose level increases by 1/r dB for every I dB increase in the input signal's level is created. In practice, computing the inverse K-r- for the above equations can be time consuming, as certain computer chips are very bad at division in real-time. As KT is 5 known in advance and it only changes when the user changes it, a pre-computed table of KT- values can be stored in memory and used as needed. Similarly, the exponentiation operation in the above equation calculating GR is extremely difficult to perform in real time, so pre-computed values can be used as an approximation. Since quantity GR is only of concern when Gexcess is greater than unity, a list of, 10 say, 100 values of GR, pre-computed at integer values of GR from GR = I to GR = 100 can be created for every possible value of ratio r. For non-integer values of GR (almost all of'them), the quantity in the above equation calculating GR can be approximated in the following way. Let interp be the amount by which Gexcess exceeds the nearest integral value of Gexcess. In other words, 15 iiacrp J and let GR,0 and GR,1 refer to the pre-computed values I and G = (1 + G,.)) . 20 Linear interpolation may then be used to compute an approximation of GR as follows: Gn GnO + ivhrap* (Cui -- G.0) The error between the true value of GR and the approximation in the above equation can be shown to be insignificant for the purposes of the present invention. Furthermore, the computation of the approximate value of GR requires only a few 25 arithmetic cycles and several reads from pre-computed tables. In one embodiment, tables for six different values of ratio, r, and for 100 integral points of Gexcess may be stored in memory. In such an embodiment, the entire memory usage is only 600 words of memory, which can be much more palatable than the many hundred cycles -20of computation that would be necessary to calculate the true value of GR directly. This is a major advantage of the present invention. Each of the digital filters in digital signal processing method 100 may be implemented using any one a variety of potential architectures or realizations, each of which has its 5 trade-offs in terms of complexity, speed of throughput, coefficient sensitivity, stability, fixedpoint behavior, and other numerical considerations. In a specific embodiment, a simple architecture known as a direct-form architecture of type 1 (DF1) may be used. The DF1 architecture has a number of desirable properties, not the least of which is its clear correspondence to the difference equation and the 10 transfer function of the filter in question. All of the digital filters in digital signal processing method 100 are of either first or second order. The second-order filter will be examined in detail first. As discussed above, the transfer function implemented in the second-order filter is given by Ill) + biz-' + b2-2 i+ al.--I+ a2.Z 15 which corresponds to the difference equation y[k] = box[k] + bx [k - 11 + bix[k -2] - a ylk - 1] - any[k - 2]. FIG. 11 illustrates the DFI architecture for a second-order filter according to one embodiment of the present invention. As shown in FIG. 11, the multiplier coefficients in this filter structure correspond to the coefficients in the transfer 20 function and in the difference equation above. The blocks marked with the symbol z-1 are delay registers, the outputs of which are required at every step of the computation. The outputs of these registers are termed state variables and memory is allocated for them in some embodiments of digital signal processing method 100. The output of the digital filter is computed as follows: 25 Initially, every one of the state variables is set to zero. In other words, Y[-1] = x[-2] = y[-1] = y[- 2 ] = 0. At time k = 0 the following computation is done, according to Figure 11: y[O] = box[O] + bir1-i] + b 2 i[- 2] - at y[-1] - a2y[-2]. -21- Then, the registers are then updated so that the register marked by x[k - 1] now holds x[0], the register marked by x[k - 2] now holds x[-1], the register marked by y[k - 1] holds y[O], and the register marked by y[k - 2] holds y[-i]. At time k = 1 the following computation is done: 5 y[1] = box[I1 +bj40] + b 2 x] [-11 - a I Y[0] - a2(-1] Then, the register update is again completed so that the register marked by x[k - 1] now holds x[1], the register marked by x[k - 2] now holds x[0], the register marked by y[k - 1] holds y[1], and the register marked by y[k - 2] holds y[0]. This process is then repeated over and over for all instants k: A new input, x[k], is 10 brought in, a new output y[k] is computed, and the state variables are updated. In general, then, the digital filtering operation can be viewed as a set of multiplications and additions performed on a data stream x[0], x[1], x[2], . . . using the coefficients bO, bl, b2, al, a2 and the state variables x[k - 1], x[k - 2], y[k - 1], y[k - 2]. 15 The manifestation of this in specific situations is instructive. Examination of the bell filter that constitutes the fundamental building-block of graphic equalizer 107 is helpful. As discussed above, the bell filter is implemented with a sampling frequency Fs, gain G at a center frequency fc, and quality factor Q as 1 1 H(s) = -(I + G)A(z) + -(1 - G) 22 20 where A(z) is an allpass filter defined by A(z)= k2+k1(1+k-)z-= + -2 1+ k (1+ k2) + k 2 Z-) where kI and k2 are computed from fc and Q via the equations 1- tan ) 1+ t"11(~ 25 and k 2 =co(27rfc/F.) -22- The values kI and k2 are pre-computed and stored in a table in memory. To implement a filter for specific values of Q and fc, the corresponding values of k1 and k2 are looked up in this table. Since there are eleven specific values of fc and sixteen specific values of Q in the algorithm, and the filter operates at a single sampling 5 frequency, Fs, and only k2 depends on both fc and Q, the overall storage requirements for the ki and k2 coefficient set is quite small (11 x 16 x 2 words at worst). Observe from the equation above for A(z) that its coefficients are symmetric. That is, the equations can be re-written as () Z ~~+gcqb1z- +geq-b0 10 1+ ye-b 1z +qge(qbo- 2 where and gcq-b1 = k (1 + k). 15 Observe that A(z) as given in the above equation implies the difference equation y!k] = geqO xlkJ +gcq-b -l1k -1] - 2] --- geqb1y[k --- 11 --geqD y [k - 21. which can be rearranged to yield y[ k|= cq..bo (x[k| -- y[k - 2]) + geq-bi (x[k - 1] - y[k - 1])+ x[k - 2] In a specific embodiment, the state variables may be stored in arrays xv[] and yv[] 20 with xv[0] corresponding to x[k - 2], xv[1] corresponding to x[k - 1], yv[O] corresponding to y[k - 2] and yv[l] corresponding to y[k -1]. Then the following code-snippet implements a single step of the allpass filter: void allpass(float *xv, float *yv, float *input, float *output) { 25 *output = geqb0 * (*input - yv[0]) + geqbl * (xv[l] - yv[1I) + xv[0] xv[0]= xv[I]; \\ update xv[1] = *input; \\ update yv[0] = yv[l]; \\update yv[1] = *output; \\update 30 } -23- Now the loop must be incorporated around the allpass filter as per the equations above. This is trivially realized by the following: void bell(float *xv, float *yv, float gain, float *input, float *output) { 5 allpass(xv, yv, input, output); *output = 0.5 * (1.0-gain) * (*output) + 0.5 * (1.0+gain) * (*input); } More concisely, the previous two code snippets can be combined into a single routine 10 that looks like this: void bell(float *xv, float *yv, float gain, float *input, float *output) { float apoutput = geq_bO * (*input - yv[0]) + geq_bl * (xv[1] - yv[1]) + xv[0] 15 xv[0] = xv[1]; \\ update xv[1] = *input; \\ update yv[0] = yv[1]; \\update yv[1] = *output; \\update *output = 0.5 * (1.0-gain) * apoutput + 0.5 * (1.0+gain) * (*input); 20 } The first-order filter will now be examined in detail. These filters can be described by the transfer function H(:) = a 25 which corresponds to the difference equation y[k] 1Ai,.r[k] +1 bj,.i]A -1 - a h- - 11. FIG. 12 illustrates the DF1 architecture for a first-order filter according to one embodiment of the present invention. Referring now to FIG. 12, the multiplier coefficients in this filter structure correspond in a clear way to the coefficients in the 30 transfer function and in the difference equation. The output of the digital filter is computed as follows: Initially, every one of the state variables is set to zero. In other words, [-1]=y[-1] = 0. At time k = 0 the following computation is done, according to Figure 11: 35 y[O] = bx[OI]+ b,i[-1] -a., y[-1]. -24- Then, the registers are then updated so that the register marked by x[k - 1] now holds x[0], and the register marked by y[k - 1] holds y[O]. At time k = 1 the following computation is done: Y1=] bT[1 + b 1 'x[f] - aiy(] 5 Then, the register update is again completed so that the register marked by x[k - 1] now holds x[1] and the register marked by y[k - 1] holds y[l]. This process is then repeated over and over for all instants k: A new input, x[k], is brought in, a new output y[k] is computed, and the state variables are updated. In general, then, the digital filtering operation can be viewed as a set of 10 multiplications and additions performed on a data stream x[0], x[1], x[2],... using the coefficients bO, bl, al and the state variables x[k - 1], y[k - 1]. Referring back to the equations above, a first-order shelving filter can be created by applying the equation k 2 ±+k, (1l+ I~ + 2 1- i+ k,(1 + 4.)z- + k 2
Z-
2 15 to the first-order allpass filter A(z), where where a is chosen such that Co ( where fc is the desired corner frequency and Fs is the sampling frequency. The allpass 20 filter A(z) above corresponds to the difference equation I[k] = cexlk] - x[k - 1] +<t y[k - 1]. If allpass coefficient a is referred to as allpass coef and the equation terms are rearranged, the above equation becomes L) = WIpiuss--coef(:lk) + y[k - 1]) - xlk - 1]. -25- This difference equation corresponds to a code implementation of a shelving filter that is detailed below. One specific software implementation of digital signal processing method 100 will now be detailed. 5 Input gain adjustment 101 and output gain adjustment 109, described above, may both be accomplished by utilizing a "scale" function, implemented as follows: void scale(gain, float *input, float *output) for (i =0; i <NSAMPLES; i++) 10 *output++= inputGain * (*input++); 15 First low shelf filter 102 and second low shelf filter 105, described above, may both be accomplished by utilizing a "lowshelf" function, implemented as follows: void low shelf(float *xv, float *yv, float *wpt, float *input, float *output) float I; 20 int i; for (i=0; i<NSAMPLES;i++) { if (wpt[2] <0.0) \\ cut mode, use conventional realization \\ allpasscoef alpha 25 yv[0] =apcoef * (*input) + (apcoef* apcoef- 1.0) *xv[0]; xv[0] = apcoef * xv[0] + *input; *output++= 0.5 * ((1.0 + wpt[0]) * (*input++) + (1.0 - wpt[0]) * yv[0]); } else \\ boost mode, use special realization 30 { I = (apcoef * ap_coef - 1.0) * xv[0]; *output = wpt[I] * ((*input++) - 0.5 * (1.0 - wpt[0]) * 1); xv[0] = ap-coef * xv[0] + *output++; } 35 } As this function is somewhat complicated, a detailed explanation of it is proper. First, the function declaration provides: 40 void lowshelf(float *xv, float *yv, float *wpt, float *input, float *output) The "lowshelf" function takes as parameters pointers to five different floating-point arrays. The arrays xv and yv contain the "x" and "y" state variables for the filter. Because the shelving filters are all first-order filters, the state-variable arrays are only of length one. There are distinct "x" and "y" state variables for each shelving filter -26used in digital signal processing method 100. The next array used is the array of filter coefficients "wpt" that pertain to the particular shelving filter. wpt is of length three, where the elements wpt[0], wpt[I], and wpt[2] describe the following: wpt[I = G wpt{l] = 2[(1 + G) + i(1 -G)] uoptl2l = -1 whin cutting. 1 when bocatiug 5 and a is the allpass coefficient and G is the shelving filter gain. The value of a is the same for all shelving filters because it is determined solely by the corner frequency (it should be noted that and all four of the shelving filters in digital signal processing method 100 have a corner frequency of I kHz). The value of G is different for each of the four shelving filters. 10 The array "input" is a block of input samples that are fed as input to each shelving filter, and the results of the filtering operation are stored in the "output" array. The next two lines of code, float 1; int i; allocate space for a loop counter variable, i, and an auxiliary quantity, 1, which is the 15 quantity 10[k] from FIG. 9. The next line of code, for (i = 0; i < NSAMPLES; i++) performs the code that follows a total ofNSAMPLES times, where NSAMPLES is the length of the block of data used in digital signal processing method 100. 20 This is followed by the conditional test if (wpt[2] < 0.0) and, recalling the equations discussed above, wpt[2] < 0 corresponds to a shelving filter that is in "cut" mode, whereas wpt[2] >= 0 corresponds to a shelving filter that is in "boost" mode. If the shelving filter is in cut mode the following code is performed: if (-pt[2] < 0.0) \\ cut mode, use conventional realization { \\ allpass-coef = alpha yv[0] = ap-coef * (*input) + (ap-coef * ap-coef - 1.0) *xv[]; xv[0] = ap.coef * xv[0] + *input; *output++ = 0.5 * ((1.0 + wpt[O]) * (*input++) + (1.0 - upt[o]) * yv[0]); 25 -27- The value xv[0] is simply the state variable x[k] and yv[O] is just yv[k]. The code above is merely an implementation of the equations | =[k]k+ (o1 2 - 1) -[k] 2/k| = -x1k] + in[k] o1111k] = ((t +G) -inZ[k| + ( - G) -y[k]) 5 If the shelving filter is in cut mode the following code is performed: else \\ boost mode, use special realization { 1 = (ap-coef * ap-coef - 1.0) * xv[0]; *output = wpt[1] * ((*input++) - 0.5 * (1.0 - upt[O]) * 1); xv[0] = ap-coof * xv[0] + *output++; } which implements the equations lo[kI = (02 - 1) . 7[k| outk] = 2[(1 +G),+ 0--(tl - C)]-' -(in[k - (1 - G)A[k|) X[k) = o .- [k - 11+n u[k] First high shelf filter 103 and second high shelf filter 106, described above, may both 10 be accomplished by utilizing a "high-shelf' function, implemented as follows: void high shelf(float *xv, float *yv, float *wpt, float *input, float *output) { float I; int i; 15 for (i = 0; i < NSAMPLES; i++) { if (wpt[2] < 0.0) \\ cut mode, use conventional realization, { \\ allpass_coef = alpha yv[0] = allpass_coef * (*input) + (allpass.coef * allpasscoef - 1.0) * 20 xv[0]; xv[0] = allpasscoef * xv[0] + *input; *output++ = 0.5 * ((1.0 + wpt[0]) * (*input++) - (1.0 - wpt[O]) * yv[0]); } else \\ boost mode, use special realization 25 { I = (allpasscoef * allpass coef - 1.0) * xv[0]; *output = wpt[1] * ((*input++) + 0.5 * (1.0 - wpt[0]) * 1); xv[0] = allpasscoef * xv[0] + *output++; } 30 Implementing the high-shelving filter is really no different than implementing the low-shelving filter. Comparing the two functions above, the only substantive -28difference is in the sign of a single coefficient. Therefore, the program flow is identical. Graphic equalizer 107, described above, may be implemented using a series of eleven calls to a "bell" filter function, implemented as follows: 5 void bell(float *xv, float *yv, float *wpt, float *input, float *output) float geqgain = wpt[0]; \\ G float geq_b0 = wpt[I]; \\ k2 float geq_bl = wpt[2}; \\ k l(lIk2) 10 float apoutput; int i; for (i = 0;i <NSAMPLES; i++) { apoutput = geq_b0 * (*input - yv[0]) + geq_bl * (xv[1] - yv[ ]) + xv[0]; 15 xv[0] =xv[I];\\update xv[1] = *input; \\ update yv[O] = yv[I]; \\update yv[1] = *output; \\update *output++ = 0.5 * (1.0-gain) * ap output + 0.5 * (1.0+gain) * (*input++); 20 } } The function bell() takes as arguments pointers to arrays xv (the "x" state variables), yv (the "y" state variables), wpt (which contains the three graphic EQ parameters G, 25 k2, and kl(I+k2)), a block of input samples "input", and a place to store the output samples. The first four statements in the above code snippet are simple assignment statements and need no explanation. The for loop is executed NSAMPLES times, where NSAMPLES is the size of the block of input data. The next statement does the following: ap-output = geq-bO * (*input - yv[0]) 30 + goqb1 * (xv[1] - yv[1]) + xv[o) The above statement computes the output of the allpass filter as described above. The next four statements do the following: xv[0] = Xv[i] shifts the value stored in x[k - I] to x[k - 2]. 35 xv[l] = *input; shifts the value of input[k] to x[k - I]. yv[0] = yv~i]; -29shifts the value stored in y k - 1] to yk - 2]. yv[1] = *output; shifts the value of output[k], the output of the allpass filter, to y[k - 1]. Finally, the output of the bell filter is computed as 5 *output++ = 0.5 * (1.0-gain) * apoutput + 0.5 * (1.0+gain) * (*input++); First compressor 104 and second compressor 108, described above, may be implemented using a "compressor" function, implemented as follows: void compressor(float *input, float *output, float *wpt, int index) { 10 static float level; float interp, GR, excessGain, L, invT, ftempabs; invT = wpt[2]; int i,j; for (i =0; i <NSAMPLES; i ++) 15 { ftempabs = fabs(*input++); level = (ftempabs >= level)? wpt[0] * (level - ftempabs) + ftempabs : wpt[1] * (level - ftempabs) + ftempabs; GR= 1.0; 20 if (level * invT > 1.0) { excessGain = level *invT; interp = excessGain - trunc(excessGain); j = (int) trunc(excessGain) - 1; 25 if (j < 99) { GR = table[index]j] + interp * (table[index][j+1] table[index] []); // table[][] is the exponentiation table 30 } else { GR = table [index] [99]; } 35 } *output++ = *input++ * GR; } } The compressor function takes as input arguments pointers to input, output, and wpt 40 arrays and an integer, index. The input and output arrays are used for the blocks of input and output data, respectively. The first line of code, static float level; -30allocates static storage for a value called "level" which maintains the computed signal level between calls to the function. This is because the level is something that needs to be tracked continuously, for the entire duration of the program, not just during execution of a single block of data. 5 The next line of code, float interp, CR, excessCain, L, invT, ftempabs; allocates temporary storage for a few quantities that are used during the computation of the compressor algorithm; these quantities are only needed on a per-block basis and can be discarded after each pass through the function. 10 The next line of code, invT = wpt[2]; extracts the inverse of the compressor threshold, which is stored in wpt[2], which is the third element of the wpt array. The other elements of the wpt array include the attack time, the release time, and the compressor ratio. 15 The next line of code indicates that the compressor loop is repeated NSAMPLES times. The next two lines of code implement the level computation as per the equations above. To see this, notice that the line level = (ftempabs >= level)? vpt[O] * (level - ftempabs) + ftempabs : vpt[1] * (level - ftempabs) + ftempabs; is equivalent to the expanded statement if (ftempabs >= level) level = wpt[0] * (level - ftempabs) + fiempabs; } else level = wpt[l] * (level - ftempabs) + ftempabs 20 which is what is needed to carry out the above necessary equation, with wpt[0] storing the attack constant aatt and wpt[ I] storing the release constant arel. -31- Next, it can be assumed that the gain reduction, GR, is equal to unity. Then the comparison if (level * invT > 1.0) 5 is performed, which is the same thing as asking if level > T, i.e., the signal level is over the threshold. If it is not, nothing is done. If it is, the gain reduction is computed. First, the excess gain is computed as excesscain = level *invT; as calculated using the equations above. The next two statements, interp = excessGain - trunc(excessGain); 10 j = (int) trunc(excesscain) - 1; compute the value of index into the table of exponentiated values, as per the equations above. The next lines, if (j < 99) { CR = table[index][j) + interp * (table[index][j+1] - table[index][j]); // table[] [] is the exponentiation table else { CR = table [index] [99]; implement the interpolation explained above. The two-dimensional array, "table," is 15 parameterized by two indices: index and j. The value j is simply the nearest integer value of the excess gain. The table has values equal to which can be recognized as the necessary value from the equations above, where the "floor" operation isn't needed because j is an integer value. Finally, the input is scaled 20 by the computed gain reduction, GR, as per *output++ = *input++ * GR; and the value is written to the next position in the output array, and the process continues with the next value in the input array until all NSAMPLE values in the input block are exhausted. -32- It should be noted that in practice, each function described above is going to be dealing with arrays of input and output data rather than a single sample at a time. This doesn't really change the program much, as hinted by the fact that the routines above were passed their inputs and outputs by reference. Assuming that the algorithm is 5 handed a block of NSAMPLES in length, the only modification needed to incorporate arrays of data into the bell-filter functions is to incorporate looping into the code as follows: void bell(float *xv, float *yv, float gain, float *input, float *output) { 10 float apoutput; int i; for (i = 0; i < NSAMPLES; i++) { apoutput = geq_b0 * (*input - yv[0]) 15 + geq b1 * (xv[1] - yv[1]) + xv[0] xv[0] = xv[1]; \\ update xv[1] = *input; \\ update yv[0] = yv[1]; \\update yv[1] = *output; \\update 20 *output++ = 0.5 * (1.0-gain) * apoutput + 0.5 * (1.0+gain) * (*input++); } } Digital signal processing method 100 as a whole, may be implemented as a program 25 that calls each of the above functions, implemented as follows: /it is assumed that floatBuffer contains a block of I NSAMPLES samples of floating-point data. // The following code shows the instructions that // are executed during a single pass 30 scale(inputGain, floatBuffer, floatBuffer); low shelf(xvlap, yvlap, &workingtable[0], floatBuffer, floatBuffer); high shelf(xv2_ap, yv2_ap, &workingtable[3], floatBuffer, floatBuffer); compressor(floatBuffer, floatBuffer, &workingtable[6], ratio Index); 35 low shelf(xv3_apleft, yv3_apleft, xv3_apright, yv3_apright, &working table[ 11], floatBuffer, floatBuffer); high shelf(xv4 apleft, yv4_apleft, xv4_apright, yv4_apright, &working table[14], floatBuffer, floatBuffer); 40 bell(xvlgeq, yvlgeq, &workingtable[17], floatBuffer, floatBuffer); bell(xv2_geq, yv2_geq, &workingtable[20], floatBuffer, floatBuffer); bell(xv3_geq, yv3_geq, &workingtable[23], floatBuffer, floatBuffer); bell(xv4_geq, yv4_geq, &workingtable[26], floatBuffer, floatBuffer); 45 bell(xv5_geq, yv5_geq, &workingtable[29], floatBuffer, floatBuffer); bell(xv6_geq, yv6_geq, &workingtable[32], floatBuffer, floatBuffer); bell(xv7_geq, yv7_geq, &workingtable[35], floatBuffer, floatBuffer); bell(xv8_geq, yv8_geq, &workingtable[38], floatBuffer, floatBuffer); bell(xv9_geq, yv9_geq, &workingtable[41], floatBuffer, floatBuffer); 50 bell(xvl_geq, yvl_geq, &workingtable[44], floatBuffer, floatBuffer); bell(xv 1_geq, yv 1_geq, &workingtable[47], floatBuffer, floatBuffer); compressor(floatBuffer, floatBuffer, &workingtable[50], ratiolIndex); -33scale(outputGain, floatBuffer, floatBuffer); As can be seen, there are multiple calls to the scale function, the lowshelf function, the highshelf function, the bell function, and the compressor function. Further, there 5 are references to arrays called xvl, yvl, xv2, yv2, etc.. These arrays are state variables that need to be maintained between calls to the various routines and they store the internal states of the various filters in the process. There is also repeated reference to an array called workingtable. This table holds the various pre-computed coefficients that are used throughout the algorithm. Algorithms such as this embodiment of digital 10 signal processing method 100 can be subdivided into two parts: the computation of the coefficients that are used in the real-time processing loop and the real-time processing loop itself. The real-time loop consists of simple multiplications and additions, which are simple to perform in real-time, and the coefficient computation, which requires complicated transcendental functions, trigonometric functions, and 15 other operations which can not be performed effectively in real-time. Fortunately, the coefficients are static during run-time and can be pre-computed before real-time processing takes place. These coefficients can be specifically computed for each audio device in which digital signal processing method 100 is to be used. Specifically, when digital signal processing method 100 is used in a mobile audio device, 20 configured for use in vehicles, these coefficients may be computed separately for each vehicle the audio device may be used in to obtain optimum performance and to account for unique acoustic properties in each vehicle such as speaker placement, passenger compartment design, and background noise. For example, a particular listening environment may produce such anomalous audio 25 responses such as those from standing waves. For example, such standing waves often occur in small listening environments such as an automobile. The length of an automobile, for example, is around 400 cycles long. In such an environment, some standing waves are set up at this frequency and some below. Standing waves present an amplified signal at their frequency which may present an annoying acoustic signal. 30 Vehicles of the same size, shape, and of the same characteristics, such as cars of the same model, may present the same anomalies due to their similar size, shape, structural make-up, speaker placement, speaker quality, and speaker size. The frequency and amount of adjustment performed, in a further embodiment, may be -34configured in advance and stored for use in graphic equalizer 107 to reduce anomalous responses for future presentation in the listening environment. The "working tables" shown in the previous section all consist of pre-computed values that are stored in memory and retrieved as needed. This saves a tremendous 5 amount of computation at run-time and allows digital signal processing method 100 to run on low-cost digital signal processing chips. It should be noted that the algorithm as detailed in this section is written in block form. The program described above is simply a specific software embodiment of digital signal processing method 100, and is not intended to limit the present invention 10 in any way. This software embodiment may be programmed upon a computer chip for use in an audio device such as, without limitation, a radio, MP3 player, game station, cell phone, television, computer, or public address system. This software embodiment has the effect of taking an audio signal as input, and outputting that audio signal in a modified form. 15 While various embodiments of the present invention have been described above, it should be understood that they have been presented by way of example only, and not of limitation. Likewise, the various diagrams may depict an example architectural or other configuration for the invention, which is done to aid in understanding the features and functionality that can be included in the invention. The invention is not 20 restricted to the illustrated example architectures or configurations, but the desired features can be implemented using a variety of alternative architectures and configurations. Indeed, it will be apparent to one of skill in the art how alternative functional, logical or physical partitioning and configurations can be implemented to implement the desired features of the present invention. Also, a multitude of different 25 constituent module names other than those depicted herein can be applied to the various partitions. Additionally, with regard to flow diagrams, operational descriptions and method claims, the order in which the steps are presented herein shall not mandate that various embodiments be implemented to perform the recited functionality in the same order unless the context dictates otherwise. 30 Terms and phrases used in this document, and variations thereof, unless otherwise expressly stated, should be construed as open ended as opposed to limiting. As examples of the foregoing: the term "including" should be read as meaning -35- "including, without limitation" or the like; the term "example" is used to provide exemplary instances of the item in discussion, not an exhaustive or limiting list thereof; the terms "a" or "an" should be read as meaning "at least one," "one or more" or the like; and adjectives such as "conventional," "traditional," "normal," "standard," 5 "known" and terms of similar meaning should not be construed as limiting the item described to a given time period or to an item available as of a given time, but instead should be read to encompass conventional, traditional, normal, or standard technologies that may be available or known now or at any time in the future. Likewise, where this document refers to technologies that would be apparent or 10 known to one of ordinary skill in the art, such technologies encompass those apparent or known to the skilled artisan now or at any time in the future. A group of items linked with the conjunction "and" should not be read as requiring that each and every one of those items be present in the grouping, but rather should be read as "and/or" unless expressly stated otherwise. Similarly, a group of items linked 1 5 with the conjunction "or" should not be read as requiring mutual exclusivity among that group, but rather should also be read as "and/or" unless expressly stated otherwise. Furthermore, although items, elements or components of the invention may be described or claimed in the singular, the plural is contemplated to be within the scope thereof unless limitation to the singular is explicitly stated. 20 The presence of broadening words and phrases such as "one or more," "at least," "but not limited to" or other like phrases in some instances shall not be read to mean that the narrower case is intended or required in instances where such broadening phrases may be absent. The use of the term "module" does not imply that the components or functionality described or claimed as part of the module are all configured in a 25 common package. Indeed, any or all of the various components of a module, whether control logic or other components, can be combined in a single package or separately maintained and can further be distributed in multiple groupings or packages or across multiple locations. Additionally, the various embodiments set forth herein are described in terms of 30 exemplary block diagrams, flow charts and other illustrations. As will become -36apparent to one of ordinary skill in the art after reading this document, the illustrated embodiments and their various alternatives can be implemented without confinement to the illustrated examples. For example, block diagrams and their accompanying description should not be construed as mandating a particular architecture or 5 configuration. Throughout this specification and the claims which follow, unless the context requires otherwise, the word "comprise", and variations such as "comprises" and "comprising", will be understood to imply the inclusion of a stated integer or step or group of integers or steps but not the exclusion of any other integer or step or group of integers 10 or steps. The reference to any prior art in this specification is not, and should not be taken as, an acknowledgement or any form of suggestion that the prior art forms part of the common general knowledge in Australia. 15 -37-

Claims (24)

1. A method for processing an audio signal comprising: filtering the audio signal with a first low shelf filter and a first high shelf filter; compressing the filtered signal with a first compressor; filtering the compressed signal with a second low shelf filter and a second high shelf filter; processing the signal with a graphic equalizer; and outputting the signal to an audio transducer.
2. The method of claim l, wherein adjusting the gain of the received signal a first time is done with a first gain amplifier and adjusting the gain of the signal a second time is done with a second gain amplifier.
3. The method of claim 1, wherein the first low shelf filter has a cutoff frequency at 1000 H-z.
4. The method of claim 1, wherein the first high shelf filter has a cutoff frequency at 1000 Hz.
5. The method of claim 1, wherein the graphic equalizer comprises eleven cascading second order filters.
6. The method of claim 5, wherein each of the second order filter is a bell filter.
7. The method of claim 6, wherein the first of the eleven filters has a center frequency of 30 Hz and the eleventh filter of the eleven filters has a center frequency of 16000 Hz.
8. The method of claim 7. wherein the second to tenth filters are centered at approximately one octave intervals from each other. -38-
9. The method of claim 1, wherein the second low shelf filter is a magnitude complementary low-shelf filter.
10. The method of claim I wherein filtering the compressed signal with the second low shelf filter and the second high shelf filter is inverse to filtering the audio signal with the first low shelf filter and the first high shelf filter.
11. A speaker system comprising: a first low shelf filter and a first high shelf filter configured to filter a signal; a first compressor configured to compress the filtered signal; a second low shelf filter and a second high shelf filter configured to filter the first compressed signal; and a graphic equalizer configured to process the filtered signal.
12. The speaker system of claim 11, wherein the signal is an audio signal.
13. The speaker system of claim 11, wherein the first low shelf filter has a cutoff frequency at 1000 Hz.
14. The speaker system of claim 11. wherein the first high shelf filter has a cutoff frequency at 1000 Hz.
15. The speaker system of claim 11, wherein the graphic equalizer comprises eleven cascading second order filters.
16. The vehicle speaker system of claim 15, wherein each of the second order filter is a bell filter.
17. The speaker system of claim 16, wherein the first of the eleven filters has a center frequency of 30 Hz and the eleventh filter of the eleven filters has a center frequency of 16000 Hz.
18. The speaker system of claim 17., wherein the second to tenth filters are centered at approximately one octave intervals from each other. -39-
19. The speaker system of claim 11, wherein the second low shelf filter is a magnitude-complementary low-shelf filter.
20. The speaker system of claim 1 I wherein the second low shelf filter and the second high shelf filter are configured to inversely filter the first compressed signal relative to the first low shelf filter and the first high shelf filter.
21. A method for processing an audio signal comprising: adjust a gain of the audio signal a first time, process the audio signal with a first low shelf filter, process the audio signal with a first high shelf filter, process the audio signal with a first compressor, process the audio signal with a second low shelf filter, process the audio signal with a second high shelf filter. process the audio signal with a graphic equalizer, process the audio signal with a second compressor, adjust the gain of the audio signal a second time, and output the audio signal.
22. The method of claim 21, wherein the first low shelf filter has a cutoff frequency at 1000 Hz.
23. The method of claim 21, wherein the first high shelf filter has a cutoff frequency at 1000 Hz.
24. The method of claim 21, wherein the graphic equalizer comprises eleven cascading second order bell filters. -40-
AU2012202127A 2006-11-30 2012-04-12 System and method for digital signal processing Ceased AU2012202127B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
AU2012202127A AU2012202127B2 (en) 2006-11-30 2012-04-12 System and method for digital signal processing

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US60/861,711 2006-11-30
AU2007325096A AU2007325096B2 (en) 2006-11-30 2007-11-29 System and method for digital signal processing
AU2012202127A AU2012202127B2 (en) 2006-11-30 2012-04-12 System and method for digital signal processing

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
AU2007325096A Division AU2007325096B2 (en) 2006-11-30 2007-11-29 System and method for digital signal processing

Publications (2)

Publication Number Publication Date
AU2012202127A1 true AU2012202127A1 (en) 2012-05-03
AU2012202127B2 AU2012202127B2 (en) 2014-03-27

Family

ID=46640349

Family Applications (1)

Application Number Title Priority Date Filing Date
AU2012202127A Ceased AU2012202127B2 (en) 2006-11-30 2012-04-12 System and method for digital signal processing

Country Status (1)

Country Link
AU (1) AU2012202127B2 (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9615189B2 (en) 2014-08-08 2017-04-04 Bongiovi Acoustics Llc Artificial ear apparatus and associated methods for generating a head related audio transfer function
US9621994B1 (en) 2015-11-16 2017-04-11 Bongiovi Acoustics Llc Surface acoustic transducer
US9615813B2 (en) 2014-04-16 2017-04-11 Bongiovi Acoustics Llc. Device for wide-band auscultation
US9638672B2 (en) 2015-03-06 2017-05-02 Bongiovi Acoustics Llc System and method for acquiring acoustic information from a resonating body
US9741355B2 (en) 2013-06-12 2017-08-22 Bongiovi Acoustics Llc System and method for narrow bandwidth digital signal processing
US9793872B2 (en) 2006-02-07 2017-10-17 Bongiovi Acoustics Llc System and method for digital signal processing
US9883318B2 (en) 2013-06-12 2018-01-30 Bongiovi Acoustics Llc System and method for stereo field enhancement in two-channel audio systems
US9906858B2 (en) 2013-10-22 2018-02-27 Bongiovi Acoustics Llc System and method for digital signal processing
US9906867B2 (en) 2015-11-16 2018-02-27 Bongiovi Acoustics Llc Surface acoustic transducer
US10639000B2 (en) 2014-04-16 2020-05-05 Bongiovi Acoustics Llc Device for wide-band auscultation
US10701505B2 (en) 2006-02-07 2020-06-30 Bongiovi Acoustics Llc. System, method, and apparatus for generating and digitally processing a head related audio transfer function
US10820883B2 (en) 2014-04-16 2020-11-03 Bongiovi Acoustics Llc Noise reduction assembly for auscultation of a body

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10158337B2 (en) 2004-08-10 2018-12-18 Bongiovi Acoustics Llc System and method for digital signal processing
US9281794B1 (en) 2004-08-10 2016-03-08 Bongiovi Acoustics Llc. System and method for digital signal processing
US9413321B2 (en) 2004-08-10 2016-08-09 Bongiovi Acoustics Llc System and method for digital signal processing
US10069471B2 (en) 2006-02-07 2018-09-04 Bongiovi Acoustics Llc System and method for digital signal processing
US9348904B2 (en) 2006-02-07 2016-05-24 Bongiovi Acoustics Llc. System and method for digital signal processing
US9195433B2 (en) 2006-02-07 2015-11-24 Bongiovi Acoustics Llc In-line signal processor
US9344828B2 (en) 2012-12-21 2016-05-17 Bongiovi Acoustics Llc. System and method for digital signal processing
US9398394B2 (en) 2013-06-12 2016-07-19 Bongiovi Acoustics Llc System and method for stereo field enhancement in two-channel audio systems
US9397629B2 (en) 2013-10-22 2016-07-19 Bongiovi Acoustics Llc System and method for digital signal processing
US9564146B2 (en) 2014-08-01 2017-02-07 Bongiovi Acoustics Llc System and method for digital signal processing in deep diving environment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4184047A (en) * 1977-06-22 1980-01-15 Langford Robert H Audio signal processing system
US4538297A (en) * 1983-08-08 1985-08-27 Waller Jr James Aurally sensitized flat frequency response noise reduction compansion system
US20070253577A1 (en) * 2006-05-01 2007-11-01 Himax Technologies Limited Equalizer bank with interference reduction

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9793872B2 (en) 2006-02-07 2017-10-17 Bongiovi Acoustics Llc System and method for digital signal processing
US10701505B2 (en) 2006-02-07 2020-06-30 Bongiovi Acoustics Llc. System, method, and apparatus for generating and digitally processing a head related audio transfer function
US9741355B2 (en) 2013-06-12 2017-08-22 Bongiovi Acoustics Llc System and method for narrow bandwidth digital signal processing
US9883318B2 (en) 2013-06-12 2018-01-30 Bongiovi Acoustics Llc System and method for stereo field enhancement in two-channel audio systems
US9906858B2 (en) 2013-10-22 2018-02-27 Bongiovi Acoustics Llc System and method for digital signal processing
US9615813B2 (en) 2014-04-16 2017-04-11 Bongiovi Acoustics Llc. Device for wide-band auscultation
US10639000B2 (en) 2014-04-16 2020-05-05 Bongiovi Acoustics Llc Device for wide-band auscultation
US10820883B2 (en) 2014-04-16 2020-11-03 Bongiovi Acoustics Llc Noise reduction assembly for auscultation of a body
US9615189B2 (en) 2014-08-08 2017-04-04 Bongiovi Acoustics Llc Artificial ear apparatus and associated methods for generating a head related audio transfer function
US9638672B2 (en) 2015-03-06 2017-05-02 Bongiovi Acoustics Llc System and method for acquiring acoustic information from a resonating body
US9621994B1 (en) 2015-11-16 2017-04-11 Bongiovi Acoustics Llc Surface acoustic transducer
US9906867B2 (en) 2015-11-16 2018-02-27 Bongiovi Acoustics Llc Surface acoustic transducer

Also Published As

Publication number Publication date
AU2012202127B2 (en) 2014-03-27

Similar Documents

Publication Publication Date Title
AU2012202127B2 (en) System and method for digital signal processing
AU2007325096B2 (en) System and method for digital signal processing
US8160274B2 (en) System and method for digital signal processing
US10291195B2 (en) System and method for digital signal processing
CA2785743C (en) System and method for digital signal processing
US9281794B1 (en) System and method for digital signal processing
US8229136B2 (en) System and method for digital signal processing
US9413321B2 (en) System and method for digital signal processing
US8705765B2 (en) Ringtone enhancement systems and methods
US20090296959A1 (en) Mismatched speaker systems and methods
WO2009155057A1 (en) Mismatched speaker systems and methods
KR0129429B1 (en) Audio sgnal processing unit

Legal Events

Date Code Title Description
FGA Letters patent sealed or granted (standard patent)
PC Assignment registered

Owner name: BONGIOVI ACOUSTICS LLC

Free format text: FORMER OWNER(S): BONGIOVI, ANTHONY

MK14 Patent ceased section 143(a) (annual fees not paid) or expired