TrackBuilder that reads the bank files of the track named "BANK" into a BankLoader.
More...
#include <bankloaderbuilder.h>
|
| | BankLoaderBuilder (int nTrack, bool bValidate, ErrorHandler pfnError, int nIntroTicks, int nTicksPerBar, const String *pDirectory, BankLoader *pLoader) |
| | Construct a builder.
|
| | ~BankLoaderBuilder () 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 |
| | Report a channel message, which the track must not have.
|
| void | OnTempo (int nTick, int nMicrosecondsPerBeat) override |
| | Ignore a tempo change.
|
| void | OnText (int nTick, const char *pszText, unsigned char nType) override |
| | Add the bank file of a text 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.
|
TrackBuilder that reads the bank files of the track named "BANK" into a BankLoader.
The RTTI includes the class name and records TrackBuilder as the base. Each text event of the track gives a bank file. A file whose name ends in _p is a permanent bank, and one whose name ends in _s and a number is a swapped bank that plays from the bar of the event.
◆ BankLoaderBuilder()
| BankLoaderBuilder::BankLoaderBuilder |
( |
int | nTrack, |
|
|
bool | bValidate, |
|
|
ErrorHandler | pfnError, |
|
|
int | nIntroTicks, |
|
|
int | nTicksPerBar, |
|
|
const String * | pDirectory, |
|
|
BankLoader * | pLoader ) |
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. |
| nIntroTicks | The length of the song intro. |
| nTicksPerBar | The song ticks in one bar. |
| pDirectory | The directory of the bank files. |
| pLoader | The loader to fill. |
- Ghidra address:
- NTSC-U/C: 0x0014a458
- Ghidra address:
- PAL: 0x0014be18
◆ ~BankLoaderBuilder()
| BankLoaderBuilder::~BankLoaderBuilder |
( |
| ) |
|
|
override |
Release the builder.
- Ghidra address:
- NTSC-U/C: 0x0014a500
- Ghidra address:
- PAL: 0x0014bec0
◆ OnNewTrack()
| void BankLoaderBuilder::OnNewTrack |
( |
unsigned char | nTrack | ) |
|
|
inlineoverridevirtual |
Ignore the start of the track.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x00349ba0
- Ghidra address:
- PAL: 0x003b6fd0
Implements MidiReceiver.
◆ OnEndTrack()
| void BankLoaderBuilder::OnEndTrack |
( |
| ) |
|
|
inlineoverridevirtual |
Ignore the end of the track.
- Ghidra address:
- NTSC-U/C: 0x00349bc0
- Ghidra address:
- PAL: 0x003b6ff0
Implements MidiReceiver.
◆ OnAllDone()
| void BankLoaderBuilder::OnAllDone |
( |
| ) |
|
|
inlineoverridevirtual |
Ignore the end of the file.
- Ghidra address:
- NTSC-U/C: 0x00349ba8
- Ghidra address:
- PAL: 0x003b6fd8
Implements MidiReceiver.
◆ OnMidi()
| void BankLoaderBuilder::OnMidi |
( |
int | nTick, |
|
|
unsigned char | nStatus, |
|
|
unsigned char | nData1, |
|
|
unsigned char | nData2 ) |
|
overridevirtual |
Report a channel message, which the track must not have.
- Parameters
-
| nTick | The tick. |
| nStatus | The status byte. |
| nData1 | The first data byte. |
| nData2 | The second data byte. |
- Ghidra address:
- NTSC-U/C: 0x0014a550
- Ghidra address:
- PAL: 0x0014bf10
Implements MidiReceiver.
◆ OnTempo()
| void BankLoaderBuilder::OnTempo |
( |
int | nTick, |
|
|
int | nMicrosecondsPerBeat ) |
|
inlineoverridevirtual |
Ignore a tempo change.
- Parameters
-
| nTick | The tick. |
| nMicrosecondsPerBeat | The new tempo. |
- Ghidra address:
- NTSC-U/C: 0x00349bb0
- Ghidra address:
- PAL: 0x003b6fe0
Implements MidiReceiver.
◆ OnText()
| void BankLoaderBuilder::OnText |
( |
int | nTick, |
|
|
const char * | pszText, |
|
|
unsigned char | nType ) |
|
overridevirtual |
Add the bank file of a text event.
- Parameters
-
| nTick | The tick. |
| pszText | The text. |
| nType | The meta event type. Only a plain text event gives a bank. |
- Ghidra address:
- NTSC-U/C: 0x0014a570
- Ghidra address:
- PAL: 0x0014bf30
Implements MidiReceiver.
◆ OnTimeSignature()
| void BankLoaderBuilder::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: 0x00349bb8
- Ghidra address:
- PAL: 0x003b6fe8
Implements MidiReceiver.
The documentation for this class was generated from the following file: