From 536b1ccaf1b85c2451e6da813aa02ca54cf5b2f2 Mon Sep 17 00:00:00 2001 From: xenakios Date: Sat, 3 Mar 2018 15:57:24 +0200 Subject: [PATCH] Allow free filter to attenuate more --- Source/PS_Source/ProcessedStretch.h | 3 +-- Source/PluginEditor.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/PS_Source/ProcessedStretch.h b/Source/PS_Source/ProcessedStretch.h index f15736d..0a91167 100644 --- a/Source/PS_Source/ProcessedStretch.h +++ b/Source/PS_Source/ProcessedStretch.h @@ -19,7 +19,6 @@ #pragma once -//#include "FreeEdit.h" #include "Stretch.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) { double norm = 0.150542*log(0.0333333*binhz); - double db = jmap(env->getTransformedValue(norm), 0.0, 1.0, -36.0, 12.0); + double db = jmap(env->getTransformedValue(norm), 0.0, 1.0, -48.0, 12.0); freq2[i] = freq1[i] * Decibels::decibelsToGain(db); } else diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 81d74b3..df37cf4 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -41,7 +41,7 @@ PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor(Pau }; m_free_filter_component.ValueFromNormalized = [this](double x) { - return jmap(x, 0.0, 1.0, -36.0, 12.0); + return jmap(x, 0.0, 1.0, -48.0, 12.0); }; m_wavefilter_tab.setTabBarDepth(20);