aboutsummaryrefslogtreecommitdiffstats
path: root/src/wdatutil.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-31 06:23:57 +0000
committerDavid Robillard <d@drobilla.net>2012-05-31 06:23:57 +0000
commit7b20413c84b14d2c2bc1037bb08134dcdf152ddb (patch)
treec7c339d6c4d0d26b01e654163e7a8a203f62baf4 /src/wdatutil.c
parent46caaf6b96f185a4a25d1d12fc85720a03220e97 (diff)
downloadblop.lv2-7b20413c84b14d2c2bc1037bb08134dcdf152ddb.tar.gz
blop.lv2-7b20413c84b14d2c2bc1037bb08134dcdf152ddb.tar.bz2
blop.lv2-7b20413c84b14d2c2bc1037bb08134dcdf152ddb.zip
Umm... commit pretty much all the work of the past few days. Again.
git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/blop.lv2@4488 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/wdatutil.c')
-rw-r--r--src/wdatutil.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/wdatutil.c b/src/wdatutil.c
index f7a277d..636981b 100644
--- a/src/wdatutil.c
+++ b/src/wdatutil.c
@@ -328,7 +328,7 @@ wavedata_write(Wavedata* w,
fprintf(wdat_fp, "int\n");
fprintf(
wdat_fp,
- "blip_get_%s (Wavedata * w, double sample_rate, const char* bundle_path, const LV2_Feature* const* features)\n",
+ "blop_get_%s (Wavedata * w, double sample_rate, const char* bundle_path, const LV2_Feature* const* features)\n",
data_name);
fprintf(wdat_fp, "{\n");
fprintf(wdat_fp, "\tWavetable * t;\n");
@@ -611,18 +611,18 @@ generate_parabola(float* samples,
float scale = 2.0f / (M_PI * M_PI);
unsigned long i;
unsigned long h;
- double mhf;
+ //double mhf;
double hf;
- double k;
- double m;
+ //double k;
+ //double m;
double phase;
double partial;
double sign;
if (gibbs_comp > 0.0f) {
/* Degree of Gibbs Effect compensation */
- mhf = (double)harmonics;
- k = M_PI * (double)gibbs_comp / mhf;
+ //mhf = (double)harmonics;
+ //k = M_PI * (double)gibbs_comp / mhf;
for (i = 0; i < sample_count; i++) {
samples[i] = 0.0f;
@@ -635,7 +635,7 @@ generate_parabola(float* samples,
/* Gibbs Effect compensation - Hamming window */
/* Modified slightly for smoother fade at highest frequencies */
- m = 0.54 + 0.46 * cos((hf - 0.5 / mhf) * k);
+ //m = 0.54 + 0.46 * cos((hf - 0.5 / mhf) * k);
for (i = 0; i < sample_count; i++) {
phase = (double)i * phase_scale;