From f73b909c45ffd6e8dcc824635bdf396680fde9e8 Mon Sep 17 00:00:00 2001 From: Michael Gregorius Date: Sat, 13 Apr 2024 19:26:06 +0200 Subject: [PATCH] Remove inline subtraction of the predelay The subtraction of the predelay from the current sample was inlined in a statement. This is removed with this commit. --- src/gui/instrument/LfoGraph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/instrument/LfoGraph.cpp b/src/gui/instrument/LfoGraph.cpp index 76670823761..7edbacb09ea 100644 --- a/src/gui/instrument/LfoGraph.cpp +++ b/src/gui/instrument/LfoGraph.cpp @@ -99,7 +99,8 @@ void LfoGraph::paintEvent(QPaintEvent*) const auto sampleAsFrameCount = static_cast(currentSample); if (sampleAsFrameCount > predelayFrames) { - const float phase = (currentSample -= predelayFrames) / oscFrames; + currentSample -= predelayFrames; + const float phase = currentSample / oscFrames; const auto lfoShape = static_cast(lfoWaveModel); switch (lfoShape)