Skip to content

Commit

Permalink
updated to 0.9.26
Browse files Browse the repository at this point in the history
  • Loading branch information
jujudusud committed Nov 2, 2018
1 parent 072e2fe commit 33d7ca2
Show file tree
Hide file tree
Showing 38 changed files with 778 additions and 700 deletions.
23 changes: 10 additions & 13 deletions Amp.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Amp.cc
Copyright 2003-14 Tim Goetze <tim@quitte.de>
Copyright 2003-18 Tim Goetze <tim@quitte.de>
http://quitte.de/dsp/
Expand Down Expand Up @@ -48,7 +48,7 @@ AmpVTS::activate()
lp.reset();

remain = 0;
compress.init (fs);
compress.init(fs,16);
compress.set_threshold(0);
compress.set_release(.0);

Expand Down Expand Up @@ -188,18 +188,18 @@ AmpVTS::port_info [] =
{ "power", CTRL_IN, {DEFAULT_MID, 0, 1} },

/* 4 */
{ "tonestack", CTRL_IN | GROUP, {DEFAULT_1 | INTEGER, 0, 8}, DSP::ToneStack::presetdict},
{ "tonestack", CTRL_IN | GROUP, {DEFAULT_0 | INTEGER, 0, 8}, DSP::ToneStack::presetdict},

{ "bass", CTRL_IN | GROUP, {DEFAULT_LOW, 0, 1} },
{ "mid", CTRL_IN, {DEFAULT_1, 0, 1} },
{ "treble", CTRL_IN, {DEFAULT_HIGH, 0, 1} },
{ "mid", CTRL_IN, {DEFAULT_HIGH, 0, 1} },
{ "treble", CTRL_IN, {DEFAULT_1, 0, 1} },

/* 8 */
{ "attack", CTRL_IN | GROUP, {DEFAULT_HIGH, 0, 1} },
{ "squash", CTRL_IN, {DEFAULT_LOW, 0, 1} },
{ "attack", CTRL_IN | GROUP, {DEFAULT_LOW, 0, 1} },
{ "squash", CTRL_IN, {DEFAULT_HIGH, 0, 1} },

/* 10 */
{ "lowcut", CTRL_IN | GROUP, {DEFAULT_MID, 0, 1} },
{ "lowcut", CTRL_IN | GROUP, {DEFAULT_HIGH, 0, 1} },

{ "in", INPUT | AUDIO },
{ "out", OUTPUT | AUDIO },
Expand All @@ -209,12 +209,9 @@ template <> void
Descriptor<AmpVTS>::setup()
{
Label = "AmpVTS";

Name = CAPS "AmpVTS - Idealised guitar amplification";
Maker = "Tim Goetze <tim@quitte.de>, David Yeh <dtyeh@ccrma.stanford.edu>";
Copyright = "2002-14";

/* fill port info and vtable */
autogen();

Maker = "Tim Goetze <tim@quitte.de>, David Yeh <dtyeh@ccrma.stanford.edu>";
}

2 changes: 1 addition & 1 deletion Amp.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class AmpVTS
DSP::Oversampler<8,64> over8;

DSP::IIR2<sample_t> lp, biaslp;
DSP::HP1<sample_t> hp1, dc1, dc2; /* dc blockers */
DSP::HP1b<sample_t> hp1, dc1, dc2; /* dc blockers */

int model;
DSP::ToneStack tonestack;
Expand Down
18 changes: 6 additions & 12 deletions AutoFilter.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
AutoFilter.cc
Copyright 2002-12 Tim Goetze <tim@quitte.de>
Copyright 2002-18 Tim Goetze <tim@quitte.de>
http://quitte.de/dsp/
Expand Down Expand Up @@ -86,10 +86,9 @@ AutoFilter::cycle (uint frames)
float range = getport(4);
float env = getport(5);

lorenz.set_rate (2.268e-05*fs * .6*sq (getport(6)));
lorenz.set_rate (2.268e-05*fs*.3*sq(getport(6)));
float x = getport(7), z = 1-x;


sample_t * s = ports[8];
sample_t * d = ports[9];

Expand Down Expand Up @@ -122,14 +121,14 @@ AutoFilter::cycle (uint frames)
/* filter it */
if (svf == 1)
{
svf1.set_f_Q (fmod, Q);
svf1.set_f_Q(fmod, Q);
double g = 1.8;
for (uint i = 0; i < n; ++i)
d[i] = svf1.process<DSP::Polynomial::tanh>(s[i]+normal,g);
}
else if (svf == 2)
{
svf2.set_f_Q (fmod, Q);
svf2.set_f_Q(fmod, Q);
double g = .84*(1-Q) + .21;
for (uint i = 0; i < n; ++i)
d[i] = svf2.process<DSP::Polynomial::tanh>(s[i]+normal,g);
Expand All @@ -154,13 +153,13 @@ AutoFilter::port_info [] =
{ "filter", CTRL_IN | GROUP, {DEFAULT_1 | INTEGER, 0, 1},
"{0:'breathy',1:'fat'}", },
/* 2 */
{ "f (Hz)", CTRL_IN | GROUP, {LOG | DEFAULT_HIGH, 20, 3400} },
{ "f (Hz)", CTRL_IN | GROUP, {LOG | DEFAULT_HIGH, 20, 3800} },
{ "Q", CTRL_IN, {DEFAULT_LOW, 0, 1} },
/* 4 */
{ "depth", CTRL_IN | GROUP, {DEFAULT_1, 0, 1} },
{ "lfo/env", CTRL_IN, {DEFAULT_LOW, 0, 1} },
{ "rate", CTRL_IN | GROUP, {DEFAULT_LOW, 0, 1} },
{ "x/z", CTRL_IN, {DEFAULT_1, 0, 1} },
{ "shape", CTRL_IN, {DEFAULT_1, 0, 1} },

/* 8 */
{ "in", AUDIO_IN},
Expand All @@ -171,12 +170,7 @@ template <> void
Descriptor<AutoFilter>::setup()
{
Label = "AutoFilter";

Name = CAPS "AutoFilter - Self-modulating resonant filter";
Maker = "Tim Goetze <tim@quitte.de>";
Copyright = "2004-14";

/* fill port info and vtable */
autogen();
}

22 changes: 22 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
0.9.26
* documentation updates
* DDDelay removed, needs more work

0.9.25
* potential gcc overoptimisation resulting in NaN in Kaiser window setup eliminated
(fix contributed by Jean Pierre Cimalando)
* updated to reflect changes to the div() and pow10f() functions in libc
* tonestack coefficient update reverted to original Yeh implementation
* Compress default measurement mode switched to RMS, attack range doubled
* Compress power and gain filter cutoff lowered to lessen intermodulation distortion
* Plate defaults changed
* volume control added to Spice hi and lo circuits, max gain reduced on both
* Wider output channels swapped
* AutoFilter rate lowered
* Scape parameters cleaned up and remapped, tune control removed
* Noisegate hysteresis increased to 180 ms
* dc-30 tonestack R3 20k -> 10k
* Eq10 Q changed to render optimally flat response at all zero band gain settings
* div port added to Click
* new plugin DDDelay

0.9.24
* documentation updates including switch to 48k for all spectra
* "twin" and "stanford" tonestack models swap places
Expand Down
7 changes: 1 addition & 6 deletions CabIII.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
CabIII.cc
Copyright 2002-14 Tim Goetze <tim@quitte.de>
Copyright 2002-18 Tim Goetze <tim@quitte.de>
http://quitte.de/dsp/
Expand Down Expand Up @@ -115,12 +115,7 @@ template <> void
Descriptor<CabinetIII>::setup()
{
Label = "CabinetIII";

Name = CAPS "CabinetIII - Simplistic loudspeaker cabinet emulation";
Maker = "Tim Goetze <tim@quitte.de>";
Copyright = "2002-14";

/* fill port info and vtable */
autogen();
}

7 changes: 1 addition & 6 deletions CabIV.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
CabIV.cc
Copyright 2002-14 Tim Goetze <tim@quitte.de>
Copyright 2002-18 Tim Goetze <tim@quitte.de>
http://quitte.de/dsp/
Expand Down Expand Up @@ -196,12 +196,7 @@ template <> void
Descriptor<CabinetIV>::setup()
{
Label = "CabinetIV";

Name = CAPS "CabinetIV - Idealised loudspeaker cabinet";
Maker = "Tim Goetze <tim@quitte.de>";
Copyright = "2012";

/* fill port info and vtable */
autogen();
}

5 changes: 0 additions & 5 deletions Chorus.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,7 @@ template <> void
Descriptor<ChorusI>::setup()
{
Label = "ChorusI";

Name = CAPS "ChorusI - Mono chorus/flanger";
Maker = "Tim Goetze <tim@quitte.de>";
Copyright = "GPL, 2004-13";

/* fill port info and vtable */
autogen();
}

Expand Down
Loading

0 comments on commit 33d7ca2

Please sign in to comment.