35 const float *pfMsPerTick,
36 std::unique_ptr<PlayMap> *ppPlayMap,
54 void OnNewTrack([[maybe_unused]]
unsigned char nTrack)
override {
85 void OnMidi([[maybe_unused]]
int nTick,
86 [[maybe_unused]]
unsigned char nStatus,
87 [[maybe_unused]]
unsigned char nData1,
88 [[maybe_unused]]
unsigned char nData2)
override {
100 void OnTempo(
int nTick,
int nMicrosecondsPerBeat)
override;
112 [[maybe_unused]]
const char *pszText,
113 [[maybe_unused]]
unsigned char nType)
override {
131 const float *mMsPerTick;
132 std::unique_ptr<PlayMap> *mPlayMap;
ConductorBuilder(int nTrack, bool bValidate, ErrorHandler pfnError, int nNumBars, int nTicksPerBeat, const float *pfMsPerTick, std::unique_ptr< PlayMap > *ppPlayMap, int *pTicksPerBar)
Construct a builder.
void OnMidi(int nTick, unsigned char nStatus, unsigned char nData1, unsigned char nData2) override
Ignore a channel message.
Definition conductorbuilder.h:85
~ConductorBuilder() override
Release the builder.
void OnTempo(int nTick, int nMicrosecondsPerBeat) override
Report an error when a validating builder reads a tempo that differs from the song text by more than ...
void OnEndTrack() override
Ignore the end of the track.
Definition conductorbuilder.h:63
void OnAllDone() override
Ignore the end of the file.
Definition conductorbuilder.h:72
void OnText(int nTick, const char *pszText, unsigned char nType) override
Ignore a text event.
Definition conductorbuilder.h:111
void OnNewTrack(unsigned char nTrack) override
Ignore the start of the track.
Definition conductorbuilder.h:54
void OnTimeSignature(int nTick, int nNumerator, int nDenominator) override
Set the length of a bar and create the play map.
TrackBuilder(int nTrack, bool bValidate, ErrorHandler pfnError)
Construct a builder.
void(* ErrorHandler)(String &message)
Routine that reports a build error.
Definition trackbuilder.h:19