TrackBuilder that parses the text events of a song's SCRIPT track into script commands.
More...
#include <scripttrackbuilder.h>
|
| | ScriptTrackBuilder (int nTrack, bool bValidate, ErrorHandler pfnError, int nReserved, ScriptTrackData *pData) |
| | Construct a builder.
|
| | ~ScriptTrackBuilder () override |
| | Release the builder.
|
| void | OnNewTrack (unsigned char nTrack) override |
| | Ignore the start of the track.
|
| void | OnEndTrack () override |
| | Ignore the end of the track.
|
| void | OnAllDone () override |
| | Ignore the end of the file.
|
| void | OnMidi (int nTick, unsigned char nStatus, unsigned char nData1, unsigned char nData2) override |
| | Ignore a channel message.
|
| void | OnTempo (int nTick, int nMicrosecondsPerBeat) override |
| | Ignore a tempo change.
|
| void | OnText (int nTick, const char *pszText, unsigned char nType) override |
| | Parse a text event into a command at its tick.
|
| 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.
|
TrackBuilder that parses the text events of a song's SCRIPT track into script commands.
The RTTI includes the class name and records TrackBuilder as the base.
◆ ScriptTrackBuilder()
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. |
| nReserved | The value the constructor records at +0x10. |
| pData | The data to fill. |
- Ghidra address:
- NTSC-U/C: 0x00138b70
- Ghidra address:
- PAL: 0x0013a3d0
◆ ~ScriptTrackBuilder()
| ScriptTrackBuilder::~ScriptTrackBuilder |
( |
| ) |
|
|
inlineoverride |
Release the builder.
- Ghidra address:
- NTSC-U/C: 0x003407d0
- Ghidra address:
- PAL: 0x003add08
◆ OnNewTrack()
| void ScriptTrackBuilder::OnNewTrack |
( |
unsigned char | nTrack | ) |
|
|
inlineoverridevirtual |
Ignore the start of the track.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x003407f8
- Ghidra address:
- PAL: 0x003add30
Implements MidiReceiver.
◆ OnEndTrack()
| void ScriptTrackBuilder::OnEndTrack |
( |
| ) |
|
|
inlineoverridevirtual |
Ignore the end of the track.
- Ghidra address:
- NTSC-U/C: 0x00340818
- Ghidra address:
- PAL: 0x003add50
Implements MidiReceiver.
◆ OnAllDone()
| void ScriptTrackBuilder::OnAllDone |
( |
| ) |
|
|
inlineoverridevirtual |
Ignore the end of the file.
- Ghidra address:
- NTSC-U/C: 0x00340800
- Ghidra address:
- PAL: 0x003add38
Implements MidiReceiver.
◆ OnMidi()
| void ScriptTrackBuilder::OnMidi |
( |
int | nTick, |
|
|
unsigned char | nStatus, |
|
|
unsigned char | nData1, |
|
|
unsigned char | nData2 ) |
|
inlineoverridevirtual |
Ignore a channel message.
- Parameters
-
| nTick | The tick. |
| nStatus | The status byte. |
| nData1 | The first data byte. |
| nData2 | The second data byte. |
- Ghidra address:
- NTSC-U/C: 0x00340820
- Ghidra address:
- PAL: 0x003add58
Implements MidiReceiver.
◆ OnTempo()
| void ScriptTrackBuilder::OnTempo |
( |
int | nTick, |
|
|
int | nMicrosecondsPerBeat ) |
|
inlineoverridevirtual |
Ignore a tempo change.
- Parameters
-
| nTick | The tick. |
| nMicrosecondsPerBeat | The new tempo. |
- Ghidra address:
- NTSC-U/C: 0x00340808
- Ghidra address:
- PAL: 0x003add40
Implements MidiReceiver.
◆ OnText()
| void ScriptTrackBuilder::OnText |
( |
int | nTick, |
|
|
const char * | pszText, |
|
|
unsigned char | nType ) |
|
overridevirtual |
Parse a text event into a command at its tick.
- Parameters
-
| nTick | The tick. |
| pszText | The command text. |
| nType | The meta event type, which the builder ignores. |
- Ghidra address:
- NTSC-U/C: 0x00138bc8
- Ghidra address:
- PAL: 0x0013a428
Implements MidiReceiver.
◆ OnTimeSignature()
| void ScriptTrackBuilder::OnTimeSignature |
( |
int | nTick, |
|
|
int | nNumerator, |
|
|
int | nDenominator ) |
|
inlineoverridevirtual |
Ignore a time signature.
- Parameters
-
| nTick | The tick. |
| nNumerator | The beats per bar. |
| nDenominator | The beat unit. |
- Ghidra address:
- NTSC-U/C: 0x00340810
- Ghidra address:
- PAL: 0x003add48
Implements MidiReceiver.
The documentation for this class was generated from the following file: