Add HoldNote getter.

Make m_TapNotes private.
This commit is contained in:
Glenn Maynard
2002-11-02 22:25:46 +00:00
parent 9828cd3b4b
commit 21e7c5801b
+6 -2
View File
@@ -24,6 +24,9 @@
class NoteData class NoteData
{ {
/* Keep this aligned, so that they all have the same size. */
vector<TapNote> m_TapNotes[MAX_NOTE_TRACKS];
public: public:
NoteData(); NoteData();
~NoteData(); ~NoteData();
@@ -33,8 +36,6 @@ public:
int m_iNumTracks; int m_iNumTracks;
/* Keep this aligned, so that they all have the same size. */
vector<TapNote> m_TapNotes[MAX_NOTE_TRACKS];
HoldNote m_HoldNotes[MAX_HOLD_NOTES]; HoldNote m_HoldNotes[MAX_HOLD_NOTES];
int m_iNumHoldNotes; int m_iNumHoldNotes;
@@ -69,6 +70,9 @@ public:
// used in edit/record // used in edit/record
void AddHoldNote( HoldNote newNote ); // add note hold note merging overlapping HoldNotes and destroying TapNotes underneath void AddHoldNote( HoldNote newNote ); // add note hold note merging overlapping HoldNotes and destroying TapNotes underneath
void RemoveHoldNote( int index ); void RemoveHoldNote( int index );
HoldNote &GetHoldNote( int index ) { return m_HoldNotes[index]; }
const HoldNote &GetHoldNote( int index ) const { return m_HoldNotes[index]; }
const int GetNumHoldNotes() const { return m_iNumHoldNotes; }
// statistics // statistics
bool IsThereANoteAtRow( int iRow ) const; bool IsThereANoteAtRow( int iRow ) const;