Skip to content

Commit

Permalink
Quad LFO Independent Trigger Fix (#973)
Browse files Browse the repository at this point in the history
Quad LFO mis-read the trigger index meaning defacto only the
first LFOs trigger would trigger the LFO in independent mode.

Fix this with a 3 char fix to use the right input for the trigger

Closes #970
  • Loading branch information
baconpaul authored Dec 31, 2023
1 parent 45feb96 commit 4de2a04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/QuadLFO.h
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,8 @@ struct QuadLFO : modules::XTModule
for (int c = 0; c < chanByLFO[i]; ++c)
{
auto r = RateQuantity::independentRateScale(modAssist.values[RATE_0 + i][c]);
if (ic && triggers[i][c].process(inputs[TRIGGER_0].getVoltage(c * (!monoTrigger))))
if (ic &&
triggers[i][c].process(inputs[TRIGGER_0 + i].getVoltage(c * (!monoTrigger))))
{
processors[i][c]->attack(shape);
}
Expand Down

0 comments on commit 4de2a04

Please sign in to comment.