LTspice - BigMuff sim
- KVRAF
- Topic Starter
- 3060 posts since 10 Nov, 2013 from Germany
Hi,
I'm trying to simulate this schematic:
http://www.bigmuffpage.com/images/Kits_ ... ematic.jpg
in LTspice. I'm not sure if I modelled the input correctly. I added one DV power (9V) and one AC power for the input signal, is this the right way?
______________________________________________________________________________
Download latest version of Wuff - Distortion for REAPER
(other DAWs can load via http://reaper.fm/reaplugs ).
Version: 1.1 (14-Feb-2016)
http://chris-s.bplaced.net/div/wuff-for-reaper.zip
I'm trying to simulate this schematic:
http://www.bigmuffpage.com/images/Kits_ ... ematic.jpg
in LTspice. I'm not sure if I modelled the input correctly. I added one DV power (9V) and one AC power for the input signal, is this the right way?
______________________________________________________________________________
Download latest version of Wuff - Distortion for REAPER
(other DAWs can load via http://reaper.fm/reaplugs ).
Version: 1.1 (14-Feb-2016)
http://chris-s.bplaced.net/div/wuff-for-reaper.zip
Last edited by Chris-S on Sun Feb 14, 2016 6:24 pm, edited 5 times in total.
-
- KVRian
- 688 posts since 17 Sep, 2007 from Planet Thanet
Been a while since I last used Spice but, from memory, it seems OK. Maybe the AC voltage is a bit big? If there are no more authoritative answers I'll try to find some of my old LTspice sims
- KVRAF
- Topic Starter
- 3060 posts since 10 Nov, 2013 from Germany
Ok, so I will use the following model for the plug:
Input stage:
hp and lp filter, variable gain (max 17 dB, "sustain").
clipping stage1:
23 dB gain, soft clip, lp filter
clipping stage2:
25 dB gain, soft clip, lp filter
tone control:
blend between hp and lp filter
For the soft clip I'use a kubic spline waveshaper modelled after the LTspice simulation for a diode clipper.
Input stage:
hp and lp filter, variable gain (max 17 dB, "sustain").
clipping stage1:
23 dB gain, soft clip, lp filter
clipping stage2:
25 dB gain, soft clip, lp filter
tone control:
blend between hp and lp filter
For the soft clip I'use a kubic spline waveshaper modelled after the LTspice simulation for a diode clipper.
-
- KVRer
- 25 posts since 21 Dec, 2010
Found this very descriptive too:
http://www.electrosmash.com/big-muff-pi-analysis
http://www.electrosmash.com/big-muff-pi-analysis
- KVRAF
- Topic Starter
- 3060 posts since 10 Nov, 2013 from Germany
Hi,
first version is ready for download.
It's called wuff.
Download link moved to first post.
first version is ready for download.
It's called wuff.
Download link moved to first post.
Last edited by Chris-S on Sun Feb 14, 2016 12:05 pm, edited 2 times in total.
- KVRian
- 1209 posts since 28 Jun, 2005
Hi Chris, it sounds lovely.
But when I load it in REAPER it gives a (loud) click,
also when I hit play it always gives a click (thunk) kind of sound.
Test is easy: open REAPER create new project, add wuff as an FX you hear a Thunk.
Then just press play and you hear a Thunk/Thud.
Or is it me ?
But when I load it in REAPER it gives a (loud) click,
also when I hit play it always gives a click (thunk) kind of sound.
Test is easy: open REAPER create new project, add wuff as an FX you hear a Thunk.
Then just press play and you hear a Thunk/Thud.
Or is it me ?
- KVRAF
- Topic Starter
- 3060 posts since 10 Nov, 2013 from Germany
Hi,
I will check. Never noticed loud clicks while testing (Reaper V5.111).
Maybe it's caused by the DC offset which is intruduced by the asym clipper.
Thanks.
I will check. Never noticed loud clicks while testing (Reaper V5.111).
Maybe it's caused by the DC offset which is intruduced by the asym clipper.
it sounds lovely.
Thanks.
- KVRAF
- Topic Starter
- 3060 posts since 10 Nov, 2013 from Germany
I'm not sure if it's worth the effort to include some HQ (oversampling option).
It's clear that the distortion introduces some aliasing, but is the human ear able to notice those aliased harmonics between all the non-aliased harmonics?
Chris
It's clear that the distortion introduces some aliasing, but is the human ear able to notice those aliased harmonics between all the non-aliased harmonics?
Chris
-
- KVRian
- 1153 posts since 11 Aug, 2004 from Breuillet, France
At least, I think it would be a good idea to add a DC remover at the end of the processing
-
- KVRian
- 1099 posts since 30 Oct, 2005
in normal scenario /when no pitchbending is involved/ human ear can not detect small aliasing directly...but when you start to play any pitchbending even small aliasing becames clearly hearable as a strange mirroring tone which is not present in analogue worldChris-S wrote: ... is the human ear able to notice those aliased harmonics between all the non-aliased harmonics?
Chris
- KVRAF
- Topic Starter
- 3060 posts since 10 Nov, 2013 from Germany
There are already highpass filters build in.Ivan_C wrote:At least, I think it would be a good idea to add a DC remover at the end of the processing
-
- KVRian
- 1153 posts since 11 Aug, 2004 from Breuillet, France
Sorry, now I have seen the code and tried the simulation, it sounds good !
For the clicks, that means that the initial values of the state variables might not be right at startup. I sent zeros (null signal) inside the plug-in, and I saw that z3 tends to be equal to 0.82702295 in this context.
Indeed, if you add the instruction "z3 = 0.82702295;" for the start values, after the z1 = z2 = z4 = 0 thing, the clicks diseappear.
For the clicks, that means that the initial values of the state variables might not be right at startup. I sent zeros (null signal) inside the plug-in, and I saw that z3 tends to be equal to 0.82702295 in this context.
Indeed, if you add the instruction "z3 = 0.82702295;" for the start values, after the z1 = z2 = z4 = 0 thing, the clicks diseappear.
- KVRAF
- Topic Starter
- 3060 posts since 10 Nov, 2013 from Germany
Funny, 2 minutes ago I found the same fix:
@init
z1=z2=z4=z5=z6=z7=0;
z3=0.827;
So, with z3=0 the highpass filter needs some milliseconds to settle.
I'm working on a HQ mode to make it even better.
@init
z1=z2=z4=z5=z6=z7=0;
z3=0.827;
So, with z3=0 the highpass filter needs some milliseconds to settle.
thanks.it sounds good
I'm working on a HQ mode to make it even better.