Add envelope transform feature

This commit is contained in:
xenakios
2018-02-28 00:05:35 +02:00
parent 0f70453c3a
commit ff35bce695
3 changed files with 43 additions and 3 deletions

View File

@ -426,7 +426,7 @@ inline void spectrum_do_free_filter(shared_envelope& env, int nfreq, double samp
if (binhz >= 30.0)
{
double norm = 0.150542*log(0.0333333*binhz);
double db = jmap<double>(env->GetInterpolatedNodeValue(norm), 0.0, 1.0, -36.0, 12.0);
double db = jmap<double>(env->getTransformedValue(norm), 0.0, 1.0, -36.0, 12.0);
freq2[i] = freq1[i] * Decibels::decibelsToGain(db);
}
else