* Sort out resynthesis gain; add crispness parameter to pitch shifter plugin

This commit is contained in:
Chris Cannam
2007-11-21 19:57:49 +00:00
parent 902e52f8f1
commit d2fe49c20c
7 changed files with 82 additions and 23 deletions

View File

@@ -341,7 +341,6 @@ int main(int argc, char **argv)
float value = obf[c][i];
if (fabsf(value) > outpeak) outpeak = fabsf(value);
outsum += value * value;
value *= 0.75;
if (value > 1.f) value = 1.f;
if (value < -1.f) value = -1.f;
fobf[i * channels + c] = value;
@@ -401,7 +400,6 @@ int main(int argc, char **argv)
float value = obf[c][i];
if (fabsf(value) > outpeak) outpeak = fabsf(value);
outsum += value * value;
value *= 0.75;//!!!
if (value > 1.f) value = 1.f;
if (value < -1.f) value = -1.f;
fobf[i * channels + c] = value;