Composite NoteData for when one NoteData represents multiple NoteDatas.

This commit is contained in:
Steve Checkoway
2006-06-20 13:20:45 +00:00
parent 4a9cfcb11a
commit 91f1329653
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -21,6 +21,7 @@ NoteData::NoteData()
void NoteData::Init()
{
m_bComposite = false;
ClearAll();
m_TapNotes = vector<TrackMap>(); // ensure that the memory is freed
}
+5 -1
View File
@@ -29,7 +29,9 @@ public:
private:
// There's no point in inserting empty notes into the map.
// Any blank space in the map is defined to be empty.
vector<TrackMap> m_TapNotes;
vector<TrackMap> m_TapNotes;
// This NoteData comprises multiple NoteDatas.
bool m_bComposite;
public:
NoteData();
@@ -38,6 +40,8 @@ public:
int GetNumTracks() const { return m_TapNotes.size(); }
void SetNumTracks( int iNewNumTracks );
bool IsComposite() const { return m_bComposite; }
void SetComposite( bool b ) { m_bComposite = b; }
/* Return the note at the given track and row. Row may be out of
* range; pretend the song goes on with TAP_EMPTYs indefinitely. */