TrackBuilder that cuts the channel messages of a background music track into one muse per bar.
More...
#include <backmusicbuilder.h>
|
| | BackMusicBuilder (int nTrack, bool bValidate, ErrorHandler pfnError, int nIntroBars, int nNumBars, int nTicksPerBar, BackMusic *pMusic) |
| | Construct a builder.
|
| | ~BackMusicBuilder () override |
| | Release the builder.
|
| void | OnNewTrack (unsigned char nTrack) override |
| | Ignore the start of the track.
|
| void | OnEndTrack () override |
| | Give the music the muse of every bar.
|
| void | OnAllDone () override |
| | Ignore the end of the file.
|
| void | OnMidi (int nTick, unsigned char nStatus, unsigned char nData1, unsigned char nData2) override |
| | Collect 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 |
| | 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.
|
TrackBuilder that cuts the channel messages of a background music track into one muse per bar.
The RTTI includes the class name and records TrackBuilder as the base. The object is 0x98 bytes.
◆ BackMusicBuilder()
| BackMusicBuilder::BackMusicBuilder |
( |
int | nTrack, |
|
|
bool | bValidate, |
|
|
ErrorHandler | pfnError, |
|
|
int | nIntroBars, |
|
|
int | nNumBars, |
|
|
int | nTicksPerBar, |
|
|
BackMusic * | pMusic ) |
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. |
| nIntroBars | The bars before bar 0. |
| nNumBars | The length of the song in bars. |
| nTicksPerBar | The song ticks in one bar. |
| pMusic | The music to fill. |
- Ghidra address:
- NTSC-U/C: 0x00149950
- Ghidra address:
- PAL: 0x0014b310
◆ ~BackMusicBuilder()
| BackMusicBuilder::~BackMusicBuilder |
( |
| ) |
|
|
override |
Release the builder.
- Ghidra address:
- NTSC-U/C: 0x00149a00
- Ghidra address:
- PAL: 0x0014b3c0
◆ OnNewTrack()
| void BackMusicBuilder::OnNewTrack |
( |
unsigned char | nTrack | ) |
|
|
inlineoverridevirtual |
Ignore the start of the track.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x00349a48
- Ghidra address:
- PAL: 0x003b6e78
Implements MidiReceiver.
◆ OnEndTrack()
| void BackMusicBuilder::OnEndTrack |
( |
| ) |
|
|
overridevirtual |
Give the music the muse of every bar.
- Ghidra address:
- NTSC-U/C: 0x00149a60
- Ghidra address:
- PAL: 0x0014b420
Implements MidiReceiver.
◆ OnAllDone()
| void BackMusicBuilder::OnAllDone |
( |
| ) |
|
|
inlineoverridevirtual |
Ignore the end of the file.
- Ghidra address:
- NTSC-U/C: 0x00349a50
- Ghidra address:
- PAL: 0x003b6e80
Implements MidiReceiver.
◆ OnMidi()
| void BackMusicBuilder::OnMidi |
( |
int | nTick, |
|
|
unsigned char | nStatus, |
|
|
unsigned char | nData1, |
|
|
unsigned char | nData2 ) |
|
overridevirtual |
Collect 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: 0x00149af8
- Ghidra address:
- PAL: 0x0014b4b8
Implements MidiReceiver.
◆ OnTempo()
| void BackMusicBuilder::OnTempo |
( |
int | nTick, |
|
|
int | nMicrosecondsPerBeat ) |
|
inlineoverridevirtual |
Ignore a tempo change.
- Parameters
-
| nTick | The tick. |
| nMicrosecondsPerBeat | The new tempo. |
- Ghidra address:
- NTSC-U/C: 0x00349a58
- Ghidra address:
- PAL: 0x003b6e88
Implements MidiReceiver.
◆ OnText()
| void BackMusicBuilder::OnText |
( |
int | nTick, |
|
|
const char * | pszText, |
|
|
unsigned char | nType ) |
|
inlineoverridevirtual |
Ignore a text meta event.
- Parameters
-
| nTick | The tick. |
| pszText | The text. |
| nType | The meta event type. |
- Ghidra address:
- NTSC-U/C: 0x00349a60
- Ghidra address:
- PAL: 0x003b6e90
Implements MidiReceiver.
◆ OnTimeSignature()
| void BackMusicBuilder::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: 0x00349a68
- Ghidra address:
- PAL: 0x003b6e98
Implements MidiReceiver.
The documentation for this class was generated from the following file: