Skip to content

Commit

Permalink
made resampler settings more explicit (using enum values)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssj71 committed Oct 15, 2015
1 parent c0c48a6 commit 4f3baa1
Showing 1 changed file with 6 additions and 5 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 @@ -798,7 +799,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 @@ -2804,7 +2805,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 @@ -2861,8 +2862,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 @@ -2886,7 +2887,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

0 comments on commit 4f3baa1

Please sign in to comment.