61 void OnNewTrack([[maybe_unused]]
unsigned char nTrack)
override {
93 OnMidi(
int nTick,
unsigned char nStatus,
unsigned char nData1,
unsigned char nData2)
override;
103 void OnTempo([[maybe_unused]]
int nTick, [[maybe_unused]]
int nMicrosecondsPerBeat)
override {
116 [[maybe_unused]]
const char *pszText,
117 [[maybe_unused]]
unsigned char nType)
override {
130 [[maybe_unused]]
int nNumerator,
131 [[maybe_unused]]
int nDenominator)
override {
150 std::vector<std::pair<int, int> > mButtons;
Checker of the channel messages of one MIDI track for authoring errors.
Definition midivalidator.h:15
Collector of the channel messages of one MIDI channel that cuts MultiMuse pieces out of them.
Definition musefactory.h:17
~ScratchTrackBuilder() override
Release the builder.
void OnText(int nTick, const char *pszText, unsigned char nType) override
Ignore a text meta event.
Definition scratchtrackbuilder.h:115
void OnAllDone() override
Ignore the end of the file.
Definition scratchtrackbuilder.h:79
static int ButtonForNote(unsigned char nNote)
Report the scratch button a note plays.
void OnNewTrack(unsigned char nTrack) override
Ignore the start of the track.
Definition scratchtrackbuilder.h:61
void OnTempo(int nTick, int nMicrosecondsPerBeat) override
Ignore a tempo change.
Definition scratchtrackbuilder.h:103
void OnMidi(int nTick, unsigned char nStatus, unsigned char nData1, unsigned char nData2) override
Record a scratch button note, or collect any other channel message for the pieces.
void OnEndTrack() override
Build a scratcher from each set of three notes, and check that every set is complete once the last SC...
void OnTimeSignature(int nTick, int nNumerator, int nDenominator) override
Ignore a time signature.
Definition scratchtrackbuilder.h:129
ScratchTrackBuilder(int nTrack, bool bValidate, ErrorHandler pfnError, int nChannel, int nIndex, int nTicksPerBar, int nIntroTicks, int nReserved, ScratchTrackData *pData)
Construct a builder.
The scratchers of a scratch track, one set of three for each span of the song.
Definition scratchtrackdata.h:15
TrackBuilder(int nTrack, bool bValidate, ErrorHandler pfnError)
Construct a builder.
void(* ErrorHandler)(String &message)
Routine that reports a build error.
Definition trackbuilder.h:19