aboutsummaryrefslogtreecommitdiffstats
path: root/src/wdatutil.c
diff options
context:
space:
mode:
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;