mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 05:50:46 +02:00
Add tabs to param boxes
This commit is contained in:
parent
5f678a3196
commit
8ce8ff8336
4 changed files with 34 additions and 5 deletions
|
|
@ -282,6 +282,8 @@ public:
|
|||
|
||||
addEnable (lfo.enable);
|
||||
|
||||
addHeader ({"LFO 1", "LFO 2", "LFO 3"}, idx, proc.uiParams.activeLFO);
|
||||
|
||||
addModSource (new gin::ModulationSourceButton (proc.modMatrix, proc.modSrcLFO[idx], true));
|
||||
addModSource (new gin::ModulationSourceButton (proc.modMatrix, proc.modSrcMonoLFO[idx], false));
|
||||
|
||||
|
|
@ -309,14 +311,18 @@ public:
|
|||
{
|
||||
gin::ParamBox::paramChanged ();
|
||||
|
||||
auto& lfo = proc.lfoParams[idx];
|
||||
r->setVisible (! lfo.sync->isOn());
|
||||
b->setVisible (lfo.sync->isOn());
|
||||
if (r && b)
|
||||
{
|
||||
auto& lfo = proc.lfoParams[idx];
|
||||
r->setVisible (! lfo.sync->isOn());
|
||||
b->setVisible (lfo.sync->isOn());
|
||||
}
|
||||
}
|
||||
|
||||
WavetableAudioProcessor& proc;
|
||||
int idx;
|
||||
gin::ParamComponent::Ptr r, b;
|
||||
gin::ParamComponent::Ptr r = nullptr;
|
||||
gin::ParamComponent::Ptr b = nullptr;
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -332,6 +338,8 @@ public:
|
|||
|
||||
addEnable (env.enable);
|
||||
|
||||
addHeader ({"ENV 1", "ENV 2", "ENV 3"}, idx, proc.uiParams.activeENV);
|
||||
|
||||
addModSource (new gin::ModulationSourceButton (proc.modMatrix, proc.modSrcEnv[idx], true));
|
||||
|
||||
addControl (new gin::Knob (env.attack), 0, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue