diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 4da41cb3..59115f4a 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -3120,6 +3120,27 @@ void FurnaceGUI::doInterpolate() { finishSelection(); prepareUndo(GUI_UNDO_PATTERN_INTERPOLATE); + std::vector> points; + int iCoarse=selStart.xCoarse; + int iFine=selStart.xFine; + int ord=e->getOrder(); + for (; iCoarse<=selEnd.xCoarse; iCoarse++) { + if (!e->song.chanShow[iCoarse]) continue; + DivPattern* pat=e->song.pat[iCoarse].getPattern(e->song.orders.ord[iCoarse][ord],true); + for (; iFine<3+e->song.pat[iCoarse].effectRows*2 && (iCoarsedata[j][iFine+1]!=-1) { + points.emplace(points.end(),j,pat->data[j][iFine+1]); + } + } + } + } + iFine=0; + } + makeUndo(GUI_UNDO_PATTERN_INTERPOLATE); }