LFO & StepLFO draw true phase

This commit is contained in:
Roland Rabien 2023-09-11 06:14:11 -07:00
commit 7bc342c260
2 changed files with 3 additions and 1 deletions

@ -1 +1 @@
Subproject commit 3531e1e5789bd1df98a630e74295f3e37366bc6b
Subproject commit a3d0f396e6140f803d242192d2db43d5cb038b97

View file

@ -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);