157 NoteOn(
int nTick,
unsigned char nNote,
unsigned char nVelocity,
unsigned char nChannel);
172 virtual void NoteOff(
int nTick,
unsigned char nNote,
unsigned char nChannel);
191 Controller(
int nTick,
unsigned char nController,
unsigned char nValue,
unsigned char nChannel);
205 virtual void ProgramChange(
int nTick,
unsigned char nProgram,
unsigned char nChannel);
220 PitchBend(
int nTick,
unsigned char nLow,
unsigned char nHigh,
unsigned char nChannel);
232 virtual void Tempo(
int nTick,
int nMicrosecondsPerQuarter);
247 virtual void TextEvent(
int nTick,
const char *pText,
unsigned char nType);
277 void ParseTrackTypeString(
const char *pText);
294 void ApplyTrackType();
314 void AddNote(
int nTick,
316 unsigned char nVelocity,
318 unsigned char nChannel);
334 void AddGemSpan(
int nTick,
unsigned char nNote,
int nDuration);
347 int CheckRiffPosition(
int nTick);
372 void EmitRiffProgram(
int nTick);
384 void SyncRiff(
int nTick);
398 void CheckChannel(
unsigned char nChannel,
int nTick);
411 void AddHarmonyNote(
int nTick,
unsigned char nNote);
423 void FinishErrorLog();
439 void ReportError(
int nTick,
const char *pszMessage);
442 static constexpr int kDifficultyCount = 3;
448 unsigned char mChannel;
453 int mBackingTrackCount;
454 int mIntroTrackCount;
455 int mUnusedTrackCount;
469 unsigned char mProgram;
472 std::vector<PendingEvent> mPending;
479 int mIgnoreQuantization;
482 std::vector<Span> mSpans[kDifficultyCount];
483 std::vector<Span>::iterator mNextSpan;
The FreQuency application.
Definition application.h:23
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
Accumulator a MIDI conversion fills, and the one implementation of LevelData.
Definition levelbuilder.h:51
virtual void NoteOn(int nTick, unsigned char nNote, unsigned char nVelocity, unsigned char nChannel)
Receive a note on and forward it under MIDI status 0x90.
virtual void ProgramChange(int nTick, unsigned char nProgram, unsigned char nChannel)
Receive a program change and forward it under MIDI status 0xc0.
virtual ~LevelConverter()
virtual void NoteOff(int nTick, unsigned char nNote, unsigned char nChannel)
Receive a note off and forward it under MIDI status 0x80.
virtual void EndTrack()
Finish the track NewTrack() began.
virtual void Controller(int nTick, unsigned char nController, unsigned char nValue, unsigned char nChannel)
Receive a controller change and forward it under MIDI status 0xb0.
friend class GrooveWorld
Definition levelconverter.h:73
virtual void PitchBend(int nTick, unsigned char nLow, unsigned char nHigh, unsigned char nChannel)
Receive a pitch bend and forward it under MIDI status 0xe0.
virtual void TextEvent(int nTick, const char *pText, unsigned char nType)
Parse a track name, and ignore every other text event.
void Convert(const char *pszPath, void *pBuffer, int nLength, LevelBuilder *pBuilder)
Read one Standard MIDI File and fill a builder from it.
virtual void NewTrack(unsigned char nTrack)
Reset the per-track state and begin one track.
virtual void Tempo(int nTick, int nMicrosecondsPerQuarter)
Hand a tempo meta event to the builder and record that the file has a tempo.
Sink a Standard MIDI File reader delivers one event at a time to.
Definition receiver.h:27
One riff of a track at one difficulty level, as a sequence of MIDI messages.
Definition riff.h:25
Song position in MIDI ticks, printed as measure, beat, and tick.
Definition tick.h:70
LevelConverterTrackType
Kind of a MIDI track, as LevelConverter's track-name parser reports it.
Definition levelconverter.h:21
@ kTrackTypePitch
Definition levelconverter.h:25
@ kTrackTypeData
Definition levelconverter.h:28
@ kTrackTypeCatch
Definition levelconverter.h:30
@ kTrackTypeHarmony
Definition levelconverter.h:29
@ kTrackTypeInstrument
Definition levelconverter.h:34
@ kTrackTypeScratch
Definition levelconverter.h:26
@ kTrackTypeVocal
Definition levelconverter.h:27
@ kTrackTypeUnknown
Definition levelconverter.h:22
@ kTrackTypeControl
Definition levelconverter.h:33
@ kTrackTypeTempo
Definition levelconverter.h:23
@ kTrackTypeGhost
Definition levelconverter.h:35
@ kTrackTypeAxe
Definition levelconverter.h:24
@ kTrackTypeBackground
Definition levelconverter.h:31
@ kTrackTypeIntro
Definition levelconverter.h:32
One note on waiting for its note off.
Definition levelconverter.h:82
unsigned char mNote
Definition levelconverter.h:83
int mTick
Definition levelconverter.h:85
unsigned char mVelocity
Definition levelconverter.h:84
One gem of a gem track, as the three span collections store it.
Definition levelconverter.h:95
Sch::Tick mLength
Definition levelconverter.h:98
int mGem
Definition levelconverter.h:97
Sch::Tick mStart
Definition levelconverter.h:96