Skip to content

Commit

Permalink
Merge branch 'tmpdev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ssj71 committed Dec 13, 2017
2 parents bf4eca3 + 2efbdff commit 1ab1ba3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
11 changes: 6 additions & 5 deletions lv2/rkrlv2.C
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include<stdio.h>
#include<string.h>
#include<unistd.h>
#include<samplerate.h>
#include"rkrlv2.h"

#include"EQ.h"
Expand Down Expand Up @@ -803,7 +804,7 @@ LV2_Handle init_harmnomidlv2(const LV2_Descriptor *descriptor,double sample_freq
getFeatures(plug,host_features);

//magic numbers: shift qual 4, downsample 5, up qual 4, down qual 2,
plug->harm = new Harmonizer(0,0,4,5,4,2, plug->period_max, sample_freq);
plug->harm = new Harmonizer(0,0,4,5,SRC_LINEAR,SRC_SINC_FASTEST, plug->period_max, sample_freq);
plug->noteID = new Recognize(0,0,.6, sample_freq, 440.0, plug->period_max);//.6 is default trigger value
plug->chordID = new RecChord();

Expand Down Expand Up @@ -2809,7 +2810,7 @@ LV2_Handle init_stomplv2(const LV2_Descriptor *descriptor,double sample_freq, co
getFeatures(plug,host_features);

plug->stomp = new StompBox(0,0, sample_freq, plug->period_max, /*oversampling*/2,
/*up interpolation method*/4, /*down interpolation method*/2);
/*up interpolation method*/SRC_LINEAR, /*down interpolation method*/SRC_SINC_FASTEST);

return plug;
}
Expand Down Expand Up @@ -2866,8 +2867,8 @@ LV2_Handle init_stomp_fuzzlv2(const LV2_Descriptor *descriptor,double sample_fre

getFeatures(plug,host_features);

plug->stomp = new StompBox(0,0, sample_freq, plug->period_max, /*oversampling*/2,
/*up interpolation method*/4, /*down interpolation method*/2);
plug->stomp = new StompBox(0,0, sample_freq, plug->period_max, /*oversampling*/1,
/*up interpolation method*/SRC_LINEAR, /*down interpolation method*/SRC_LINEAR);
plug->stomp->changepar(5,7);//set to fuzz

return plug;
Expand All @@ -2891,7 +2892,7 @@ LV2_Handle init_revtronlv2(const LV2_Descriptor *descriptor,double sample_freq,
}
lv2_atom_forge_init(&plug->forge, plug->urid_map);

plug->revtron = new Reverbtron(0,0, sample_freq, plug->period_max, /*downsample*/5, /*up interpolation method*/4, /*down interpolation method*/2);
plug->revtron = new Reverbtron(0,0, sample_freq, plug->period_max, /*downsample*/5, /*up interpolation method*/SRC_LINEAR, /*down interpolation method*/SRC_SINC_FASTEST);
plug->revtron->changepar(4,1);//set to user selected files
plug->rvbfile = new RvbFile;

Expand Down
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
3 changes: 2 additions & 1 deletion src/Sustainer.C
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,11 @@ Sustainer::out (float * smpsl, float * smpsr, uint32_t period)


void
Sustainer::setpreset (int npreset, int pdata[])
Sustainer::setpreset (int npreset)
{
const int PRESET_SIZE = 2;
const int NUM_PRESETS = 3;
int pdata[PRESET_SIZE];
int presets[NUM_PRESETS][PRESET_SIZE] = {
//Moderate
{79, 54},
Expand Down
2 changes: 1 addition & 1 deletion src/Sustainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Sustainer
void out (float * smpsl, float * smpr, uint32_t period);
void changepar (int npar, int value);
int getpar (int npar);
void setpreset (int npreset,int pdata[]);
void setpreset (int npreset);

int Ppreset;

Expand Down

0 comments on commit 1ab1ba3

Please sign in to comment.