Builder of the riffs of a pitch track from its MIDI track.
More...
#include <pitchtrackbuilder.h>
|
| struct | Gem |
| | The start of the riff of a gem button. More...
|
|
| | PitchTrackBuilder (int nTrack, bool bValidate, ErrorHandler pfnError, const String &riffName, int nChannel, int nStartTick, int nEndTick, PitchTrackRiffData *pRiffData) |
| | Construct a builder.
|
| | ~PitchTrackBuilder () override |
| | Release the builder.
|
| void | OnNewTrack (unsigned char nTrack) override |
| | Ignore the start of the track.
|
| void | OnEndTrack () override |
| | Cut the riffs of each gem button out of the collected messages, and add every three to the riff data.
|
| void | OnAllDone () override |
| | Ignore the end of the file.
|
| void | OnMidi (int nTick, unsigned char nStatus, unsigned char nData1, unsigned char nData2) override |
| | Record a gem note, or collect any other message.
|
| void | OnTempo (int nTick, int nMicrosecondsPerBeat) override |
| | Ignore a tempo change.
|
| void | OnText (int nTick, const char *pszText, unsigned char nType) override |
| | Ignore a text meta event.
|
| void | OnTimeSignature (int nTick, int nNumerator, int nDenominator) override |
| | Ignore a time signature.
|
| | TrackBuilder (int nTrack, bool bValidate, ErrorHandler pfnError) |
| | Construct a builder.
|
| | ~TrackBuilder () override |
| | Release the builder.
|
| void | Error (int nTick, const char *pszMessage) |
| | Report a build error at a tick.
|
| virtual | ~MidiReceiver () |
| | Release the receiver.
|
Builder of the riffs of a pitch track from its MIDI track.
The RTTI records the class as deriving from TrackBuilder. Gem notes 96, 100, and 103 mark where the riff of each gem button starts, in that order, and every other message belongs to the riffs. The names of the members other than the MidiReceiver overrides are inferred.
◆ PitchTrackBuilder()
| PitchTrackBuilder::PitchTrackBuilder |
( |
int | nTrack, |
|
|
bool | bValidate, |
|
|
ErrorHandler | pfnError, |
|
|
const String & | riffName, |
|
|
int | nChannel, |
|
|
int | nStartTick, |
|
|
int | nEndTick, |
|
|
PitchTrackRiffData * | pRiffData ) |
Construct a builder.
- Parameters
-
| nTrack | The number of the MIDI track the error messages give. |
| bValidate | Check the events for authoring errors. |
| pfnError | The routine that reports an error, or null to print it. |
| riffName | The name the riff data receives. |
| nChannel | The channel every message must use. |
| nStartTick | The tick the song starts at, after its intro. |
| nEndTick | The tick the song ends at. |
| pRiffData | The riff data built. |
- Ghidra address:
- NTSC-U/C: 0x00129978
- Ghidra address:
- PAL: 0x0012b170
◆ ~PitchTrackBuilder()
| PitchTrackBuilder::~PitchTrackBuilder |
( |
| ) |
|
|
inlineoverride |
Release the builder.
- Ghidra address:
- NTSC-U/C: 0x0033cc68
- Ghidra address:
- PAL: 0x003aa1a0
◆ OnNewTrack()
| void PitchTrackBuilder::OnNewTrack |
( |
unsigned char | nTrack | ) |
|
|
inlineoverridevirtual |
Ignore the start of the track.
The body is empty.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x0033cd18
- Ghidra address:
- PAL: 0x003aa250
Implements MidiReceiver.
◆ OnEndTrack()
| void PitchTrackBuilder::OnEndTrack |
( |
| ) |
|
|
overridevirtual |
Cut the riffs of each gem button out of the collected messages, and add every three to the riff data.
- Ghidra address:
- NTSC-U/C: 0x00129a48
- Ghidra address:
- PAL: 0x0012b240
Implements MidiReceiver.
◆ OnAllDone()
| void PitchTrackBuilder::OnAllDone |
( |
| ) |
|
|
inlineoverridevirtual |
Ignore the end of the file.
The body is empty.
- Ghidra address:
- NTSC-U/C: 0x0033cd20
- Ghidra address:
- PAL: 0x003aa258
Implements MidiReceiver.
◆ OnMidi()
| void PitchTrackBuilder::OnMidi |
( |
int | nTick, |
|
|
unsigned char | nStatus, |
|
|
unsigned char | nData1, |
|
|
unsigned char | nData2 ) |
|
overridevirtual |
Record a gem note, or collect any other message.
- Parameters
-
| nTick | The tick. |
| nStatus | The status byte. |
| nData1 | The first data byte. |
| nData2 | The second data byte. |
- Ghidra address:
- NTSC-U/C: 0x00129bb0
- Ghidra address:
- PAL: 0x0012b3a8
Implements MidiReceiver.
◆ OnTempo()
| void PitchTrackBuilder::OnTempo |
( |
int | nTick, |
|
|
int | nMicrosecondsPerBeat ) |
|
inlineoverridevirtual |
Ignore a tempo change.
The body is empty.
- Parameters
-
| nTick | The tick. |
| nMicrosecondsPerBeat | The new tempo. |
- Ghidra address:
- NTSC-U/C: 0x0033cd28
- Ghidra address:
- PAL: 0x003aa260
Implements MidiReceiver.
◆ OnText()
| void PitchTrackBuilder::OnText |
( |
int | nTick, |
|
|
const char * | pszText, |
|
|
unsigned char | nType ) |
|
inlineoverridevirtual |
Ignore a text meta event.
The body is empty.
- Parameters
-
| nTick | The tick. |
| pszText | The text. |
| nType | The meta event type. |
- Ghidra address:
- NTSC-U/C: 0x0033cd30
- Ghidra address:
- PAL: 0x003aa268
Implements MidiReceiver.
◆ OnTimeSignature()
| void PitchTrackBuilder::OnTimeSignature |
( |
int | nTick, |
|
|
int | nNumerator, |
|
|
int | nDenominator ) |
|
inlineoverridevirtual |
Ignore a time signature.
The body is empty.
- Parameters
-
| nTick | The tick. |
| nNumerator | The beats per bar. |
| nDenominator | The beat unit. |
- Ghidra address:
- NTSC-U/C: 0x0033cd38
- Ghidra address:
- PAL: 0x003aa270
Implements MidiReceiver.
The documentation for this class was generated from the following file: