MCPcopy Create free account
hub / github.com/BambooTracker/BambooTracker / pasteOverwritePatternCells

Method pasteOverwritePatternCells

BambooTracker/bamboo_tracker.cpp:2716–2723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2714}
2715
2716bool BambooTracker::pasteOverwritePatternCells(int songNum, int beginTrack, int beginColmn, int beginOrder,
2717 int beginStep, const Vector2d<std::string>& cells, bool overflow)
2718{
2719 const auto clipped = clipCellsToFitPastedArea(songStyle_.trackAttribs.size(), getPatternSizeFromOrderNumber(songNum, beginOrder),
2720 beginTrack, beginColmn, beginStep, cells, overflow);
2721 return comMan_.invoke(std::make_unique<PasteOverwriteCopiedDataToPatternCommand>(
2722 mod_, songNum, beginTrack, beginColmn, beginOrder, beginStep, clipped));
2723}
2724
2725bool BambooTracker::pasteInsertPatternCells(int songNum, int beginTrack, int beginColmn, int beginOrder,
2726 int beginStep, const Vector2d<std::string>& cells)

Callers 1

Calls 3

clipCellsToFitPastedAreaFunction · 0.85
invokeMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected