wavelength 1.0.0
Loading...
Searching...
No Matches
WorldBeatBuilder Class Reference

TrackBuilder that collects the events of the track named "WORLD". More...

#include <worldbeatbuilder.h>

Inheritance diagram for WorldBeatBuilder:
Collaboration diagram for WorldBeatBuilder:

Public Member Functions

 WorldBeatBuilder (int nTrack, bool bValidate, ErrorHandler pfnError, int nIntroTicks, WorldTrack *pTrack)
 Construct a builder.
 ~WorldBeatBuilder () 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
 Record the event a channel message marks.
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 event.
void OnTimeSignature (int nTick, int nNumerator, int nDenominator) override
 Ignore a time signature.
Public Member Functions inherited from TrackBuilder
 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.
Public Member Functions inherited from MidiReceiver
virtual ~MidiReceiver ()
 Release the receiver.

Additional Inherited Members

Public Types inherited from TrackBuilder
typedef void(* ErrorHandler) (String &message)
 Routine that reports a build error.
Protected Attributes inherited from TrackBuilder
int mTrack
int mValidate
ErrorHandler mErrorHandler

Detailed Description

TrackBuilder that collects the events of the track named "WORLD".

The RTTI includes the class name and records TrackBuilder as the base. The object is 0x64 bytes. The routines with an address in the binary are not reconstructed.

Constructor & Destructor Documentation

◆ WorldBeatBuilder()

WorldBeatBuilder::WorldBeatBuilder ( int nTrack,
bool bValidate,
ErrorHandler pfnError,
int nIntroTicks,
WorldTrack * pTrack )

Construct a builder.

Parameters
nTrackThe number of the MIDI track the error messages give.
bValidateCheck the events for authoring errors.
pfnErrorThe routine that reports an error, or null to print it.
nIntroTicksThe length of the song intro.
pTrackThe events to fill.
Ghidra address:
NTSC-U/C: 0x00281568
Ghidra address:
PAL: 0x0028ae68

◆ ~WorldBeatBuilder()

WorldBeatBuilder::~WorldBeatBuilder ( )
override

Release the builder.

Ghidra address:
NTSC-U/C: 0x002815f0
Ghidra address:
PAL: 0x0028aef0

Member Function Documentation

◆ OnNewTrack()

void WorldBeatBuilder::OnNewTrack ( unsigned char nTrack)
inlineoverridevirtual

Ignore the start of the track.

Parameters
nTrackThe track.

Implements MidiReceiver.

◆ OnEndTrack()

void WorldBeatBuilder::OnEndTrack ( )
inlineoverridevirtual

Ignore the end of the track.

Implements MidiReceiver.

◆ OnAllDone()

void WorldBeatBuilder::OnAllDone ( )
inlineoverridevirtual

Ignore the end of the file.

Implements MidiReceiver.

◆ OnMidi()

void WorldBeatBuilder::OnMidi ( int nTick,
unsigned char nStatus,
unsigned char nData1,
unsigned char nData2 )
overridevirtual

Record the event a channel message marks.

Parameters
nTickThe tick of the message.
nStatusThe status byte.
nData1The first data byte.
nData2The second data byte.
Ghidra address:
NTSC-U/C: 0x00281640
Ghidra address:
PAL: 0x0028af40

Implements MidiReceiver.

◆ OnTempo()

void WorldBeatBuilder::OnTempo ( int nTick,
int nMicrosecondsPerBeat )
inlineoverridevirtual

Ignore a tempo change.

Parameters
nTickThe tick.
nMicrosecondsPerBeatThe tempo.

Implements MidiReceiver.

◆ OnText()

void WorldBeatBuilder::OnText ( int nTick,
const char * pszText,
unsigned char nType )
inlineoverridevirtual

Ignore a text event.

Parameters
nTickThe tick.
pszTextThe text.
nTypeThe type of the event.

Implements MidiReceiver.

◆ OnTimeSignature()

void WorldBeatBuilder::OnTimeSignature ( int nTick,
int nNumerator,
int nDenominator )
inlineoverridevirtual

Ignore a time signature.

Parameters
nTickThe tick.
nNumeratorThe beats in a bar.
nDenominatorThe length of a beat.

Implements MidiReceiver.


The documentation for this class was generated from the following file: