Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/ssj71/rkrlv2 into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ssj71 committed Oct 15, 2015
2 parents 4f3baa1 + 88cd36f commit 2efbdff
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/Dual_Flange.C
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ Dflange::Dflange (float * efxoutl_, float * efxoutr_, double sample_rate)
//default values
Ppreset = 0;

ldelay = NULL;
rdelay = NULL;


maxx_delay = (int) sample_rate * 0.055f;
ldelay = new float[maxx_delay];
rdelay = new float[maxx_delay];
Expand Down Expand Up @@ -80,6 +76,8 @@ Dflange::Dflange (float * efxoutl_, float * efxoutr_, double sample_rate)
lsB = 0.0f;
logmax = logf(1000.0f)/logf(2.0f);

kl = kr = 0;

lfo = new EffectLFO(sample_rate);
PERIOD = 255;//best guess for init
setpreset (Ppreset);
Expand All @@ -88,10 +86,10 @@ Dflange::Dflange (float * efxoutl_, float * efxoutr_, double sample_rate)

Dflange::~Dflange ()
{
delete ldelay;
delete rdelay;
delete zldelay;
delete zrdelay;
delete[] ldelay;
delete[] rdelay;
delete[] zldelay;
delete[] zrdelay;
delete ldelayline0;
delete rdelayline0;
delete ldelayline1;
Expand Down

0 comments on commit 2efbdff

Please sign in to comment.