add MoveTapNoteTrack
This commit is contained in:
@@ -1028,6 +1028,13 @@ void NoteData::PadTapNotes(int rows)
|
||||
m_TapNotes[track].insert(m_TapNotes[track].end(), pad.begin(), pad.end());
|
||||
}
|
||||
|
||||
void NoteData::MoveTapNoteTrack(int dest, int src)
|
||||
{
|
||||
if(dest == src) return;
|
||||
m_TapNotes[dest] = m_TapNotes[src];
|
||||
m_TapNotes[src].clear();
|
||||
}
|
||||
|
||||
void NoteData::SetTapNote(int track, int row, TapNote t)
|
||||
{
|
||||
if(row < 0) return;
|
||||
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
if(row < 0 || row >= m_TapNotes[track].size()) return TapNote(TAP_EMPTY);
|
||||
return m_TapNotes[track][row];
|
||||
}
|
||||
|
||||
void MoveTapNoteTrack(int dest, int src);
|
||||
/* Pad m_TapNotes so it includes the row "rows". */
|
||||
void PadTapNotes(int rows);
|
||||
void SetTapNote(int track, int row, TapNote t);
|
||||
|
||||
Reference in New Issue
Block a user