Allow free filter to attenuate more

This commit is contained in:
xenakios 2018-03-03 15:57:24 +02:00
parent 71221b41a1
commit 536b1ccaf1
2 changed files with 2 additions and 3 deletions

View File

@ -19,7 +19,6 @@
#pragma once #pragma once
//#include "FreeEdit.h"
#include "Stretch.h" #include "Stretch.h"
#include "../jcdp_envelope.h" #include "../jcdp_envelope.h"
@ -426,7 +425,7 @@ inline void spectrum_do_free_filter(shared_envelope& env, int nfreq, double samp
if (binhz >= 30.0) if (binhz >= 30.0)
{ {
double norm = 0.150542*log(0.0333333*binhz); double norm = 0.150542*log(0.0333333*binhz);
double db = jmap<double>(env->getTransformedValue(norm), 0.0, 1.0, -36.0, 12.0); double db = jmap<double>(env->getTransformedValue(norm), 0.0, 1.0, -48.0, 12.0);
freq2[i] = freq1[i] * Decibels::decibelsToGain(db); freq2[i] = freq1[i] * Decibels::decibelsToGain(db);
} }
else else

View File

@ -41,7 +41,7 @@ PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor(Pau
}; };
m_free_filter_component.ValueFromNormalized = [this](double x) m_free_filter_component.ValueFromNormalized = [this](double x)
{ {
return jmap<double>(x, 0.0, 1.0, -36.0, 12.0); return jmap<double>(x, 0.0, 1.0, -48.0, 12.0);
}; };
m_wavefilter_tab.setTabBarDepth(20); m_wavefilter_tab.setTabBarDepth(20);