Skip to content

Commit

Permalink
Don't switch ui tabs when loading presets
Browse files Browse the repository at this point in the history
  • Loading branch information
FigBug committed Oct 5, 2023
1 parent c754f51 commit 76445cd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changelist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Add modulation overview to title bar
- Tabs now switch when dragging modulation over their buttons
- Make sure editor scale does change loading presets
- Don't switch ui tabs when loading presets

1.0.9:

Expand Down
9 changes: 9 additions & 0 deletions plugin/Source/PluginProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,15 @@ void WavetableAudioProcessor::setupModMatrix()
modMatrix.build();
}

bool WavetableAudioProcessor::isParamLocked (gin::Parameter* p)
{
if (p == uiParams.activeMOD) return true;
if (p == uiParams.activeLFO) return true;
if (p == uiParams.activeENV) return true;

return false;
}

float WavetableAudioProcessor::getSmoothingTime (gin::Parameter*)
{
return 0.02f;
Expand Down
1 change: 1 addition & 0 deletions plugin/Source/PluginProcessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ class WavetableAudioProcessor : public gin::Processor,
juce::Random rng;

private:
bool isParamLocked (gin::Parameter* p) override;
float getSmoothingTime (gin::Parameter*);

//==============================================================================
Expand Down

0 comments on commit 76445cd

Please sign in to comment.