Skip to content

Commit

Permalink
Assorted fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pauljonescodes committed Jan 30, 2024
1 parent dc50f24 commit 347a0e8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Source/PluginAudioProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ juce::AudioProcessorValueTreeState::ParameterLayout PluginAudioProcessor::create
juce::ParameterID{ parameterId, apvts::version },
PluginUtils::toTitleCase(parameterId),
apvts::ratioNormalizableRange,
FLT_MAX
100.0f
));
break;
case apvts::ParameterEnum::MOUSE_DRIVE_FILTER:
Expand Down
2 changes: 1 addition & 1 deletion Source/PluginAudioProcessorEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ PluginAudioProcessorEditor::PluginAudioProcessorEditor(
mTabbedComponentPtr->addTab("Cabinet", juce::Colours::transparentBlack, mCabinetComponentPtr.get(), true);
mTabbedComponentPtr->addTab("Mixer", juce::Colours::transparentBlack, mMixerComponentPtr.get(), true);

setSize(750, 750);
setSize(825, 750);
setResizable(true, true);
}

Expand Down
10 changes: 1 addition & 9 deletions Source/Processors/AmplifierEqualiser.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,7 @@ class AmplifierEqualiser
public:
inline static const juce::NormalisableRange<float> sDecibelsNormalisableRange = {
-6.0f,
6.0f,
[=](float min, float max, float normalised)
{
return normalised * (max - min) + min;
},
[=](float min, float max, float unnormalised)
{
return (unnormalised - min) / (max - min);
}
6.0f
};

explicit AmplifierEqualiser();
Expand Down
4 changes: 2 additions & 2 deletions Source/Processors/InstrumentEqualiser.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ class InstrumentEqualiser
inline static const juce::NormalisableRange<float> sQualityNormalisableRange = {
0.001f,
10.0f,
[=](float start, float end, float normalised)
[](float start, float end, float normalised)
{
return start + (std::log2(normalised + 1) / std::log2(end - start + 1)) * (end - start);
},
[=](float start, float end, float unnormalised)
[](float start, float end, float unnormalised)
{
return (std::exp2((unnormalised - start) / (end - start) * std::log2(end - start + 1)) - 1);
}
Expand Down

0 comments on commit 347a0e8

Please sign in to comment.