synth_panel/sim/audio_amplifier.asc

76 lines
1.8 KiB
Plaintext
Raw Normal View History

2019-12-16 00:00:41 +01:00
Version 4
SHEET 1 2480 680
WIRE 784 -80 80 -80
WIRE 848 -80 784 -80
WIRE 896 -80 848 -80
WIRE 1008 -80 976 -80
WIRE 784 -32 784 -80
WIRE 848 -32 848 -80
WIRE 1008 -32 1008 -80
WIRE 688 96 256 96
WIRE 784 96 784 32
WIRE 848 96 848 32
WIRE 848 96 784 96
WIRE 1008 96 1008 48
WIRE 1008 96 848 96
WIRE 80 112 80 -80
WIRE 256 144 256 96
WIRE 848 176 848 96
WIRE 688 256 688 96
WIRE 800 256 688 256
WIRE 80 352 80 192
WIRE 256 352 256 224
WIRE 256 352 80 352
WIRE 848 352 848 272
WIRE 848 352 256 352
WIRE 1200 352 1200 256
WIRE 1200 352 848 352
WIRE 1600 352 1600 256
WIRE 1600 352 1200 352
WIRE 256 400 256 352
FLAG 256 400 0
SYMBOL voltage 80 96 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value {V}
SYMBOL diode 800 32 R180
WINDOW 0 24 64 Left 2
WINDOW 3 24 0 Left 2
SYMATTR InstName D1
SYMATTR Value 1N4148
SYMBOL res 992 -48 R0
SYMATTR InstName R2
SYMATTR Value 8
SYMBOL nmos 800 176 R0
SYMATTR InstName M1
SYMATTR Value AO6408
SYMBOL ind 992 -96 R90
WINDOW 0 5 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName L1
SYMATTR Value 10n
SYMBOL bv 256 128 R0
SYMATTR InstName B1
SYMATTR Value V=(0.5*sin(time*2*pi*(((time/1s)*5k+1k)))+0.5)*{V}
SYMBOL bv 1200 160 R0
SYMATTR InstName B2
SYMATTR Value V=V(n003)/{V}*2-1
SYMBOL bv 1600 160 R0
SYMATTR InstName B3
SYMATTR Value V=2*(I(R2)*(V(n001)-V(n004))/2W)-((I(R2)*(V(n001)-V(n004))/2W))
TEXT 1176 -144 Left 2 !.tran 1 uic
TEXT 1600 80 Left 2 !.wave "audio{V}.wav" 16 44.1k V(nc_02)
TEXT 1176 -168 Left 2 !.param V=1.9
TEXT 1600 104 Left 2 !.wave "ref{V}.wav" 16 44.1k V(nc_01)
TEXT 1120 80 Left 2 ;output to wave file
TEXT 1176 -112 Left 2 !.step param V list 1.6 3
LINE Normal 1776 64 1104 64 2
LINE Normal 2080 416 2080 64 2
LINE Normal 1104 416 1792 416 2
LINE Normal 1104 64 1104 416 2
LINE Normal 1104 64 1104 64 2
LINE Normal 2080 416 1792 416 2
LINE Normal 2080 64 1776 64 2
LINE Normal 2080 64 2080 64 2