* Single-mid signal chain (simplified): LR4 mid bandpass + non-inverting gain 21 * For full accuracy use active-crossover/spice/midrange_lr4_bandpass.cir * and lm3886-poweramp/spice/lm3886_poweramp.cir separately. * This file checks cascade magnitude: bandpass then x21 into 8 ohm. .param Chp=6.8n Rhp1=56k Rhp2=112k .param Clp1=68n Clp2=136n Rlp=560 .param Gain=21 .subckt OPA2134X INP INM OUT VCC VEE Gerr 0 NERR INP INM 0.01 Rp NERR 0 10Meg Cp NERR 0 1.989e-12 Ebuf NBUF 0 NERR 0 1 Rout NBUF OUT 50 .ends Vin IN 0 DC 0 AC 1 VCC VCC 0 15 VEE VEE 0 -15 * Mid LR4 BP (2x HP 300 + 2x LP 3000) — abbreviated identical stages C1a IN N1a {Chp} C2a N1a N2a {Chp} R1a N2a 0 {Rhp1} R2a N1a O1 {Rhp2} X1 N2a O1 O1 VCC VEE OPA2134X C1b O1 N1b {Chp} C2b N1b N2b {Chp} R1b N2b 0 {Rhp1} R2b N1b O2 {Rhp2} X2 N2b O2 O2 VCC VEE OPA2134X R1c O2 N1c {Rlp} R2c N1c N2c {Rlp} C1c N2c 0 {Clp1} C2c N1c O3 {Clp2} X3 N2c O3 O3 VCC VEE OPA2134X R1d O3 N1d {Rlp} R2d N1d N2d {Rlp} C1d N2d 0 {Clp1} C2d N1d MID_LINE {Clp2} X4 N2d MID_LINE MID_LINE VCC VEE OPA2134X * Ideal power amp gain block (replace with LM3886 model for THD) Eamp SPK 0 MID_LINE 0 {Gain} Rload SPK 0 8 .ac dec 100 10 20k .print ac Mag(V(MID_LINE)) Mag(V(SPK)) * Expect MID_LINE ~0 dB in-band; SPK ~+26 dB in-band; -6 dB at 300 & 3000 Hz on MID_LINE .end