Class of potentiometers and analog circuits for linearly mixing signals
20230013236 · 2023-01-19
Inventors
Cpc classification
G10H2220/505
PHYSICS
International classification
Abstract
This invention presents a modular circuit using a 3-gang pot to mix and compensate two signals, to produce an output of approximately uniform volume. One gang, Pga, physically simulates a pseudo-sine function, Q(x), where 0≤×≤1 is fractional pot rotation. A second gang, Pgb, physically simulates a pseudo-cosine function, R(x). The circuits using Pga & Pgb multiply the two input signals by the pseudo-functions, so that the length, SQRT(Q.sup.2+R.sup.2), of vector (Q,R) stays near one. The third gang, Pgc, modifies the gain of a summer/compensator op-amp, U3, which adds the two modified signals and compensates for variations in amplitude due to phase cancellations between the two input signals, maintaining an output of near-constant amplitude. A number of embodiments consider 3-gang pots with linear, custom nonlinear and mixed tapers. Any of the three gangs may be replaced by a digital pot, driven by a programmable processor. The functions Q(x) and R(x) are also the basis for full-cycle approximate sine and cosine functions, apsin & apcos, which can be used for forward and reverse spectral transformations to predict the output of such a modular circuit from the inputs as modified by the three gangs. The modules can be cascaded or otherwise combined to add more input signals to the output. The primary application is humbucking pair signals from hum-matched single-coil electric guitar pickups, but there may be applications in other fields.
Claims
1. (Independent) An active and powered electronic circuit module for linearly mixing two or more input signals, at least one of said input signals being differential, and compensating the amplitude of the mixed output for amplitude variations due to phase cancellations between the two said input signals, based upon a either a mechanical 3-gang pot or three digital pots, comprised of: a. a first pot gang or digital pot, designated as Pga, associated with a first input signal, the circuits associated with said Pga effectively multiplying said first input signal by a first function, −1≤Q(x)≤1, where 0≤x≤1 is the physical fractional rotation of a mechanical pot, or the normalized virtual rotation of a digital pot, and said Q(x) is a pseudo-sine function with Q(0)=−1, Q(½)=0 and Q(1)=1, followed by a first buffer amplifier of gain one, designated as Buff1; and b. a second pot gang or digital pot, designated as Pgb, associated with a second input signal, the circuits associated with said Pgb effectively multiplying said second input signal by a second function, 0≤R(x)≤1, where said R(x) is a pseudo-cosine function, orthogonal to said Q(x), with R(0)=R(1)=0 and R(½)=1 , followed by a second buffer, designated as Buff2, of gain G, such that any deficiency in said Pgb circuits that makes R(½)<1 is eliminated; and c. a third pot gang or digital pot, designated as Pgc, acting as part of the feedback circuit of a summer/compensator circuit, in which said summer/compensator adds the output signals of the first two said circuits using said Pga and Pgb, and at least partially compensates for amplitude variations in said mixed first and second input signals, due to phase cancellations between said first and second input signals, the compensation being due to variations in the gain of said summer/compensator circuit due to the action of said Pgc, such that the output amplitude of said summer/compensator circuit remains relatively level with variations in x, compared to its input; and d. said circuit module with three pot gangs or digital pots being designed so that more than one such circuit module may be combined to accommodate three or more of said input signals; and e. said orthogonal signals, Q(x) and R(x), respectively form the basis for approximate full-cycle sine and cosine functions, apsin and apcos, for the approximate and practical calculation of forward and reverse spectral transforms of said input signals and said output signals, using a programmable processor with at least the basic four math functions, add, subtract, multiply and divide.
2. An embodiment as recited in claim 1, wherein said first and second pot gangs and said associated circuits physically simulate a pseudo-sine function with said Pga and associated circuits, and physically simulate a pseudo-cosine function with said Pgb and associated circuits, by with the rotation of said pot, where 0≤x≤1 is the normalized fractional rotation of said pot in its active region, such that: a. said pseudo-sine function, designated here as Q(x) and associated with said Pga, traverses normalized function values of −1 at a first end of the rotation of said pot to 0 at the middle of said pot rotation to +1 at the second end of said pot rotation; and b. said pseudo-cosine function, designated here as R(x) and associated with said Pgb, traverses normalized function values of 0 at said first end of said pot rotation to 1 at the middle of said pot rotation to 0 at the end of said pot rotation; and c. said Q(x) and R(x) are functionally and at least approximately orthogonal in the region 0≤x≤1; and d. the values of the circuit elements associated with said pot gangs, and tapers of said pot gangs adjusted the vector radius of (Q(x),R(x)) in the QR-plane, designated as QRrad=SQRT(Q.sup.2+R.sup.2), such that the radial error, QRrad−1, is minimized with respect to the unit radius; and e. the values of the circuit elements associated with said pot gangs, and the tapers of said pot gangs, are adjusted to minimize the difference, designated as rotational error, between the normalized fractional pot rotation, x, and the normalized rotational angle of the vector (Q(x),R(x)) in the QR-plane, designated as QRrot and related to arctan(R(x)/Q(x))/Pi, starting at zero angle the first end of the pot rotation, x=0, and increasing positively with x, to a value of 1 at x=1; and f. said digital pots, when used instead of said mechanical pot gangs, function in the same manner, where x is a virtual rotation.
3. An embodiment as recited in claim 1 wherein said summer/compensator is comprised of: a. an operational amplifier, designated here as U3, with the outputs of said buffer amplifiers summed through two equal resistors, R.sub.S, at its positive differential input; and b. the third of said pot gangs, designated here as Pgc, forming a variable resistor with one or more resistors, in one of two ways, such that: i. resistors R.sub.1 and R.sub.2 being connected together, with the other end of said R.sub.1 being connected to a first terminal of said Pgc, at the x=0 rotational end, and said R.sub.2 being connected to a second terminal said Pgc, at the x=1 rotational end, the circuit between the wiper of said Pgc and the common connection of said R.sub.1 and R.sub.2 forming a variable resistor, Re; or ii. said Pgc having its end terminals connected together and a single resistor, R1, connected in series with it, either to said interconnected end terminals or to said wiper, the combination forming a variable resistor, Re; and c. said Re variable resistor being connected together with a third resistor, designated here as R.sub.F, to form one of two feedback circuits, such that: i. the first of said feedback circuits has said resistor R.sub.F connected between the operational amplifier output and its negative differential input, said negative differential input is connected to ground through said Re; or ii. the second of said feedback circuits has said Re connected from the output of said operational amplifier to the negative input of said operational amplifier, and said negative input is connected to ground through said R.sub.F; and d. the values of said one or more resistors connected to said Pgc and said U3 are adjusted as parameters to compensate, at least in part, for any differences in the amplitude of the output signal due to any phase cancellations in the combinations of said input signals, by increasing gain for weaker signal levels, such that the output amplitude tends to be even with the rotation of said three-gang pot, or with the virtual rotation of said three digital pots.
4. An embodiment as recited in claim 2, wherein said pseudo-sine function Q(x) is physically created by connecting said pot gang Pga to a first input signal, which is differential, with a negative input signal and a positive input signal, both of which carry the full amplitude of the signal with respect to signal ground, wherein a first terminal of said Pga is connected to said negative input signal and a second terminal of said Pga is connected to said positive input signal, and the wiper of said Pga is the output producing a signal of Q(x) times said first input signal, which is connected directly to a first buffer amplifier, said Buff1 with a gain of one, and the taper of said Pga is physically formed to approximate a function, f(x), which includes the linear taper, f(x)=x, such that: a. f(0)=0; f(0.5)=0.5; f(1)=1; and b. the first derivative with respect to x of f(0) equals the first derivative with respect to x of f(1) and is greater than or equal to zero and less than 1; and c. f(x) has symmetry, such that the line between f(0.5−u) and f(0.5+u), 0≤u≤0.5, always passes through f(0.5)=0.5; and d. nowhere in the range 0≤x≤1 may the first derivative of f(x) with respect to x be less than zero.
5. An embodiment as recited in claim 2, wherein a circuit composed of a resistor, R.sub.B, said second pot gang, Pgb, and the gain, of said second buffer, Buff2, physically simulate said pseudo-cosine function, R(x), with: a. at least one of two versions of said second input signal are available, either the positive or the negative of said input signal, each carrying the full amplitude of said second input signal with respect to signal ground, and R.sub.B is connected between either of said signed versions of the second of said input signals and the wiper of said pot gang Pgb, the end terminals of Pgb being grounded to the signal ground, so that the wiper of said Pgb forms a variable resistance between it and ground, varying from zero to half the total resistance of Pgb between the end terminals, and the wiper being connected as well to the input of said Buff2, with the taper of said Pgb is physically formed to approximate a function, g(x), which includes the linear taper, g(x)=x, such that: i. g(0)=0; g(0.5)=0.5; g(1)=1; and ii. the first derivative with respect to x of g(0) equals the first derivative with respect to x of g(1), and is greater than or equal to zero; and iii. g(x) has symmetry, such that the line between g(0.5−u) and g(0.5+u), 0≤u≤0.5, always passes through g(0.5)=0.5; and iv. the value of R.sub.B and the parameters defining g(x) are parameters in minimizing the values of QRrad(x)−1 and QRrot(x)−x; and v. nowhere between 0≤x≤1 may the first derivative of g(x) with respect to x be less than zero; and b. said gain, of said Buff2 is set so that when the wiper of said Pgb is set near the center of its range to create a maximum resistance for said variable resistor, the output of said Buff2 equals said second input signal, so that said R(½)=1.
6. An embodiment as recited in claim 2, wherein said pot gang Pgb has a center-tapped input connected to either a positive or a negative version of the second of said input signals, either of said versions carrying the full amplitude of said second input signal with respect to signal ground, the end terminals of Pgb being grounded to the signal ground, and the wiper connected to the input of said buffer amplifier, Buff2, which has a gain of one, wherein the Pgb taper is a nonlinear function, g(x), specifically excluding the linear taper, g(x)=x, such that: a. g(0)=0; g(0.5)=0.5; g(1)=1; and b. the first derivative with respect to x of g(0) equals the first derivative with respect to x of g(1); and c. g(x) has symmetry, such that the line between g(0.5−u) and g(0.5+u), 0≤u≤0.5, always passes through g(0.5)=0.5; and d. the parameters defining g(x) are parameters in minimizing the values of QRrad(x)−1, and QRrot(x)−x; and e. nowhere between 0≤x≤1 may the first derivative of g(x) with respect to x be less than zero.
7. An embodiment as recited in claim 6, wherein the taper function f(x) for said Pga and the taper function g(x) for said Pgb, when said Pgb is has a center-tapped input, are complimentary, such that: a. f(x)+g(x)=2x; and b. f(0)=g(0)=0;f(0.5)=g(0.5)=0.5; f(1)=g(1)=1; and c. f(x) has symmetry, such that the line between f(0.5−u) and f(0.5+u), 0≤u≤0.5, always passes through f(0.5)=0.5; and d. g(x) has symmetry, such that the line between g(0.5−u) and g(0.5+u), 0≤u≤0.5, always passes through g(0.5)=0.5; and e. the parameters defining g(x) are parameters in minimizing the values of QRrad(x)−1, and QRrot(x)−x; and f. nowhere between 0≤x≤1 may the first derivative with respect to x of either f(x) or g(x) be less than zero.
8. An embodiment as recited in claim 2, wherein the taper function f(x) for said Pga and the taper function g(x) for said Pgb are the same, have a single fitting defining parameter, a.sub.1, and have the form: a. for 0≤x≤0.5, f(x)=g(x)=a.sub.1x+2(1−a.sub.1)x.sup.2; and b. for 0.5≤x≤1, f(x)=g(x)=a.sub.1−1+(4−3a.sub.1)x+2(a.sub.1−1)x.sup.2.
9. An embodiment as recited in claim 8, wherein a. said pot gang Pgb has a center-tapped input connected to either the positive or the negative of the second of said input signals, either the positive or the negative signal carrying the full amplitude of said second input signal with respect to signal ground, the end terminals of Pgb being grounded to the signal ground, and the wiper connected to the input of said buffer amplifier, Buff2, which has a gain of one; and b. g(x) is not the same as f(x), but is defined by the same fitting parameter, a.sub.1, where 0≤a.sub.1<1, and has the form: i. for 0≤x≤0.5, g(x)=(2−a.sub.1)x+2(a.sub.1−1)x.sup.2; and ii. for 0.5≤x≤1, g(x)=1−a.sub.1+(3a.sub.1−2)x+2(1−a.sub.1)x.sup.2.
10. An embodiment as recited in claim 3, wherein the resistance taper of said Pgc is h(x), such that: a. h(0)=0; h(0.5)=0.5; h(1)=1; and b. the first derivative with respect to x of h(0) equals the first derivative with respect to x of h(1) and is greater than or equal to zero; and c. h(x) has symmetry, such that the line between h(0.5−u) and h(0.5+u), 0≤u≤0.5, always passes through h(0.5)=0.5; and d. nowhere between 0≤x≤1 may the first derivative of h(x) with respect to x be less than zero; and e. the parameters defining h(x), in combination with the values of said Re and said R.sub.F, are used to minimize the amplitude variations of the output of said summer/compensator op-amp, U3, with the rotation, x, of said 3-gang pot.
11. An embodiment as recited in claim 3, wherein the resistance taper of said Pgc is h(x), with a single fitting parameter, a.sub.1, such that: a. for 0≤x≤0.5, h(x)=a.sub.1x+2(1−a.sub.1)x.sup.2; and b. for 0.5≤x≤1, h(x)=a.sub.1−1+(4−3a.sub.1)x+2(a.sub.1−1)x.sup.2; and c. said fitting parameter, a.sub.1, in combination with the values of said Re and said R.sub.F, is used to minimize to minimize the amplitude variations of the output of said summer/compensator op-amp, U3, with the rotation, x, of said 3-gang pot.
12. An embodiment as recited in claim 3, wherein the resistance taper of said Pgc is a piecewise linear function, h(x), which is determined by the known amplitudes of said two input signals to said summer/compensator at three or more points such that the output of said U3 tends to a single amplitude, Voset, over the entire rotation, x, of said three-gang pot, and: a. said known amplitudes are determined by the actions of said circuit involving said Pga and said Pgb upon known combinations of said two input signals, and b. x.sub.0=h(x.sub.0)=0, x.sub.n=h(x.sub.n)=1, and interior points for h(x.sub.i), 0<x.sub.i<1, 0≤i≤n, n>2, define the end points of said piecewise linear segments of h(x); and c. said fixed resistances in said Re and said RF, along with said known points in h(x) are used to fit the output of said U3 to said Voset at said known points almost exactly, within the physical tolerances of the components used.
13. (If this is allowable, I am uncertain as to how to proceed on this Claim, and request the Examiner's help) A method of fitting parameters in the embodiment as recited in claim 12, so as to make the outputs of said summer/compensator using said U3 almost exactly equal to said Voset for said known input signals, including signals derived from humbucking pairs of sensors matched for hum response, comprised of: a. a table containing: i. fixed points of the fractional pot rotations, x.sub.i, which are associated with known and measured combinations of said two input signals, due to the actions of multiplying said input signals by said pseudo-sine and -cosine functions, Q(x.sub.i) and R(x.sub.i); and ii. the amplitudes of said known signal combinations, Vhb.sub.i, which are different due to repeatable phase cancellations of the said two input signals, multiplied respectively the values of said QRrad of said pseudo-sine and -cosine functions, Q(x.sub.i) and R(x.sub.i), obtaining a multiplied amplitude, QRVhb.sub.i,; and iii. a set of desired gains, Gn.sub.i, for each said signal combination, obtained by dividing said desired output level, Voset, by one-half of said multiplied amplitudes, QRVhb.sub.i; and iv. a set of values for h(x.sub.i)(1−h(x.sub.i)), calculated by solving the feedback equation for the feedback circuit using said U3 in said summer/compensator, using only the values of said resistances Rs, Re and R.sub.F, the desired output, Voset, the desired gains, Gn.sub.i, and said multiplied amplitudes, QRVhb.sub.i; and v. a set of fitting values, hfit.sub.i, used only to calculate hfit.sub.i(1−hfit.sub.i); and vi. a set of fitting errors, hferr.sub.i=hfit.sub.i(1−hfit.sub.i)−h(x.sub.i)(1−h(x.sub.i)); and vii. a set of gains, Gain.sub.i, calculated solely from the feedback circuit values, with hfit.sub.i which is used to calculate the resistances of said pot gang, Pgc, at rotational values x.sub.i; and viii. a calculated output signal level, Vo.sub.i, by multiplying Gain.sub.i times QRVhb.sub.i; and b. minimizing each hferr.sub.i by varying each associated hfit.sub.i until hferr.sub.i is effectively zero; and c. using said resulting hfit.sub.i values as the end points of said piecewise linear sections of said h(x).
14. A embodiment as recited in claim 12, when said Re is comprised of a single fixed resistor, R1, connected in series with said pot gang, Pgc, and there are known signal points at x=0, ½, and 1, whereby; a. for x=0 or x=1, said desired gain is Gn.sub.0, and said Re equals said R.sub.1, the value of said R.sub.F is put solely in terms of the value of said R.sub.1 and said desired gain, Gn.sub.0, according to the feedback circuit in use; and b. for x=½, and said desired gain is Gn.sub.0.5, the value of said resistor R.sub.1 is then put solely in terms of the total resistance of said pot gang, Pgc and said gains, Gn.sub.0 and Gn.sub.0.5, according to the feedback circuit in use.
15. An embodiment as recited in claim 1, wherein two or more said modules using said three-gang pots are combined or cascaded, so that a number J>2 of said input signals can be linearly combined into one output, such that in a vector space, (S.sub.1, S.sub.2, . . . S.sub.J), where the S.sub.i are the effective multipliers of said input signals at said output, can be normalized to 0≤S.sub.i≤1, and the value of SQRT(S.sub.1.sup.2+S.sub.2.sup.2 . . . +S.sub.J.sup.2) tends to 1.
16. An embodiment as recited in claim 15, wherein said summer/compensator parts of said modules act together and tend to keep the final output at a fixed amplitude, regardless of the values of said space dimensions, S.sub.i.
17. An embodiment as recited in claim 1, wherein said mechanical pot gangs are replaced by digital pots, as in
18. An embodiment as recited in claim 2, wherein said Pgb is a digital pot with its low end connected to said signal ground, it high end connected to said second input signal, its wiper connected to said Buff2, and a programmable processor determines its taper and function, such that for the virtual pot rotation, 0≤x≤0.5, the wiper proceeds from said low end to said high end, and for 0.5≤x≤1, the wiper proceeds from said high end back down to said low end, said path from low to high to low producing said necessary function, R(x).
19. (Independent) A method of calculating approximate sines and cosines, designated as apsin(x) and apcos(x), respectively, in a programmable processor, having the four basic math functions in its math processing unit, add, subtract, multiply and divide, where 0≤x≤2 is a full cycle of apcos(x) or apsin(x), by one of two methods: a. a first method being a piecewise polynomial in second power of x, with a fitting parameter, a.sub.1, using the form f(x)=2a.sub.1x+2(1−a.sub.1)x.sup.2, and having values in four quarter-cycles,0 from 0 to 0.5, from 0.5 to 1, from 1 to 1.5, and from 1.5 to 2, as follows: i. for 0≤x≤0.5, apcos(x)=1−2f(x) and apsin(x)=2(2x−f(x)); and ii. for 0.5≤x≤1, apcos(x)=2f(1−x)−1 and apsin(x)=2(2(1−x)−f(1−x)); and iii. for 1≤x ≤1.5, apcos(x)=2f(x−1)−1 and apsin(x)=2(f(x−1)−2(x−1)); and iv. for 1.5≤x≤2, apcos(x)=1−2f(2−x) and apsin(x)=2(f(2−x)−2(2−x)); and b. a second method being a piecewise polynomial in fourth power of x, with a fitting parameter, a.sub.2, using the form f(x)=1+a.sub.2x.sup.2−(16+4a.sub.2)x.sup.4, and having values in four quarter-cycles, from 0 to 0.5, from 0.5 to 1, from 1 to 1.5, and from 1.5 to 2, as follows: i. for 0≤x≤0.5, apcos(x)=f(x) and apsin(x)=f(0.5−x); and ii. for 0.5≤x≤1, apcos(x)=−f(1−x) and apsin(x)=f(x−0.5); and iii. for 1≤x≤1.5, apcos(x)=−f(x−1) and apsin(x)=−f(1.5−x); and iv. for 1.5≤x≤2, apcos(x)=f(2−x) and apsin(x)=−f(x−1.5).
20. An embodiment as recited in claim 1, wherein any of said Pga, Pgb or Pgc may be either an electromechanical pot gang, or a separate digital pot driven by a programmable processor.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0043]
[0044]
[0045]
[0046]
[0047]
[0048]
[0049]
[0050]
[0051]
[0052]
[0053]
[0054]
[0055]
[0056]
[0057]
[0058]
[0059]
[0060]
[0061]
[0062]
[0063]
[0064]
[0065]
[0066]
[0067]
[0068]
[0069]
[0070]
[0071]
[0072]
[0073]
[0074]
[0075]
[0076]
[0077]
DESPRIPTION OF THE INVENTION
[0078] Writing this Specification like an engineering tutorial has several purposes: 1) it fulfills the mandate of patents to provide enough information to recreate the invention; 2) it assures potential licensees that the invention has been thoroughly engineered and justified; and 3) it makes it harder for patent trolls and infringers to dispute or misappropriate the work.
Necessary Data Obtained from Three P-90 Style Pickups
[0079] In U.S. Pat. No. 10,380,986 (2019) and U.S. Pat. No. 10,810,987 (2020), Baker disclosed that three matched single coil pickups switched in a simple circuit can produce three humbucking pairs and three humbucking triples. If we take an N-up pickup next to the neck of a standard-sized electric guitar, Nn, another N-up pickup next to the bridge, Bn, and an S-up pickup midway between them, Ms, we may call the string vibration signals, N, −M and B, respectively. The available switched humbucking signals are: N−B, N+M, M+B, N+(M−B)/2, B+(M−N)/2 and M+(N+B)/2, or any of their inverts, which are not counted here as separate tonal signals.
[0080] For this experiment we need a measurement of tone, even a crude one. Tone is commonly held to be very subjective in the human ear, and this inventor is not aware of any recognized physical measures. So here we will use the mean frequency of six strings on a prototype guitar, tuned to the standard EADGBE, and strummed individually in the sequence, 6-5-4-3-2-1-6-5-4-3-2-1, one-half to one second between picks, open fret, midway between the neck and the bridge. The spectral amplitudes are obtained by feeding the circuit output into a computer microphone input while running a shareware Fast Fourier Transform (FFT) program, Simple Audio Spectrum Analyzer v3.97c, © W. A. Speer 2001-2016, www_dot_techmind_dot_org. The program was used with the following settings:
TABLE-US-00001 TABLE 1 Settings for SpecAn_3.97 c Amplitude scale 135 db Logarithmic; Zero-weighted Frequency scale Logarithmic Mixer Mic input 100% Visualization Spectrograph with average Sample rate 16 kHz FFT size 4096 FFT Window Hanning (raised cosine)
[0081] This produced 2048 frequency bins of about 4 Hz each, from 0 to 7996 Hz. The export files in MSDOS txt format had headers giving the sample rate, number of windows of 4096 samples and total length of the signal in seconds (i.e., 139 windows, 17.792 second), notation of the Hanning window used, and zero-weighting. There followed two columns of comma-separated data, the frequency of the FFT bin in Hz, f.sub.n, and the average amplitude of the signal, S.sub.1, in each bin in dBFS, or the decibels as related to the full scale of the computer sound board input at zero dB.
[0082] Math 6 shows the calculations made in a spreadsheet program from those data. First S.sub.n, is converted from exponential dB data to a linear relative voltage, V.sub.n. Probability function of the spectrum, P.sub.v(f.sub.1), is calculated by dividing each bin signal voltage by the total of all the bin voltages. Said another way, this is the relative strength of each bin signal compared to the total signal. Then the mean frequency, mean.f, is calculated by multiplying the frequency of each bin by the relative strength of each bin. Higher moments are calculated as shown, but are presentations here as the square root of the second moment and the cube root of the third moment, so that both will be in dimensions of frequency (Hz). This was done for a total of 6 humbucking pickup combinations, shown in Table 2
TABLE-US-00002 TABLE 2 Spectrum Analysis Outputs for Humbucking Signals, ordered by frequency. Square Cube Root of Root of Humbucking Relative Mean Second Third Signal Amplitude Freq (Hz) Moment Moment N − B 0.80 862.3 929.4 1352.6 B + (M − N)/2 1.27 677.1 721.3 1125.3 N + (M − B)/2 0.91 645.4 793.4 1221.5 M + B 1.56 588.6 709.6 1185.4 N + M 1.11 518.7 709.1 1218.8 M + (N + B)/2 1.49 509.0 606.1 1057.6
[0083] The fact that the out-of-phase humbucking pair (N−B) has the highest mean frequency and the lowest relative amplitude is not surprising. Nor is the fact that all the circuits with the highest mean frequencies also have out-of-phase signals. And the humbucking signals with all the pickups in-phase have the lowest mean frequencies. The relative amplitudes range from 1.56 to 0.80, a factor of 1.95 to 1. It is not clear to this inventor how the root second and third moments can be used, so they will be ignored. Clearly, more work needs to be done on defining usable physical measures of tone.
Modified Circuit with a Linear 3-Gang Pot
[0084]
[0085] We take A, B & C to indicate both the pickups and their signals. The plus signs on the coils again indicate the relative hum phase, to emphasize that the circuits are humbucking. The plus signs also indicate relative string vibration signal phases when the pickups are N-up. When a pickup is S-up, the string signal phase is reversed. In both Figures, the fully-differential amplifiers, U1 & U2, should have gains of 2, so that the plus output of U1 is V1=(A−B), the plus output of U2 is (B−C), and the minus output of U2 is −(B−C). We start with the case of a linear pot, P, with three gangs, Pga, Pgb and Pgc. The pot gang a, Pga, forms the pseudo-sine signal on the wiper voltage, Vwa, according to Math 7. The output of the buffer, BUFF1, with a gain of one, is V.sub.Q=Vwa=Q(x)(B−C)=(2x−1)(B−C) for a linear pot. As before, the origin of the function Q(x) is at x=½, making it a pseudo-sine function instead of pseudo-cosine.
Vwa=(2x−1)(B−C)=Q(B−C) Math 7:
where 0≤x≤1, the fractional pot rotation
[0086] Resistor, R.sub.B, pot gang b, Pgb, and buffer, BUFF2, with a gain of forms the pseudo-cosine function, R(x). In the case of a linear pot, where the pot taper is f(x)=x, Math 8 shows the solution. With a linear taper, the counter-clockwise end of pot rotation is usually taken to be x=0, with the clockwise end at x=1. Therefore the resistance of pot P, of value P ohms, between the counter-clockwise end and the wiper is x, and between the wiper and the clockwise end is (1−x). The equation e1 in Math 8 is the circuit equation by the rule that all current which flows into a node must also flow out, since nodes can neither generate nor sink current.
[0087] As before, Q(x) is a fixed linear function, but the shape of R(x) can be changed slightly by changing the resistance value of wither R.sub.B or P. Since the pot is relatively expensive, with many fewer values to choose, we fix it for this exercise at 10 kΩ. Here, we minimize one of two measures of the deviation in the radius of (Qi,Ri) in the Q-R-plane, err.sub.i=SQRT(Qi.sup.2+Ri.sup.2)−1, over all the values x.sub.i for which they are calculated from Math 8. Most computer spreadsheets have an optimizing tool such as “Solver” or “What If”, that will minimize an objective function on one or more parameters, such as R.sub.B.
[0088]
[0089] Here we have defined Q(x)=2x−1, with Q(0)=−1, Q(½)=0 and Q(1)=1, with R(x)≥0. So the rotation of (Q(x),R(x)) through the QR-plane starts at (−1, 0), goes clockwise, and ends at (1, 0), the opposite of the standard mathematical angle, which is zero at (1, 0) and goes counter-clockwise. This explains the “1−” in Math 9. The arctangent is defined in the right-half plane or (Q,R), not the upper-half, so the adjustment to get it there is necessary for Qi<0. Also the arctangent is not defined for Q=0, when (Q,R)=(0,1), so the value of ½ is entered. QRrot.sub.i is the normalized rotational angle in the (Q,R)-plane, measured clockwise from (Q,R)=(−1, 0), calculated as if (Q,R) were a point in the (x,y)-plane. Because Q and R are not sine and cosine, QRrot is not x, but approximates x. It is distorted from x, as shown in the positions of the 40 points on the graph of R(x.sub.i) in
TABLE-US-00003 TABLE 3 Results of values of R.sub.B. Where RB is in ohms, followed by the Root-Sum-Square of the radius errors, (SQRT(Q(x.sub.i).sup.2 + R(x.sub.i).sup.2) − 1), the minimum radius error, the maximum radius error and the extreme limits of the rotational error. RSS Min Max Rotation R.sub.B(Ω) radius err rad err rad err err 1451 0.0948 −0.0232 0.0232 ±0.1093 1500 0.0891 −0.0240 0.0209 ±0.1083 1708 0.0785 −0.0283 0.0128 ±0.1044
[0090] Table 3 shows the results of the error measures for R.sub.B=1451, 1500 and 1708 ohms. They are not all that different. For R.sub.B=1451 ohms, the minimized maximum deviation of radius error is ±0.0232, and the RSS radius error is the largest at 0.0948. For R.sub.B=1708 ohms, the RSS radius error is 0.0785 and the maximum deviation in radius error is −0.0283, but the separation of deviation errors is 0.0411 instead of 0.0464. The average of 1451 and 1708 is 1579.5 ohms, and 1500 ohms is the closest 10% tolerance value. As the table shows, it makes a reasonable compromise.
Calibrating Buff2 Gain
[0091] There may be more latitude in setting R.sub.B than the gain, G (Math 8), of Buff2 in
Humbucking Pair Signals with a Linear 3-Gang Pot
[0092] The variable-gain summing circuit about op-amp U3 in
[0093] Recall from
TABLE-US-00004 TABLE 4 Ways to attached 3 pickups in humbucking pairs to 2 orthogonal functions 1.sup.st Choice 2.sup.nd Choice Choice for Q for R for R N − B M + N M + B M + B N − B M + N M + N M + B N − B
[0094] We can see that the first pair is Q(N−B) & R(M+N), and the next to last choice is Q(M+N) & R(N−B), and that they are different because when Q=0, the signal R(M+N) is in the middle of the pot range for the first pair, and R(N−B) is in the middle of the range for the next to last pair. Consider now the switched humbucking pairs and triples in Table 2, using the humbucking pair (N−B) and (M+N). The Humbucking Signal has the form: aN+bM+cB, which we set equal to Q′(N−B)+R′(M+N). We use Q′ and R′ because they are not yet in a form which sits on a unit radius half-circle in (Q,R)-space. Math 10 shows the conversions for Table 2 and the humbucking pair signals (N−B) and (M+N). The calculation of QRrot in Math 10 is equivalent to Math 9.
[0095] Q and R have been defined so that Q can be less than zero as a pseudo-sine function, but as a pseudo-cosine function, R cannot. So if the conversion would produce R<0, then the signs of both Q and R are reversed. Reversing the signs of Q and R merely reflects the output signal Q(N−B)+R(M+N) through the origin from the lower-half plane to the upper-half.
TABLE-US-00005 TABLE 5 Results of Math 10 applied to the humbucking pair signal Q(N − B) + R(M + N) and the results of three P-90 pickups in Table 2. HB Relative Signal a b c Q′ R′ Q R QRrot Fmean Amplitude N − B 1 0 −1 1 0 1 0 1 862 0.80 B + (M − N)/2 −½ ½ 1 −1 ½ −0.89 0.45 0.15 677 1.27 N + (M − B)/2 1 ½ −½ ½ ½ 0.71 0.71 0.75 645 0.91 M + B 0 1 1 −1 1 −0.71 0.71 0.25 589 1.56 M + N 1 1 0 0 1 0 1 0.50 519 1.11 M + (N + B)/2 ½ 1 ½ −½ 1 −0.45 0.89 0.35 509 1.49
[0096] Table 5 shows the results. Note that to save space, Q and R in Table 5 are expressed to only two decimal places. When this is applied to the other 5 humbucking pair combinations in Table 4, Q′ and R′ will be various combinations of 0, ±½, and ±1, which can produce a range of QRrot, as shown in Table 6.
TABLE-US-00006 TABLE 6 Range of QRrot for humbucking pair and triple signals. Limited to two decimal places for space. Q′ 0.00 1.00 −1.00 1.00 −1.00 0.50 −0.50 0.50 −0.50 1.00 −1.00 R′ 1.00 0.00 0.00 1.00 1.00 0.50 0.50 1.00 1.00 0.50 0.50 Q 0.00 1.00 −1.00 0.71 −0.71 0.71 −0.71 0.45 −0.45 0.89 −0.89 R 1.00 0.00 0.00 0.71 0.71 0.71 0.71 0.89 0.89 0.45 0.45 Qrrot 0.50 0.00 0.00 0.25 0.75 0.25 0.75 0.35 0.65 0.15 0.85
[0097] So QRrot can be 0, 0.15, 0.25, 0.35, 0.50, 0.65, 0.75, 0.85 and 1.00 to 2 decimal places. But QRrot is not x, the fractional pot rotation. It is the result of the fractional pot rotation, in the linear gang equations of Maths 7 & 8, applied to either Math 9 or Math 10. The actual amount of pot rotation, x, that produces QRrot has to be calculated, using those equations, generally using a “Solver” or “What If” spreadsheet tool or computer program to find the value of x that fits with the coefficients Q and R derived from humbucking pair and triple signal equations. Table 7 shows the conversion for QRrot to x for Maths 7-10 in
TABLE-US-00007 TABLE 7 Conversion from QRrot to x for linear gangs, P = 10 kohms, R.sub.B = 1500 ohms, to four decimal places, with the (Q, R) radius, QRrad QRrot x QRrad 0.0000 0.0000 1.0000 0.1476 0.0605 0.9580 0.2500 0.1417 0.9773 0.3524 0.2723 0.9987 0.5000 0.5000 1.0000 0.6476 0.7277 0.9987 0.7500 0.8583 0.9773 0.8524 0.9395 0.9580 1.0000 1.0000 1.0000
[0098] The values for x in Table 7 have to be used in the rotation of the pot gang, Pgc, in the gain circuit about U3 in
TABLE-US-00008 TABLE 8 Table 5 recast with x added, for aN + bM + cB .fwdarw. Q(N − B) + R(M + N), P = 10kΩ, R.sub.B = 1500Ω, in FIGs. 5 & 6, for three P-90 pickups from Table 2 data Mean Relative HB Freq Amplitude Signal a b c Q R QRrot x (Hz) V.sub.HB N − B 1 0 −1 1.00 0.00 1.00 1.00 862 0.8 N + (M − B)/2 1 ½ −½ 0.71 0.71 0.75 0.86 645 0.91 M + N 1 1 0 0.00 1.00 0.50 0.50 519 1.11 M + (N + B)/2 ½ 1 ½ −0.45 0.89 0.35 0.27 509 1.49 M + B 0 1 1 −0.71 0.71 0.25 0.14 589 1.56 B + (M − N)/2 −½ ½ 1 −0.89 0.45 0.15 0.06 677 1.27 −(N − B) −1 0 1 −1.00 0.00 0.00 0.00 862 0.8
[0099]
Fitting the 3.SUP.rd .Linear Pot Gang Circuit to Compensate for Relative Amplitude
[0100] The right-hand circuit using U3 in
[0101] The gain of Vo/V.sub.2 must always be greater than 1 for the circuit to work, and has to be at least 2 to bring back V.sub.HB in full force. We can accomplish this by setting a desired target output of Vo=2>V.sub.HB=1.56, and solving for the best fit by changing R.sub.F, R.sub.1 and R.sub.2, using the seven data (x, V.sub.HB) points in Table 8, where V.sub.HB is taken to be the Relative Amplitude. In this case, we take an objective function of the sum of squares of the percentage variation of Vo from 2, or SUMSQ((Voi−2)/2), and change R.sub.F, R.sub.1 and R.sub.2 to obtain a minimum. Using any other optimizing measure is left as an exercise for the reader. Results will vary with the objective function. We will find that, because the curves in
[0102] In this example, the QRrad numbers from Table 7 have been neglected. The values of Relative Amplitude from Table 2 are used directly instead of being corrected by multiplication by the values of QRrad.
TABLE-US-00009 TABLE 9 Results for fitting R.sub.1, R.sub.2 and R.sub.F in the U3 summer circuit in FIG. 5 for V.sub.HB = Q(N − B) + R(M + N), with a target value of Vo = 2, using an objective function of SUMSQ((Voi − 2)/2), with P = 10kΩ, R.sub.F = 7694Ω, R.sub.1 = 4096Ω and R.sub.2 = 2059Ω V.sub.HB Variation Vo Variation Variation x Fmean V.sub.HB From Mean Gain Vo From Mean Vo-2 From 2 0.0000 862 0.80 −0.295 2.638 2.111 0.085 0.111 0.055 0.1476 645 0.91 −0.198 1.909 1.737 −0.107 −0.263 −0.131 0.5000 519 1.11 −0.021 1.467 1.629 −0.162 −0.371 −0.186 0.7277 509 1.49 0.314 1.476 2.199 0.131 0.199 0.099 0.8583 589 1.56 0.375 1.559 2.432 0.250 0.432 0.216 0.9395 677 1.27 0.120 1.654 2.100 0.080 0.100 0.050 1.0000 862 0.80 −0.295 1.758 1.406 −0.277 −0.594 −0.297 Mean = 1.13 0 1.78 1.94 0.00 −0.06 −0.03 SumSq = 0.466788064 0.2079514 0.80785 0.201963
[0103] Note that the Gain is roughly parabolic in
[0104] Choosing different combinations of humbucking pairs in Table 4 to use with Q and R to create a composite tone mainly changes the order of occurrence of the switched tones from Table 2 as the pot in
TABLE-US-00010 TABLE 9 Conversion of coefficients of aN + bM + cB to humbucking pairs using Q′ and R′ a b c Q′(N − B) + R′(M + N) Q′ + R′ R′ −Q′ Q′(N − B) + R′(M + B) Q′ R′ R′ − Q′ Q′(M + B) + R′(N − B) R′ Q′ Q′ − R′ Q′(M + B) + R′(M + N) R′ Q′ + R′ Q′ Q′(M + N) + R′(M + B) Q′ Q′ + R′ R′ Q′(M + N) + R′(N − B) Q′ + R′ Q −R′
[0105] Tables 10-15 show the results of computing Q and R from the humbucking circuit signals in Table 2, expressed as aN+bM+cB, using Table 9 and Math 10, for the QR forms: Q(N−B)+R(M+N), Q(N−B)+R(M+B), Q(M+B)+R(N−B), Q(M+B)+R(M+N), Q(M+N)+R(M+B) and Q(M+N)+R(N−B). The minus signs in the first column, HB Circuit, indicate that the original value of R was negative and that the signs of both Q and R were changed to put the (Q,R) point in the upper-half plane. The results have been sorted so that the QRrot and x columns always increase going down. These results show how the mean frequency, Fmean, and relative amplitude, RelAmp, values from associated with the humbucking circuits in Table 2 distribute along the fractional linear pot rotation, x, because of the associations of humbucking pairs with Q an R in Tables 4 & 9.
TABLE-US-00011 TABLE 10 QRrot and x Results for Q(N − B) + R(M + N) HB Circuit QRrot x Fmean RelAmp −(N − B) 0.000 0.000 862.3 0.8 B + (M − N)/2 0.148 0.061 677.1 1.27 M + B 0.250 0.142 588.6 1.56 M + (N + B)/2 0.352 0.272 509 1.49 M + N 0.500 0.500 518.7 1.11 N + (M − B)/2 0.750 0.858 645.4 0.91 N − B 1.000 1.000 862.3 0.8
TABLE-US-00012 TABLE 11 QRrot and x Results for Q(N − B) + R(M + B) HB Circuit QRrot x Fmean RelAmp −(N − B) 0.000 0.000 862.3 0.8 B + (M − N)/2 0.250 0.142 677.1 1.27 M + B 0.500 0.500 588.6 1.56 M + (N + B)/2 0.648 0.728 509 1.49 M + N 0.750 0.858 518.7 1.11 N + (M − B)/2 0.852 0.940 645.4 0.91 N − B 1.000 1.000 862.3 0.8
TABLE-US-00013 TABLE 12 QRrot and x Results for Q(M + B) + R(N − B) HB Circuit QRrot x Fmean RelAmp −(M + B) 0.000 0.000 588.6 1.56 −(B + (M − N)/2) 0.250 0.142 677.1 1.27 N − B 0.500 0.500 862.3 0.8 N + (M − B)/2 0.648 0.728 645.4 0.91 M + N 0.750 0.858 518.7 1.11 M + (N + B)/2 0.852 0.940 509 1.49 M + B 1.000 1.000 588.6 1.56
TABLE-US-00014 TABLE 13 QRrot and x Results for Q(M + B) + R(M + N) HB Circuit QRrot x Fmean RelAmp −(M + B) 0.000 0.000 588.6 1.56 −(B + (M − N)/2) 0.148 0.061 677.1 1.27 N − B 0.250 0.142 862.3 0.8 N + (M − B)/2 0.352 0.272 645.4 0.91 M + N 0.500 0.500 518.7 1.11 M + (N + B)/2 0.750 0.858 509 1.49 −(M + B) 1.000 1.000 588.6 1.56
TABLE-US-00015 TABLE 14 QRrot and x Results for Q(M + N) + R(M + B) HB Circuit QRrot x Fmean RelAmp −(M + N) 0.000 0.000 518.7 1.11 −(N + (M − B)/2) 0.148 0.061 645.4 0.91 −(N − B) 0.250 0.142 862.3 0.8 B + (M − N)/2 0.352 0.272 677.1 1.27 M + B 0.500 0.500 588.6 1.56 M + (N + B)/2 0.750 0.858 509 1.49 M + N 1.000 1.000 518.7 1.11
TABLE-US-00016 TABLE 15 QRrot and x Results for Q(M + N) + R(N − B) HB Circuit QRrot x Fmean RelAmp −(M + N) 0.000 0.000 518.7 1.11 −(N + (M − B)/2) 0.250 0.142 645.4 0.91 −(N − B) 0.500 0.500 862.3 0.8 B + (M − N)/2 0.648 0.728 677.1 1.27 M + B 0.750 0.858 588.6 1.56 M + (N + B)/2 0.852 0.940 509 1.49 M + N 1.000 1.000 518.7 1.11
TABLE-US-00017 TABLE 16 QRrot and x Results for Q(x), R(x) & humbucking pairs in FIGS. 12 & 13 Q(N − B) + R(M + N) Fmean1, Relamp1 Q(N − B) + R(M + B) Fmean2, Relamp2 Q(M + B) + R(N − B) Fmean3, Relamp3 Q(M + B) + R(M + N) Fmean4, Relamp4 Q(M + N) + R(M + B) Fmean5, Relamp5 Q(M + N) + R(N − B) Fmean6, Relamp6
[0106] Table 16 gives the associations of QR-forms to variables in
[0107] This illustrates the value of actually plotting the results of using pickups on a guitar before designing circuits, and having at least a rough estimate of how those pickups with work with those circuits.
TABLE-US-00018 TABLE 17 Results of minimizing the Objective Function = SUMSQ((Vo(x.sub.i) − 2)/2) by varying R.sub.1, R.sub.2 & R.sub.F in FIGS. 5 & 6, using data from Tables 10-15 Table & HB Relation Fit Math 11 to FIG. 5 Fit Math 12 to FIG. 6 Table 10: 0.2022 0.4441 Q(N − B) + R(M + N) Table 11: 0.0173 0.4376 Q(N − B) + R(M + B) Table 12: 0.3607 0.0350 Q(M + B) + R(N − B) Table 13: 0.3608 0.1661 Q(M + B) + R(M + N) Table 14: 0.1781 0.2490 Q(M + N) + R(M + B) Table 15: 0.2201 0.1977 Q(M + N) + R(N − B)
[0108] Table 17 shows the results of fitting
[0109]
[0110] So for at least two different approaches, using either Q(N−B)+R(M+B) or Q(M+B)+R(N−B), gain compensation in the summer stage, U3+components, works to overcome output variations due to string signal phase cancellations. The Q(N−B)+R(M+B) setup has the smallest error and puts the brightest tone at both ends of the pot rotation. The Q(M+B)+R(N−B) setup has the next smallest error and improvement, and puts the brightest tone at the middle of the pot rotation.
[0111] For 4 or more pickups, original combinations of humbucking pairs using the circuit in
A Nonlinear 3-Gang Pot with One Common Taper
[0112] The consequences of the nonlinearities of angular rotation, QRrot, in the circuits in the pseudo-sine and pseudo-cosine circuit produced by pot gangs Pga and Pgb in
[0113] All of the pot taper functions presented here are of the form in Math 13, except for some variations in conditions on the first derivative with respect to x. Even the linear taper fits the general definition. And all have a form of symmetry. Start with f(0)=0, f(0.5)=0.5 and f(1)=1. For a variable, u, such that 0≤u≤0.5, the line passing from (0.5−u,f(0.5−u) to (0.5+u,f(0.5+u) will always pass through (0.5,f(0.5))=(0.5,0.5). For clarity, the Claims will assign the taper function f(x) to Pga, g(x) to Pgb and h(x) to Pgc. But they are all of this general quality, of which Math 13 is a subset. Sometimes will be all the same function, as in the previous sections, where they were all f(x)=g(x)=h(x)=x, the linear taper.
[0114] For k=1 in Math 13, f.sub.1(x)=f.sub.2(x)=x, the linear pot already addressed, which means that Q(x)=2f(x)−1=2x−1. We will try k=2, 3 & 4, as shown in Maths 14-17. The first condition in Math 13, f.sub.1(0)=0, means that a.sub.0=0. That leaves 5 other conditions which can be used to reduce the number of unknown coefficients, a.sub.i and b.sub.i, to terms involving just a few unknown coefficients, to be used as one or more parameters with R.sub.B, in the method using Maths 7, 8 & 9 to get from Table 2 to Table 3. In Math 14, one can use all five remaining conditions, in which a symbolic math solution package leaves b.sub.0 as the controlling parameter, or use only four of the remaining conditions, as was done here, and solve for a.sub.1 as the controlling parameter.
For k=2:f.sub.1(x)=a.sub.1x+a.sub.2x.sup.2, f.sub.2(x)=b.sub.0+b.sub.1x+b.sub.2x.sup.2
Using a.sub.1 as parameter, solves to:
f.sub.1(x)=a.sub.1x+2(1−a.sub.1)x.sup.2
f.sub.2(x)=a.sub.1−1+(4−3a.sub.1)x+2(a.sub.1−1)x.sup.2 Math 14.
Provided: 0≤a.sub.1<1
For k=3:f.sub.1(x)=a.sub.1x+a.sub.2x.sup.2+a.sub.3x.sup.3, f.sub.2(x)=b.sub.0+b.sub.1x+b.sub.2x.sup.2+b.sub.3x.sup.3
Using a.sub.1 & b.sub.0 as parameters, solves to:
f.sub.1(x)=a.sub.1x+(3−3a.sub.1+b.sub.0)x.sup.2 +(2a.sub.1−2b.sub.0 −2)x.sup.3
f.sub.2(x)=b.sub.0+(a.sub.1−4b.sub.0)x+(5b.sub.0−3a.sub.1+3)x.sup.2+(2a.sub.1−2b.sub.0−2)x.sup.3 Math 15.
Provided: 0≤a.sub.1<1, b.sub.0<1−a.sub.1
For k=4:
f.sub.1(x)=a.sub.1x+a.sub.2x.sup.2+a.sub.3x.sup.3+a.sub.4x.sup.4,
f.sub.2(x)=b.sub.0+b.sub.1x+b.sub.2x.sup.2+b.sub.3x.sup.3+b.sub.4x.sup.4,
Using a.sub.1, a.sub.2, b.sub.0& b.sub.1 as parameters, solves to:
f.sub.1(x)=a.sub.1x+a.sub.2x.sup.2+(6b.sub.0+b.sub.1−11a.sub.1−4a.sub.2+10)x.sup.3+(14a.sub.1+4a.sub.2−12b.sub.0−2b.sub.1−12)x.sup.4
f.sub.2(x)=b.sub.0+b.sub.1x+(a.sub.1+3−11b.sub.0−4b.sub.1)x.sup.2+(18b.sub.0+5b.sub.1−3a.sub.1−2)x.sup.3 +(2a.sub.1−8b.sub.0−2b.sub.1)x.sup.4 Math 16.
Provided: 0≤a.sub.1<1, 6b.sub.0+b.sub.1<2−a.sub.1
For k=4, a,.sub.3=b.sub.3=0:
f.sub.1(x)=a.sub.1x+a.sub.2x.sup.2+a.sub.4x.sup.4,
f.sub.2(x)=b.sub.0+b.sub.1x+b.sub.2x.sup.2+b.sub.4x.sup.4
Using a.sub.1 & b.sub.0 as parameters, solves to:
[0115] In each of Maths 14-17, the resulting equations for f.sub.1(x) and f.sub.2(x) are verified to meet the conditions. Substituting f(x) for x in Maths 7&8 for the linear pot gangs produces Q(x) and R(x) for the nonlinear pot gangs. A spreadsheet was calculated and tabulated for each of the equations in Math 7&8, and Maths 14-17. The pot value was set to P=1, and R.sub.B and the indicated parameters in Maths 14-17 were set up accordingly. The first column calculated x from 0 to 1 in 40 steps of 0.025. The next columns, respectively, calculated f(x), Q(x), R(x), RadErr, QRrot and RotErr, where RadErr is the radius error, SQRT(Q.sup.2+R.sup.2)−1, QRrot is the QR-plane rotation of (Q,R), as calculated as in Math 9, and RotErr is QRrot(x)−x. The maximum, minimum and sum-squared values of RadErr and RotErr were calculated. The objective function to be minimized by the parameters is ObjFunct=SUMSQ(RadErr.sub.i)+MAX(RotErr.sub.i)+ABS(MIN(RotErr.sub.i), i=0, 40. Table 18 below shows these results. The numbers in bold print are the variable parameters.
TABLE-US-00019 TABLE 18 Fitting solutions for RB and f(x) for Maths 7, 8 & 14-17. Variable parameters designated by bold letters; empty parameters not used. RadErr is radius error, SQRT(Q.sup.2 + R.sup.2) − 1, RotErr is rotational error, the difference between the normalized clockwise rotation of (Q, R) from (−1, 0) and the normalized clockwise rotation of the pot. The pot value is normalized to P = 1. ObjFunct = SUMSQ(RadErr.sub.i) + MAX(RotErr.sub.i) + ABS(MIN(RotErr.sub.i), i = 0, 40. Maths 7&8 Math 14 Math 15 Math 16 Math 17 RB 0.22909 0.16339 0.16651 0.16248 0.16357 a1 1.00000 0.20573 0.22194 0.28030 0.21556 a2 1.58855 1.46407 0.74723 1.52184 a3 0.18409 2.58493 a4 −2.40118 0.18818 b0 −0.79427 −0.87010 −0.23052 −0.86285 b1 3.38282 3.70236 0.04027 3.63560 b2 −1.58855 −2.01634 5.65493 −1.83547 b3 0.18409 −6.78890 b4 2.32422 0.06273 Max(RadErr) 0.00086 0.01553 0.01440 0.01588 0.01548 Min(RadErr) −0.04171 −0.02784 −0.02855 −0.02758 −0.02788 SumSq(RadErr) 0.01423 0.00885 0.00903 0.00909 0.00892 Max(RotErr) 0.09660 0.00734 0.00633 0.00550 0.00682 Min(RotErr) −0.09660 −0.00734 −0.00633 −0.00558 −0.00648 SumSq(RotErr) 0.18311 0.00092 0.00082 0.00051 0.00087 ObjFunct 0.20743 0.02354 0.02169 0.02016 0.02222
[0116] The Figures and Table make it clear that there is a huge improvement, mostly in the rotational error, going from Maths 7&8 to Math 14, with a reduction in the Objective Function of 8.8 times. But the improvements going from Math 14 to Maths 15-17 are relatively variable and minor. Therefore, it is reasonable to be satisfied with corrections in Math 14. When the standard potentiometer accuracy tolerance in electric guitar pots is ±10% or ±20%, it may be asking a bit much to distinguish between Math 14 and Math 16.
A Nonlinear 3-Gang Pot with Two Different Gang Tapers & Center-Tapped Pgb
[0117] If the pot gangs Pga and Pgb don't have to have the same taper functions, another possibility arises.
[0118] We can start to understand pot gang Pgb in
[0119]
TABLE-US-00020 TABLE 19 Q(x) coefficients in f(x) and R(x) coefficients in g(x) f(x) coefficients g(x) coefficients a1 = 0.16709 c1 = 1.83291 a2 = 1.66581 c2 = −1.66581 b0 = −0.83291 d0 = 0.83291 b1 = 3.49872 d1 = −1.49872 b2 = −1.66581 d2 = 1.66581
TABLE-US-00021 TABLE 20 Radius Error and Rotational Error for (Q(x), R(x)) fitted by coefficients in Table 19 to Maths 14, 18 & 19 RadErr RotErr Max = 0.001584 0.009175 Min = −0.010078 −0.009175 SumSq = 0.001556 0.001752
[0120] As
Gain Curves for Nonlinear Pot Gangs in the U3 Summer/Compensator Circuit
[0121] Let h(x) be the taper function for pot gang Pgc, primarily for use in the Claims, and then realize that it will often be one of the previously defined functions. Also, in these cases, the values of QRrad in Table 21 are ignored, and not used to correct the values of Relative Amplitude in Table 2, which are directly taken as the values for V.sub.HB. Using Maths 11 & 12, the linear pot gang has already been fitted to the summation-compensation circuit about U3 in
[0122] That being said, there are three nonlinear pot gang tapers to consider for the gain curves. The first gang taper is the f(x) S-curve defined in Maths 13 & 14 for the pot with all three gang tapers the same, using scaled values of P=1, R.sub.B=0.16339, and a.sub.1=0.20573, listed in Table 18, used in
[0123] But before these pot tapers can be used in fitting the compensation gain, to get results like Tables 10-15 & 17, we need to have transformations stating the distortion between QRrot and x, as with Table 7 for the linear pot gangs. For the first nonlinear taper, Table 21 shows the results of substituting f(x) for x in Math 7 for Q(x) and Math 8 for R(x) and Math 10 for QRrot. A Solver or What If spreadsheet tool is used to fit x to produce the values of QRrot derived in Tables 5-7. For the second and third non-linear tapers, which use the U1, U2, Buff1 & Buff2 circuits in
TABLE-US-00022 TABLE 21 Conversion from QRrot to x for nonlinear gangs, with all the same taper, using FIGS. 5 & 6, P = 1, R.sub.B = 0.163391 and a.sub.1 = 0.205727, with the (Q, R) radius, QRrad QRrot x QRrad 0.0000 0.0000 1.0000 0.1476 0.1442 0.9779 0.2500 0.2434 1.0063 0.3524 0.3550 1.0142 0.5000 0.5000 1.0000 0.6476 0.6450 1.0142 0.7500 0.7566 1.0063 0.8524 0.8558 0.9779 1.0000 1.0000 1.0000
[0124] For comparison,
TABLE-US-00023 TABLE 22 Conversion from QRrot to x for nonlinear gangs, using FIG. 18, P = 1 ohm and a.sub.1 = 0.16709, with the (Q, R) radius, QRrad QRrot x QRrad 0.0000 0.0000 1.0000 0.1476 0.1388 0.9944 0.2500 0.2500 1.0016 0.3524 0.3612 0.9944 0.5000 0.5000 1.0000 0.6476 0.6388 0.9944 0.7500 0.7500 1.0016 0.8524 0.8612 0.9944 1.0000 1.0000 1.0000
[0125] Tables 23-25 below show results similar to Table 17, for the three nonlinear taper functions used in pot gang, Pgc, in the summer/compensator circuit in
TABLE-US-00024 TABLE 23 Results of minimizing the Objective Function = SUMSQ((Vo(x.sub.i) − 2)/2) by varying R.sub.1, R.sub.2 & R.sub.F in FIGS. 18 & 26, using Table 21, the first nonlinear function, f(x) w/al = 0.20573, and Maths 11 & 12 HB Relation Fit Math 11 to FIG. 18 Fit Math 12 to FIG. 26 Q(N − B) + R(M + N) 0.20216 0.292082 Q(N − B) + R(M + B) 0.018466 0.437127 Q(M + B) + R(N − B) 0.36066 0.037055 Q(M + B) + R(M + N) 0.36077 0.166171 Q(M + N) + R(M + B) 0.17954 0.255171 Q(M + N) + R(N − B) 0.220739 0.195597
TABLE-US-00025 TABLE 24 Results of minimizing the Objective Function = SUMSQ((Vo(x.sub.i) − 2)/2) by varying R.sub.1, R.sub.2 & R.sub.F in FIGS. 18 & 26, using Table 22, the second nonlinear function, f(x) w/al = 0.16709, and Maths 11 & 12 HB Relation Fit Math 11 to FIG. 18 Fit Math 12 to FIG. 26 Q(N − B) + R(M + N) 0.202569 0.294373 Q(N − B) + R(M + B) 0.015305 0.437096 Q(M + B) + R(N − B) 0.360691 0.033415 Q(M + B) + R(M + N) 0.36077 0.165708 Q(M + N) + R(M + B) 0.177359 0.254756 Q(M + N) + R(N − B) 0.220643 0.195837
TABLE-US-00026 TABLE 25 Results of minimizing the Objective Function = SUMSQ((Vo(x.sub.i) − 2)/2) by varying R.sub.1, R.sub.2 & R.sub.F in FIGS. 18 & 26, using Table 22, the third nonlinear function, g(x) w/al = 0.16709 from Math 20, and Maths 11 & 12 HB Relation Fit Math 11 to FIG. 18 Fit Math 12 to FIG. 26 Q(N − B) + R(M + N) 0.173195 0.397196 Q(N − B) + R(M + B) 0.117096 0.437195 Q(M + B) + R(N − B) 0.36109 0.16958 Q(M + B) + R(M + N) 0.360764 0.210969 Q(M + N) + R(M + B) 0.264844 0.298976 Q(M + N) + R(N − B) 0.283408 0.28567
Near Perfect Amplitude Compensation for HB Pair and Triple Points
[0126]
[0127] Maths 21 & 25-27 pick R.sub.F and R.sub.1 to assure that h(0)=0, h(0.5)=0.5 and h(1)=1 in
[0128] For the P-90 pickup used here, 0.80≤Vhb≤1.56. Suppose we want all seven outputs from the U3 circuit, for the Vhb=RelAmp*QRrad=RelAmp*SQRT(Q.sup.2+R.sup.2), to show at the output of U3 as Voset=2. For this example, we use Vhb=Q(x)(N−B)+R(x)(M+B), from Tables 2 & 11, where we have measured values of RelAmp for the six humbucking pairs and triples from switched circuits. As
[0129] The next column is hp.sub.i, calculated from the values of Gn.sub.i, R.sub.F, R.sub.1 and P, according to Math 29, followed by columns of hfit.sub.i, hpfit.sub.i and hperr.sub.i. The columns of Refit.sub.i, Gfit.sub.i and Vofit.sub.i, according to Math 30. The x.sub.i column is copied to the hpfiti column for starting values. Then in each row, i, a Solver or What If spreadsheet tool is used to vary hpfit.sub.i to drive hperr.sub.i to zero. The resulting values of Vofit.sub.i then equal Voset to within an error of about 1.e−5. The plot of hfit.sub.i versus x.sub.i, as shown in
[0130] It turns out that it is not so clear and easy to fit h(x)=a.sub.ix+a.sub.2x.sup.2+ . . . a.sub.Nx.sup.N by minimizing an objective function. It is easy to end up with negative slopes in h(x), which are physically impossible in an analog pot taper, at least by current technology. Or no solution at all. Other mathematical methods exist for fitting piecewise polynomial or bezier curves to known points that might be employed. The question remains as to whether or not a pot maker can match the curves for the right price.
Tone Controls
[0131] Briefly,
Digital Pots and FFTs
[0132] A prominent maker of commercial and guitar pots responded to a query about its estimated price and minimum quantity for an order of special-order pot with custom tapers. It's standard pots would run $1 to $3 each, custom taper pot would run up to three times as much, and the minimum order could be 20 k, for a possible total order of up to $180,000. It was clearly referring to single-gang pots, not three-gang. A few years ago, surface-mount device digital pots with 256 taps, common values of 10 k, 50 k and 100 k, with serial digital input controls could be bought for $0.70 to less than $3.00 each in minimum orders of 1 each. To the practical limits of its repeatability and accuracy, any digital pot can have any taper in software, even non-physical tapers. It remains to integrate a micro-controller or microprocessor into a guitar to take advantage of this flexibility. Others claim to have done so, including Elion (U.S. Pat. No. 5,140,890, 1992), and Ball, et al. (U.S. Pat. No. 9,196,235, 2015; U.S. Pat. No. 9,640,162, 2017), but without addressing this particular situation.
[0133]
[0134] If the micro-controller or micro-processor that drives the digital pots has sine and cosine functions in it math processing unit (MPU), then they can be used directly both in driving digital pots in this application, or in calculating FFTs of both single sensors and humbucking pair signals, as Baker discussed in previous publications and patent applications. But the previous NPPA from which this continues, 16/985,863 (Baker, Aug. 5, 2020), sine and cosine were approximated by a four-function-plus-square-root MPU. The functions developed here don't require a square root function to approximate sine and cosine.
Using a.sub.1 as parameter
where 0≤x≤1 is the fractional pot rotation
f.sub.1(x)=a.sub.1x+2(1−a.sub.1)x.sup.2, 0≤x≤0.5
f.sub.2(0.5+u)=0.5+f.sub.1(0.5−u), 0≤u≤0.5, 0.5≤(x=0.5+u)≤1
Q(x)=2f(x)−1
g.sub.1(x)=(2−a.sub.1)x+2(a.sub.1−1)x.sup.2, 0≤x≤0.5
g.sub.2(0.5+u)=g.sub.1(0.5−u), 0≤u≤0.5, 0.5≤(x=0.5+u)≤1
R(x)=2g(x)
f.sub.1(x)+g.sub.1(x)=2x, Q(x)+R(x)=4x−1 Math 33
[0135] Reconsider Maths 7, 13, 14, 19 & 20 recast as Math 33, with a change to the definition of g.sub.2(x).
Using a.sub.1 as parameter
where 0≤x≤1 is the fractional pot rotation
Q.sub.1(x)=(2(1−a.sub.1)x+a.sub.1)2x−1, 0≤x≤0.5
Q.sub.2(0.5+u)=−Q.sub.1(0.5−u), 0≤u≤0.5, 0.5≤(x=0.5+u)≤1
R.sub.1(x)=4x−1−Q.sub.1(x)
R.sub.2(0.5+u)=R.sub.1(0.5−u), 0≤u≤0.5, 0.5≤(x=0.5+u)≤1 Math 34.
[0136] In the previous invention, NP patent application Ser. No. 16/985,863, the pseudo-sine and -cosine functions required the four basic calculator functions plus square root. This invention needs only the four basic math functions, plus, minus, multiply and divide, to calculate the piecewise-polynomials used as orthogonal functions instead of sine and cosine. This allows a wider range of available micro-controllers and micro-processors to be used. And depending upon what accuracy in spectral analysis is truly needed to make a credible and audible distinction between tones, these piecewise-polynomial pseudo-functions might also be used in Fourier Transforms, both forward and inverse.
Using a.sub.1 as parameter
f(x)=(2(1−a.sub.1)x+a.sub.1)2x
apcos(x)=1−2f(x), 0≤x≤0.5
apsin(x)=2(2x−f(x)), 0≤x≤0.5 Math 35.
[0137] Math 35 shows the functions in Math 33 & 34 reconfigured to produce an approximate sine, apsin, and an approximate cosine, apcos, as plotted for one-quarter cycle in
[0138]
f(x)=a.sub.0+a.sub.1x+a.sub.2x.sup.2
f(0)=1.Math.a.sub.0=1
f′(0)=0.Math.a.sub.1=0
f(0.5)=1.Math.a.sub.2=−4
∴f(x)=1−4x.sup.2 Math 37.
[0139] Following work done in NP patent application Ser. No. 16/985,863, it is possible to get a better fit using an approximating polynomial in terms of x, x.sup.2 and x.sup.4. Math 38 shows the derivation, and Math 39 shows the expansion from a quarter-cycle to a full cycle. For a.sub.2=−4.896, making a.sub.4=3.584, the error in apsin(x) and apcos(x) is about ±0.00092, considerably better than for Math 36.
[0140] f(x)=a.sub.0+a.sub.1x+a.sub.2x.sup.2+a.sub.4x.sup.4
f(0)=1.Math.a.sub.0=1
f′(0)=0.Math.a.sub.1=0
f(0.5)=1.Math.a.sub.4=−16−4a.sub.2
∴Using a.sub.2 as parameter
f(x)=1+a.sub.2x.sup.2−(16+4a.sub.2)x.sup.4 Math 38.
Using a.sub.2 as parameter
Preferred Embodiments
[0141] To recap, this invention presents circuit embodiments using a 3-gang pot to mix and compensate two signals, to produce an output of approximately uniform volume, despite amplitude variations due to phase cancellations between the two signals. One gang, Pga, physically simulates a pseudo-sine function, Q(x). A second gang, Pgb, physically simulates a pseudo-cosine function, R(x). Where 0≤x ≤1 is fractional pot rotation, the angular origin of functions sit at the center of the pot rotation, x =0.5 The part of the circuit with Pgb has two embodiments. The first embodiment uses a resistor, R.sub.B, in series with the wiper, compensated by the gain of a buffer amplifier. The second embodiment uses a gang with a center-tapped input and no series resistor, with the wiper connected to a unit-gain buffer amplifier.
[0142] The third gang, Pgc, modifies the gain of a summer/compensator op-amp, U3, in one of either two configurations. One configuration puts the gang in a circuit between the op-amp output and minus input, to produce the highest gain at x=0.5. The second configuration puts the gang between the minus input and signal ground, to produce the lowest gain at x=0.5. The Pgc circuit has two embodiments. One has two different resistors, R.sub.1 & R.sub.2, connected to the end terminals of the pot, then connected to each other, forming with gang Pgc a variable resistor between the pot wiper and the R.sub.1-R.sub.2 connection. The other connects the end terminals of gang Pgc together, and connects a single resistor, R1, to either the pot wiper or the end terminals, forming with Pgc a variable resistor.
[0143] The physical pot taper functions, f(x) for Pga, g(x) for Pgb and h(x) for Pgc, can be the same or different, can be linear, piecewise-polynomial or segmented straight lines between known points. The resistors, gains and taper functions are chosen and designed to minimize three things: 1) the error between the vector (Q(x),R(x)) and the unit vector in the QR-plane; 2) the error between x and the normalized angular rotation of vector (Q(x),R(x)), that rotation being from 0 at (−1,0) to ½ at (0,1) to 1 at (1,0); and 3) the amplitude variations in the combined output signal due to phase cancellations between the two input signals, to produce a constant amplitude with the rotation of the pot at the output of the summer/compensator. These circuits can also be cascaded to add more matched pickups in electric guitars.
[0144] In reality, the preferred embodiment is the one that can produce the least radial, rotational and amplitude error at the price one can best afford. This invention allows a patent licensee to start with linear pots and move up with market demand. Otherwise, if price is no object, the last example presented here, with near-perfect output amplitude, looks to be the best.
[0145] Here, pot tapers have been shaped to provide the closest physical approximations one can get sine and cosine functions in the manipulations of gains in the circuits. This work and previous work done on U.S. NP patent application Ser. No. 16/986,863, suggest better approximations for approximate sine and approximate cosine functions, or “apsin” and “apcos”. These can be used in three digital pots in and equivalent mixing circuit, driven by programmable processors with simple four-function math processing units (MPUs). These must be considered because of the much larger expense of making and buying custom-taper three-gang potentiometers. Digital pots cost little or no more and can even have non-physical tapers, determined by software. Digital pots driven by a programmable processor also offer what mechanical pots cannot, the ability of the user to put a particular sequence of favorite tones in whatever order the user likes, using a digital user interface.
[0146] These apsin and apcos functions can also be optimized and used to generate FFT spectral analyses of the input signals. Two embodiments are provided. One takes a quarter-cycle fit to apcos, using a second-order polynomial with one fitting parameter, and generates all four quarter-cycles of both apcos and apsin. Its error in fitting cosine and sine is about ±2.1 percent The other uses a fourth-order polynomial with one fitting parameter to generate all four quarter cycles of apcos and apsin from one quarter-cycle of apcos. Its error in fitting cosine and sine is about ±0.092%. Both embodiments have been optimized by varying the fitting parameters so that the extreme +error equals the extreme −error across the entire cycle of the functions. With a good complex-value FFT analysis of the input signals, the output for any point in the mixing process can be predicted and used to design the gain curve in the summer/compensator stage.
[0147] Along with NP patent application Ser. No. 16/985,863, this invention provides a usable pathway to investigate the linear mixing of humbucking pair signals in electric stringed instruments. A licensee can use an inexpensive linear 3-gang pot to see what it is like to get the outputs for all the possible switched humbucking circuits using three hum-matched sensors. Then, if that looks and sounds good, the licensee can consider whether to invest in custom three-gang potentiometers, or to invest in putting a micro-controller or micro-processor into a guitar to take advantage of the ability to order favorite tones to the user's preference. The licensee can also investigate using more hum-matched pickups, up to the number that will fit underneath the strings. For J number of hum-matched (generally single-coil, but also dual coil humbucking) pickups, there are J−1 number of humbucking pairs and J−2 number of necessary three-gang controls, whether mechanical or solid-state digital.