* SPICE netlist
V1 NC_01 0 PULSE(0 5 0 5n 5n 0.5 1)
C1 N020 N016 10n
R1 N020 0 39k
V2 U_CC 0 {U_CC}
V3 0 U_EE {U_CC}
R2 N015 0 33k
R3 N015 U_CC 100k
D1 0 N020 1N914
R4 N017 TRIGGER 100k
R5 P001 N017 22k
R6 0 N017 120k
Q1 0 AccentCV P001 0 2N2907
V4 AccentCV 0 {Accent}
R7 N018 0 14k
R8 N018 ACCENT 100k
R9 RESONATOR N013 1Meg
C2 DECAY N013 15n
C3 DECAY RESONATOR 15n
R200kPot DECAY N012 {BasePitchR}
R11 N012 0 10k
R10kPot N008 N011 {AttackPitchR}
R13 N011 0 2k
R14 PITCH N007 100k
R15 N003 DECAY 1Meg
C4 N003 PITCH 5.6n
D3 ACCENT N004 1N914
C5 N004 0 220n
R16 N004 N006 10k
R100kPot N006 N009 {AttackDurationR + 0.1}
R18 N001 RESONATOR 47k
R19 N002 N001 47k
R20 DECAY N002 470k
R1MegPot N002 N001 {DecayR + 0.1}
R50kPot N019 RESONATOR {ToneR + 0.1}
C6 N019 0 15n
C7 OUT N005 3.3n
R100kPotLog OUT N005 {DistortionR + 0.1}
V5 PitchCV 0 {Pitch}
V6 N010 0 wavefile=ba.wav
XU6 0 N014 U_CC U_EE N016 level1 Avol=1Meg GBW=10Meg Vos=0 En=0 Enk=0 In=0 Ink=0 Rin=500Meg ;pnba In+)In-)V+)V-)OUT
R12 N016 N014 5k
R17 N010 N014 1k
XU1 N020 N015 U_CC U_EE TRIGGER MAX44246 ;pnba In+)In-)V+)V-)OUT
XU2 N018 N013 U_CC U_EE RESONATOR MAX44246 ;pnba In+)In-)V+)V-)OUT
XU3 0 N001 U_CC U_EE N002 MAX44246 ;pnba In+)In-)V+)V-)OUT
XU4 N019 N005 U_CC U_EE OUT MAX44246 ;pnba In+)In-)V+)V-)OUT
D2 N003 0 D
D4 OUT N005 D
D5 N005 OUT D
Q5 0 PitchCV N009 0 PNP
Q3 DECAY N007 N008 0 NPN
Q4 U_CC N004 PITCH 0 NPN
Q2 U_CC N017 ACCENT 0 NPN
.param U_CC 12
.tran 0 30 1 startup
.wave "C:\Users\Marta\Desktop\plik_kick_drum.wav" 16 44.1k OUT
.param DecayR 150k
.param BasePitchR 2.2Meg
.param AttackPitchR 220k
.param AttackDurationR 50k
.param ToneR 47k
.param DistortionR 50k
.param Pitch 12
.param Accent 12

* LTspice schematic (.asc)
Version 4
SHEET 1 5904 1168
WIRE 1256 -568 1240 -568
WIRE 1400 -568 1336 -568
WIRE 664 -424 536 -424
WIRE 760 -424 664 -424
WIRE 1240 -408 1240 -568
WIRE 1256 -408 1240 -408
WIRE 1400 -408 1400 -568
WIRE 1400 -408 1336 -408
WIRE 664 -392 664 -424
WIRE -136 -376 -136 -424
WIRE 536 -360 536 -424
WIRE -456 -328 -504 -328
WIRE -280 -328 -456 -328
WIRE -200 -328 -280 -328
WIRE 664 -296 664 -328
WIRE -56 -280 -136 -280
WIRE 536 -280 536 -296
WIRE 536 -280 488 -280
WIRE -456 -248 -456 -328
WIRE -280 -248 -280 -328
WIRE 536 -248 536 -280
WIRE 760 -248 760 -424
WIRE 1144 -248 1112 -248
WIRE 1240 -248 1240 -408
WIRE 1240 -248 1224 -248
WIRE 1272 -248 1240 -248
WIRE 1400 -232 1400 -408
WIRE 1400 -232 1336 -232
WIRE 1480 -232 1400 -232
WIRE 1608 -232 1560 -232
WIRE 1272 -216 1256 -216
WIRE 1256 -200 1256 -216
WIRE -2952 -136 -2952 -168
WIRE 2248 -136 2200 -136
WIRE 2344 -136 2328 -136
WIRE -280 -120 -280 -168
WIRE 536 -120 536 -168
WIRE 760 -120 760 -168
WIRE 792 -120 760 -120
WIRE 488 -56 456 -56
WIRE 616 -56 584 -56
WIRE 760 -56 760 -120
WIRE 760 -56 616 -56
WIRE 920 -56 760 -56
WIRE -280 -40 -424 -40
WIRE 456 -24 456 -56
WIRE 920 -24 920 -56
WIRE 2200 -24 2200 -136
WIRE 2248 -24 2200 -24
WIRE 2344 -24 2344 -136
WIRE 2344 -24 2312 -24
WIRE 616 -8 616 -56
WIRE 760 -8 760 -56
WIRE -424 8 -424 -40
WIRE -280 56 -360 56
WIRE 2200 72 2200 -24
WIRE 2248 72 2200 72
WIRE 2344 72 2344 -24
WIRE 2344 72 2312 72
WIRE -2520 88 -2520 56
WIRE 456 88 456 56
WIRE 920 88 920 56
WIRE 616 136 616 56
WIRE 648 136 616 136
WIRE 760 136 760 56
WIRE 760 136 728 136
WIRE -2952 152 -2952 120
WIRE -424 168 -424 104
WIRE 2200 168 2200 72
WIRE 2248 168 2200 168
WIRE 2344 168 2344 72
WIRE 2344 168 2312 168
WIRE -2520 184 -2520 168
WIRE -2520 184 -2664 184
WIRE 456 184 456 168
WIRE 920 184 920 168
WIRE -2664 232 -2664 184
WIRE -2520 232 -2520 184
WIRE -2952 264 -2952 232
WIRE -2856 264 -2952 264
WIRE -2168 296 -2168 264
WIRE -2168 296 -2200 296
WIRE -2952 312 -2952 264
WIRE -968 312 -968 184
WIRE 616 328 616 136
WIRE 648 328 616 328
WIRE 2200 328 2200 168
WIRE 2232 328 2200 328
WIRE -2664 344 -2664 312
WIRE -2504 344 -2504 296
WIRE -2504 344 -2664 344
WIRE -2168 344 -2168 296
WIRE -2152 344 -2168 344
WIRE 760 344 760 136
WIRE 760 344 712 344
WIRE 824 344 760 344
WIRE 2344 344 2344 168
WIRE 2344 344 2296 344
WIRE 2536 344 2344 344
WIRE 2952 344 2536 344
WIRE -1992 360 -2088 360
WIRE -1400 360 -1480 360
WIRE -1256 360 -1320 360
WIRE -1064 360 -1256 360
WIRE -1032 360 -1064 360
WIRE -760 360 -856 360
WIRE 424 360 344 360
WIRE 568 360 504 360
WIRE 648 360 568 360
WIRE 824 360 824 344
WIRE 936 360 824 360
WIRE 1784 360 1688 360
WIRE 2024 360 1864 360
WIRE 2232 360 2024 360
WIRE -2504 376 -2504 344
WIRE -2504 376 -2616 376
WIRE -2440 376 -2504 376
WIRE -2344 376 -2376 376
WIRE -2232 376 -2344 376
WIRE -2152 376 -2232 376
WIRE -2344 408 -2344 376
WIRE -2232 408 -2232 376
WIRE -1256 408 -1256 360
WIRE -1064 408 -1064 360
WIRE -856 408 -856 360
WIRE -856 408 -968 408
WIRE 568 408 568 360
WIRE -2952 424 -2952 392
WIRE 2024 440 2024 360
WIRE -1320 536 -1368 536
WIRE -2616 584 -2616 488
WIRE -2344 584 -2344 488
WIRE -2232 584 -2232 472
WIRE -1064 584 -1064 488
WIRE 568 584 568 488
WIRE 2024 584 2024 504
FLAG -2616 584 0
FLAG -2232 584 0
FLAG -2856 264 0
FLAG -2952 120 U_CC
IOPIN -320 -160 Out
FLAG -2952 424 U_EE
IOPIN -320 144 Out
FLAG -2120 328 U_CC
IOPIN 512 48 In
FLAG -2120 392 U_EE
IOPIN 512 112 In
FLAG -2168 184 U_CC
IOPIN 464 -96 In
FLAG -2280 296 0
FLAG -2344 584 0
FLAG -1064 584 0
FLAG -1256 584 0
FLAG -968 184 U_CC
IOPIN 1664 -96 In
FLAG -1992 360 TRIGGER
IOPIN 640 80 Out
FLAG -1480 360 TRIGGER
IOPIN 1152 80 In
FLAG -760 360 ACCENT
IOPIN 1872 80 Out
FLAG -1368 536 AccentCV
IOPIN 1264 256 In
FLAG -2952 -56 0
FLAG -2952 -168 AccentCV
IOPIN -320 -448 Out
FLAG 680 376 U_EE
IOPIN 3312 96 In
FLAG 680 312 U_CC
IOPIN 3312 32 In
FLAG 568 584 0
FLAG 344 360 ACCENT
IOPIN 2976 80 In
FLAG 936 360 RESONATOR
IOPIN 3568 80 Out
FLAG 920 184 0
FLAG 456 184 0
FLAG 664 -296 0
FLAG 488 -280 PITCH
IOPIN 3120 -560 In
FLAG -56 -280 PITCH
IOPIN 2576 -560 Out
FLAG -136 -424 U_CC
IOPIN 2496 -704 In
FLAG -456 -184 0
FLAG -424 168 0
FLAG -568 -328 ACCENT
IOPIN 2064 -608 In
FLAG -280 56 PitchCV
IOPIN 2352 -224 In
FLAG 1256 -200 0
FLAG 1304 -264 U_CC
IOPIN 3936 -544 In
FLAG 1304 -200 U_EE
IOPIN 3936 -480 In
FLAG 1112 -248 RESONATOR
IOPIN 3744 -528 In
FLAG 1608 -232 DECAY
IOPIN 4240 -512 Out
FLAG 792 -120 DECAY
IOPIN 3424 -400 In
FLAG 1688 360 RESONATOR
IOPIN 4320 80 In
FLAG 2024 584 0
FLAG 2264 376 U_EE
IOPIN 4896 96 In
FLAG 2264 312 U_CC
IOPIN 4896 32 In
FLAG 2536 344 OUT
IOPIN 5168 64 Out
FLAG -2952 -392 0
FLAG -2952 -472 PitchCV
IOPIN -320 -752 Out
FLAG -2520 -24 0
FLAG -2472 264 U_EE
IOPIN 160 -16 In
FLAG -2536 264 U_CC
IOPIN 96 -16 In
FLAG -2488 232 0
SYMBOL Misc\\signal -2616 392 R0
SYMATTR Value PULSE(0 5 0 5n 5n 0.5 1)
SYMATTR InstName V1
SYMBOL cap -2376 360 R90
SYMATTR InstName C1
SYMATTR Value 10n
SYMBOL Misc\\EuropeanResistor -2360 392 R0
SYMATTR InstName R1
SYMATTR Value 39k
SYMBOL voltage -2952 136 R0
SYMATTR InstName V2
SYMATTR Value {U_CC}
SYMBOL voltage -2952 296 R0
SYMATTR InstName V3
SYMATTR Value {U_CC}
SYMBOL Misc\\EuropeanResistor -2184 280 R90
SYMATTR InstName R2
SYMATTR Value 33k
SYMBOL Misc\\EuropeanResistor -2152 280 R180
SYMATTR InstName R3
SYMATTR Value 100k
SYMBOL diode -2216 472 R180
SYMATTR InstName D1
SYMATTR Value 1N914
SYMBOL Misc\\EuropeanResistor -1304 344 R90
SYMATTR InstName R4
SYMATTR Value 100k
SYMBOL Misc\\EuropeanResistor -1240 504 R180
SYMATTR InstName R5
SYMATTR Value 22k
SYMBOL Misc\\EuropeanResistor -1048 504 R180
SYMATTR InstName R6
SYMATTR Value 120k
SYMBOL pnp -1320 584 M180
SYMATTR InstName Q1
SYMATTR Value 2N2907
SYMBOL voltage -2952 -152 R0
SYMATTR InstName V4
SYMATTR Value {Accent}
SYMBOL Misc\\EuropeanResistor 552 392 R0
SYMATTR InstName R7
SYMATTR Value 14k
SYMBOL Misc\\EuropeanResistor 520 344 R90
SYMATTR InstName R8
SYMATTR Value 100k
SYMBOL Misc\\EuropeanResistor 744 120 R90
SYMATTR InstName R9
SYMATTR Value 1Meg
SYMBOL cap 600 -8 R0
SYMATTR InstName C2
SYMATTR Value 15n
SYMBOL cap 744 -8 R0
SYMATTR InstName C3
SYMATTR Value 15n
SYMBOL Misc\\EuropeanResistor 904 -40 R0
SYMATTR InstName 200kPot
SYMATTR Value {BasePitchR}
SYMBOL Misc\\EuropeanResistor 904 72 R0
SYMATTR InstName R11
SYMATTR Value 10k
SYMBOL Misc\\EuropeanResistor 472 -40 M0
SYMATTR InstName 10kPot
SYMATTR Value {AttackPitchR}
SYMBOL Misc\\EuropeanResistor 472 72 M0
SYMATTR InstName R13
SYMATTR Value 2k
SYMBOL Misc\\EuropeanResistor 520 -264 R0
SYMATTR InstName R14
SYMATTR Value 100k
SYMBOL Misc\\EuropeanResistor 744 -264 R0
SYMATTR InstName R15
SYMATTR Value 1Meg
SYMBOL cap 520 -360 R0
SYMATTR InstName C4
SYMATTR Value 5.6n
SYMBOL diode -568 -312 R270
SYMATTR InstName D3
SYMATTR Value 1N914
SYMBOL cap -472 -248 R0
SYMATTR InstName C5
SYMATTR Value 220n
SYMBOL Misc\\EuropeanResistor -296 -264 R0
SYMATTR InstName R16
SYMATTR Value 10k
SYMBOL Misc\\EuropeanResistor -296 -136 R0
SYMATTR InstName 100kPot
SYMATTR Value {AttackDurationR + 0.1}
SYMBOL Misc\\EuropeanResistor 1240 -264 R90
SYMATTR InstName R18
SYMATTR Value 47k
SYMBOL Misc\\EuropeanResistor 1352 -424 R90
SYMATTR InstName R19
SYMATTR Value 47k
SYMBOL Misc\\EuropeanResistor 1576 -248 R90
SYMATTR InstName R20
SYMATTR Value 470k
SYMBOL Misc\\EuropeanResistor 1352 -584 R90
SYMATTR InstName 1MegPot
SYMATTR Value {DecayR + 0.1}
SYMBOL Misc\\EuropeanResistor 1880 344 R90
SYMATTR InstName 50kPot
SYMATTR Value {ToneR + 0.1}
SYMBOL cap 2008 440 R0
SYMATTR InstName C6
SYMATTR Value 15n
SYMBOL cap 2312 152 R90
SYMATTR InstName C7
SYMATTR Value 3.3n
SYMBOL Misc\\EuropeanResistor 2344 -152 R90
SYMATTR InstName 100kPotLog
SYMATTR Value {DistortionR + 0.1}
SYMBOL voltage -2952 -488 R0
SYMATTR InstName V5
SYMATTR Value {Pitch}
SYMBOL voltage -2520 72 R180
SYMATTR InstName V6
SYMATTR Value wavefile=ba.wav
SYMBOL OpAmps\\UniversalOpAmp -2504 264 M90
SYMATTR InstName U6
SYMBOL Misc\\EuropeanResistor -2648 328 R180
SYMATTR InstName R12
SYMATTR Value 5k
SYMBOL Misc\\EuropeanResistor -2536 72 R0
SYMATTR InstName R17
SYMATTR Value 1k
SYMBOL OpAmps\\MAX44246 -2120 296 R0
SYMATTR InstName U1
SYMBOL OpAmps\\MAX44246 680 280 R0
SYMATTR InstName U2
SYMBOL OpAmps\\MAX44246 1304 -296 R0
SYMATTR InstName U3
SYMBOL OpAmps\\MAX44246 2264 280 R0
SYMATTR InstName U4
SYMBOL diode 648 -392 R0
SYMATTR InstName D2
SYMBOL diode 2312 56 R90
SYMATTR InstName D4
SYMBOL diode 2248 -8 R270
SYMATTR InstName D5
SYMBOL pnp -360 104 R180
SYMATTR InstName Q5
SYMBOL npn 584 -120 R90
SYMATTR InstName Q3
SYMBOL npn -200 -376 R0
SYMATTR InstName Q4
SYMBOL npn -1032 312 R0
SYMATTR InstName Q2