240 unsigned char nStatus,
241 unsigned char nData1,
242 unsigned char nData2,
243 unsigned char nChannel);
258 unsigned char nVelocity,
260 unsigned char nChannel);
331 void AddTempo(
int nTick,
int nMicrosecondsPerQuarter);
347 std::vector<TrackData *> mTracks;
348 std::vector<TrackData *> mBackingTracks;
The notes of one harmony a track plays from one song position onward.
Definition harmony.h:24
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
void SetKind(int nKind)
Set the TrackMode of the current track.
void AddNoteMsg(int nTick, unsigned char nNote, unsigned char nVelocity, int nLength, unsigned char nChannel)
Forward to TrackData::AddNoteMsg() on the current track.
virtual TrackData * OwnTrack()
LevelBuilder(unsigned nTrackCount)
Construct an empty builder.
virtual TrackData * TrackAt(int nIndex)
Return one track.
TrackData * GetTrack(int nIndex)
Return one gameplay track, without dispatch.
void AddRiff(int nTick, Riff *pRiff)
Forward to TrackData::AddRiff() on the current track.
virtual TrackData * BackingTrackAt(int nIndex)
Return one backing track.
virtual PlayMap * GetPlayMap()
void SetChannel(unsigned char nChannel)
Set the MIDI channel of the current track.
void SetActive(int nTick, int bActive)
Forward an activeness change to TrackData::SetActive() on the current track.
void AddGem(int nTick, int nGem, Riff *pRiff)
Forward to TrackData::AddGem() on the current track.
void DoneLoading()
Run TrackData::ScoreBars() on every score track.
virtual int GetEndBar()
Report the play map's extent.
virtual int BackingTrackCount()
void SetQuant(int nTick, int nQuant)
Forward to TrackData::SetQuant() on the current track.
virtual Sch::TempoMap * GetTempoMap()
void SelectTrack(int nKind, int nIndex)
Make one track the current track, creating it on first use.
void AddHarmony(int nTick, const Harmony &harmony)
Start a harmony on the current track.
void AddTempo(int nTick, int nMicrosecondsPerQuarter)
Replace the tempo map at +0x30 with one built from a tempo meta event.
TrackData * IntroTrackAt(int nIndex)
Return one intro track.
void SetBarCount(int nBarCount)
Forward a bar count to PlayMap::SetBarCount().
void AddEvent(int nTick, unsigned char nStatus, unsigned char nData1, unsigned char nData2, unsigned char nChannel)
Append one MIDI event to the current track.
void SetInstrument(int nInstrument, const HxStr &name)
Set the instrument index and the name of the current track.
void Print(std::ostream &stream)
Write every track of the three collections to a diagnostic stream.
std::vector< TrackData * > mIntroTracks
The intro tracks.
Definition levelbuilder.h:357
Read-only interface the game reads one converted level through.
Definition leveldata.h:27
Traversal order over one playable sequence.
Definition playmap.h:47
One riff of a track at one difficulty level, as a sequence of MIDI messages.
Definition riff.h:25
Affine map between a song position in MIDI ticks and scheduler time in nanoseconds.
Definition tempomap.h:43
Converted events of one track of a level.
Definition trackdata.h:52
LevelTrackKind
Collection LevelBuilder::SelectTrack() takes the current track from.
Definition levelbuilder.h:19
@ kLevelTrackNone
Definition levelbuilder.h:20
@ kLevelTrackIntro
Definition levelbuilder.h:22
@ kLevelTrackScore
Definition levelbuilder.h:23
@ kLevelTrackBacking
Definition levelbuilder.h:21
@ kLevelTrackOwn
Definition levelbuilder.h:24