MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / InsertFrame

Method InsertFrame

Source/SongData.cpp:337–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337bool CSongData::InsertFrame(unsigned Frame) {
338 if (!AddFrames(Frame, 1))
339 return false;
340
341 // Select free patterns
342 VisitTracks([&] (CTrackData &track, stChannelID ch) {
343 unsigned Pattern = GetFreePatternIndex(ch); // // //
344 track.SetFramePattern(Frame, Pattern < MAX_PATTERN ? Pattern : 0);
345 });
346
347 return true;
348}
349
350bool CSongData::DuplicateFrame(unsigned Frame) {
351 if (!AddFrames(Frame + 1, 1)) // // //

Callers 2

RedoMethod · 0.80
UndoMethod · 0.80

Calls 1

SetFramePatternMethod · 0.45

Tested by

no test coverage detected