41 return mTick < other.mTick;
67 Lyric(
int nTicksPerBar,
int nLoopBars);
130 std::set<LyricData> mLyrics;
131 std::set<LyricData>::iterator mCurrent;
Reference-counted array of script data nodes.
Definition dataarray.h:20
int GetTick() const
Definition lyric.h:45
const String & GetText() const
Definition lyric.h:50
LyricData(int nTick, const String &text)
Construct a lyric.
Definition lyric.h:31
bool operator<(const LyricData &other) const
Order lyrics by tick.
Definition lyric.h:40
~Lyric()
Stop showing lyrics and unregister the lyric script command.
void AddLyric(int nTick, const char *pszText)
Add a lyric.
void Start()
Clear the lyric and schedule the first one.
void Advance()
Show the current lyric and schedule the next one.
Lyric(int nTicksPerBar, int nLoopBars)
Construct an empty lyric track and register the lyric script command.
static void ToggleShowing(DataArray *pCommand, void *pUserData)
Toggle whether lyrics show on the display, the lyric script command.
void Stop()
Withdraw the scheduled lyric.
Owner of one reference to an Attachment.
Definition ptr.h:16
Growable text buffer that is also a PrnStream.
Definition string.h:19