Tweaks to free filter calculations but don't seem to be working correctly yet

This commit is contained in:
xenakios
2018-02-27 19:21:00 +02:00
parent 3869745f44
commit b672213e98
3 changed files with 5 additions and 4 deletions

View File

@ -36,7 +36,8 @@ PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor(Pau
m_free_filter_component.set_envelope(processor.m_free_filter_envelope);
m_free_filter_component.TimeFromNormalized = [this](double x)
{
return jmap<double>(pow(x, 4.0), 0.0, 1.0, 30.0, processor.getSampleRateChecked()/2.0);
//return jmap<double>(pow(x, 3.0), 0.0, 1.0, 30.0, processor.getSampleRateChecked()/2.0);
return 30.0*pow(1.05946309436, x*115.0);
};
m_free_filter_component.ValueFromNormalized = [this](double x)
{