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

Method InsertRow

Source/SongData.cpp:263–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263void CSongData::InsertRow(stChannelID Chan, unsigned Frame, unsigned Row) {
264 auto &Pattern = GetPatternOnFrame(Chan, Frame); // // //
265
266 for (unsigned int i = GetPatternLength() - 1; i > Row; --i)
267 Pattern.SetNoteOn(i, Pattern.GetNoteOn(i - 1));
268 Pattern.SetNoteOn(Row, { });
269}
270
271void CSongData::CopyTrack(stChannelID Chan, const CSongData &From, stChannelID ChanFrom) {
272 if (auto *lhs = GetTrack(Chan))

Callers 2

RedoMethod · 0.45
UndoMethod · 0.45

Calls 1

SetNoteOnMethod · 0.80

Tested by

no test coverage detected