NeuralAmpModelerPlugin

Plugin for Neural Amp Modeler
Log | Files | Refs | Submodules | README | LICENSE

commit ddd5ff85bf21c6ab939c7819bada901954c5282d
parent 35b512ac91a8326e7d808298a0c78cfd3f4f6afe
Author: Dyson Huo <huodx@g.ucla.edu>
Date:   Sun, 26 May 2024 17:25:53 -0700

Feature: UI Improvement Idea (issue #385) (#387)

A few updates to UI as discussed earlier to add clarity and unity.

Signed-off-by: Daixuan <huodx@ucla.edu>
Diffstat:
MNeuralAmpModeler/NeuralAmpModeler.cpp | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/NeuralAmpModeler/NeuralAmpModeler.cpp b/NeuralAmpModeler/NeuralAmpModeler.cpp @@ -75,7 +75,7 @@ NeuralAmpModeler::NeuralAmpModeler(const InstanceInfo& info) GetParam(kToneMid)->InitDouble("Middle", 5.0, 0.0, 10.0, 0.1); GetParam(kToneTreble)->InitDouble("Treble", 5.0, 0.0, 10.0, 0.1); GetParam(kOutputLevel)->InitGain("Output", 0.0, -40.0, 40.0, 0.1); - GetParam(kNoiseGateThreshold)->InitGain("Gate", -80.0, -100.0, 0.0, 0.1); + GetParam(kNoiseGateThreshold)->InitGain("Threshold", -80.0, -100.0, 0.0, 0.1); GetParam(kNoiseGateActive)->InitBool("NoiseGateActive", true); GetParam(kEQActive)->InitBool("ToneStack", true); GetParam(kOutNorm)->InitBool("OutNorm", true); @@ -164,7 +164,9 @@ NeuralAmpModeler::NeuralAmpModeler(const InstanceInfo& info) // Misc Areas const auto helpButtonArea = mainArea.GetFromTRHC(50, 50).GetCentredInside(20, 20); - const auto sampleRateWarningArea = inputMeterArea.GetFromBottom(16.f).GetTranslated(12.f, 16.f).GetFromLeft(300.f); + // Making it centered under the big title + const auto sampleRateWarningArea = titleArea.GetFromBottom(16.f).GetTranslated(117.f, 6.f).GetFromLeft(300.f); + //modelArea.GetFromBottom(16.f).GetTranslated(12.f, 16.f).GetFromLeft(300.f); // Model loader button auto loadModelCompletionHandler = [&](const WDL_String& fileName, const WDL_String& path) { @@ -221,7 +223,7 @@ NeuralAmpModeler::NeuralAmpModeler(const InstanceInfo& info) new NAMFileBrowserControl(irArea, kMsgTagClearIR, defaultIRString.c_str(), "wav", loadIRCompletionHandler, style, fileSVG, crossSVG, leftArrowSVG, rightArrowSVG, fileBackgroundBitmap), kCtrlTagIRFileBrowser); - pGraphics->AttachControl(new NAMSwitchControl(ngToggleArea, kNoiseGateActive, " ", style, switchHandleBitmap)); + pGraphics->AttachControl(new NAMSwitchControl(ngToggleArea, kNoiseGateActive, "Noise Gate", style, switchHandleBitmap)); pGraphics->AttachControl(new NAMSwitchControl(eqToggleArea, kEQActive, "EQ", style, switchHandleBitmap)); pGraphics->AttachControl( new NAMSwitchControl(outNormToggleArea, kOutNorm, "Normalize", style, switchHandleBitmap), kCtrlTagOutNorm);