mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 05:50:46 +02:00
LFO & StepLFO draw true phase
This commit is contained in:
parent
8b2e0abbfa
commit
7bc342c260
2 changed files with 3 additions and 1 deletions
|
|
@ -321,6 +321,7 @@ public:
|
|||
addControl (new gin::Knob (lfo.offset, true), 5, 1);
|
||||
|
||||
auto l = new gin::LFOComponent();
|
||||
l->phaseCallback = [this] { return proc.modLFOs[idx].getCurrentPhase(); };
|
||||
l->setParams (lfo.wave, lfo.sync, lfo.rate, lfo.beat, lfo.depth, lfo.offset, lfo.phase, lfo.enable);
|
||||
addControl (l, 2, 0, 4, 1);
|
||||
|
||||
|
|
@ -400,6 +401,7 @@ public:
|
|||
addControl (new gin::Knob (prs.length), 1, 1);
|
||||
|
||||
auto g = new gin::StepLFOComponent (Cfg::numStepLFOSteps);
|
||||
g->phaseCallback = [this] { return proc.modStepLFO.getCurrentPhase(); };
|
||||
g->setParams (prs.beat, prs.length, prs.level, prs.enable);
|
||||
addControl (g, 0, 0, 4, 1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue