Skip to content

Commit

Permalink
Remove inline subtraction of the predelay
Browse files Browse the repository at this point in the history
The subtraction of the predelay from the current sample was inlined in a statement. This is removed with this commit.
  • Loading branch information
michaelgregorius committed Apr 13, 2024
1 parent 79f0b14 commit f73b909
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/instrument/LfoGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ void LfoGraph::paintEvent(QPaintEvent*)
const auto sampleAsFrameCount = static_cast<f_cnt_t>(currentSample);
if (sampleAsFrameCount > predelayFrames)
{
const float phase = (currentSample -= predelayFrames) / oscFrames;
currentSample -= predelayFrames;
const float phase = currentSample / oscFrames;

const auto lfoShape = static_cast<EnvelopeAndLfoParameters::LfoShape>(lfoWaveModel);
switch (lfoShape)
Expand Down

0 comments on commit f73b909

Please sign in to comment.