Browse Source

Allow free filter to attenuate more

tags/1.1.0
xenakios 7 years ago
parent
commit
536b1ccaf1
2 changed files with 2 additions and 3 deletions
  1. +1
    -2
      Source/PS_Source/ProcessedStretch.h
  2. +1
    -1
      Source/PluginEditor.cpp

+ 1
- 2
Source/PS_Source/ProcessedStretch.h View File

@@ -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<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);
}
else


+ 1
- 1
Source/PluginEditor.cpp View File

@@ -41,7 +41,7 @@ PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor(Pau
};
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);


Loading…
Cancel
Save