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
|
|
@ -1 +1 @@
|
||||||
Subproject commit 3531e1e5789bd1df98a630e74295f3e37366bc6b
|
Subproject commit a3d0f396e6140f803d242192d2db43d5cb038b97
|
||||||
|
|
@ -321,6 +321,7 @@ public:
|
||||||
addControl (new gin::Knob (lfo.offset, true), 5, 1);
|
addControl (new gin::Knob (lfo.offset, true), 5, 1);
|
||||||
|
|
||||||
auto l = new gin::LFOComponent();
|
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);
|
l->setParams (lfo.wave, lfo.sync, lfo.rate, lfo.beat, lfo.depth, lfo.offset, lfo.phase, lfo.enable);
|
||||||
addControl (l, 2, 0, 4, 1);
|
addControl (l, 2, 0, 4, 1);
|
||||||
|
|
||||||
|
|
@ -400,6 +401,7 @@ public:
|
||||||
addControl (new gin::Knob (prs.length), 1, 1);
|
addControl (new gin::Knob (prs.length), 1, 1);
|
||||||
|
|
||||||
auto g = new gin::StepLFOComponent (Cfg::numStepLFOSteps);
|
auto g = new gin::StepLFOComponent (Cfg::numStepLFOSteps);
|
||||||
|
g->phaseCallback = [this] { return proc.modStepLFO.getCurrentPhase(); };
|
||||||
g->setParams (prs.beat, prs.length, prs.level, prs.enable);
|
g->setParams (prs.beat, prs.length, prs.level, prs.enable);
|
||||||
addControl (g, 0, 0, 4, 1);
|
addControl (g, 0, 0, 4, 1);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue