diff --git a/sources/Application/Views/PhraseView.cpp b/sources/Application/Views/PhraseView.cpp index d087d6cc..fa57d08f 100644 --- a/sources/Application/Views/PhraseView.cpp +++ b/sources/Application/Views/PhraseView.cpp @@ -595,7 +595,7 @@ void PhraseView::interpolateSelection() { for (int step = 0; step <= numSteps; step++) { int row = startRow + step; - int value = startNote + (2 * noteDiff * step + numSteps) / (2 * numSteps); + int value = startNote + (noteDiff * step) / (numSteps); noteData[row] = (uchar)value; } } else { @@ -612,7 +612,7 @@ void PhraseView::interpolateSelection() { for (int step = 0; step <= numSteps; step++) { int row = startRow + step; - int value = startParam + (2 * paramDiff * step + numSteps) / (2 * numSteps); + int value = startParam + (paramDiff * step) / (numSteps); paramData[row] = (ushort)value; } } diff --git a/sources/Application/Views/TableView.cpp b/sources/Application/Views/TableView.cpp index 970d30d0..734a30d2 100644 --- a/sources/Application/Views/TableView.cpp +++ b/sources/Application/Views/TableView.cpp @@ -174,7 +174,7 @@ void TableView::interpolateSelection() { for (int step = 0; step <= numSteps; step++) { int row = startRow + step; - int value = startParam + (2 * paramDiff * step + numSteps) / (2 * numSteps); + int value = startParam + (paramDiff * step) / (numSteps); paramData[row] = (ushort)value; }