TrackBuilder that reads the chords of a guitar track into AxeTrackData.
More...
#include <axetrackharmonybuilder.h>
|
| | AxeTrackHarmonyBuilder (int nTrack, bool bValidate, ErrorHandler pfnError, int nChannel, int nIntroTicks, AxeTrackData *pData) |
| | Construct a builder.
|
| | ~AxeTrackHarmonyBuilder () override |
| | Release the builder.
|
| void | OnNewTrack (unsigned char nTrack) override |
| | Ignore the start of the track.
|
| void | OnEndTrack () override |
| | Add the last chord to the data, after reporting a track with no chord.
|
| void | OnAllDone () override |
| | Ignore the end of the file.
|
| void | OnMidi (int nTick, unsigned char nStatus, unsigned char nData1, unsigned char nData2) override |
| | Add a note to the chord of its tick, starting a new chord at a new tick.
|
| 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 reads the chords of a guitar track into AxeTrackData.
The RTTI includes the class name and records TrackBuilder as the base. The object is 0x7c bytes. The notes that start at one tick form a chord, which lasts until the next chord starts.
◆ AxeTrackHarmonyBuilder()
| AxeTrackHarmonyBuilder::AxeTrackHarmonyBuilder |
( |
int | nTrack, |
|
|
bool | bValidate, |
|
|
ErrorHandler | pfnError, |
|
|
int | nChannel, |
|
|
int | nIntroTicks, |
|
|
AxeTrackData * | pData ) |
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. |
| nChannel | The MIDI channel of the track. |
| nIntroTicks | The length of the song intro, which must not have notes. |
| pData | The data to fill. |
- Ghidra address:
- NTSC-U/C: 0x00148c00
- Ghidra address:
- PAL: 0x0014a5c0
◆ ~AxeTrackHarmonyBuilder()
| AxeTrackHarmonyBuilder::~AxeTrackHarmonyBuilder |
( |
| ) |
|
|
override |
Release the builder.
- Ghidra address:
- NTSC-U/C: 0x00148d10
- Ghidra address:
- PAL: 0x0014a6d0
◆ OnNewTrack()
| void AxeTrackHarmonyBuilder::OnNewTrack |
( |
unsigned char | nTrack | ) |
|
|
inlineoverridevirtual |
Ignore the start of the track.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x00348a68
- Ghidra address:
- PAL: 0x003b5e98
Implements MidiReceiver.
◆ OnEndTrack()
| void AxeTrackHarmonyBuilder::OnEndTrack |
( |
| ) |
|
|
overridevirtual |
Add the last chord to the data, after reporting a track with no chord.
- Ghidra address:
- NTSC-U/C: 0x00148db0
- Ghidra address:
- PAL: 0x0014a770
Implements MidiReceiver.
◆ OnAllDone()
| void AxeTrackHarmonyBuilder::OnAllDone |
( |
| ) |
|
|
inlineoverridevirtual |
Ignore the end of the file.
- Ghidra address:
- NTSC-U/C: 0x00348a70
- Ghidra address:
- PAL: 0x003b5ea0
Implements MidiReceiver.
◆ OnMidi()
| void AxeTrackHarmonyBuilder::OnMidi |
( |
int | nTick, |
|
|
unsigned char | nStatus, |
|
|
unsigned char | nData1, |
|
|
unsigned char | nData2 ) |
|
overridevirtual |
Add a note to the chord of its tick, starting a new chord at a new tick.
- Parameters
-
| nTick | The tick. |
| nStatus | The status byte. |
| nData1 | The first data byte. |
| nData2 | The second data byte. |
- Ghidra address:
- NTSC-U/C: 0x00148e10
- Ghidra address:
- PAL: 0x0014a7d0
Implements MidiReceiver.
◆ OnTempo()
| void AxeTrackHarmonyBuilder::OnTempo |
( |
int | nTick, |
|
|
int | nMicrosecondsPerBeat ) |
|
inlineoverridevirtual |
Ignore a tempo change.
- Parameters
-
| nTick | The tick. |
| nMicrosecondsPerBeat | The new tempo. |
- Ghidra address:
- NTSC-U/C: 0x00348a78
- Ghidra address:
- PAL: 0x003b5ea8
Implements MidiReceiver.
◆ OnText()
| void AxeTrackHarmonyBuilder::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: 0x00348a80
- Ghidra address:
- PAL: 0x003b5eb0
Implements MidiReceiver.
◆ OnTimeSignature()
| void AxeTrackHarmonyBuilder::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: 0x00348a88
- Ghidra address:
- PAL: 0x003b5eb8
Implements MidiReceiver.
The documentation for this class was generated from the following file: