wavelength 1.0.0
Loading...
Searching...
No Matches
LevelMidiBuilder::BuilderReceiver Class Reference

MidiReceiver that passes the events of the MIDI file to the builder. More...

#include <levelmidibuilder.h>

Inheritance diagram for LevelMidiBuilder::BuilderReceiver:
Collaboration diagram for LevelMidiBuilder::BuilderReceiver:

Public Member Functions

 BuilderReceiver (LevelMidiBuilder *pOwner)
 Construct a receiver for a builder.
 ~BuilderReceiver () override
 Release the receiver.
void OnNewTrack (unsigned char nTrack) override
 Pass the start of a track to the builder.
void OnEndTrack () override
 Pass the end of a track to the builder.
void OnAllDone () override
 Pass the end of the file to the builder.
void OnMidi (int nTick, unsigned char nStatus, unsigned char nData1, unsigned char nData2) override
 Pass a channel message to the builder.
void OnTempo (int nTick, int nMicrosecondsPerBeat) override
 Pass a tempo change to the builder.
void OnText (int nTick, const char *pszText, unsigned char nType) override
 Pass a text event to the builder.
void OnTimeSignature (int nTick, int nNumerator, int nDenominator) override
 Pass a time signature to the builder.
Public Member Functions inherited from MidiReceiver
virtual ~MidiReceiver ()
 Release the receiver.

Detailed Description

MidiReceiver that passes the events of the MIDI file to the builder.

Constructor & Destructor Documentation

◆ BuilderReceiver()

LevelMidiBuilder::BuilderReceiver::BuilderReceiver ( LevelMidiBuilder * pOwner)
inlineexplicit

Construct a receiver for a builder.

Parameters
pOwnerThe builder.

◆ ~BuilderReceiver()

LevelMidiBuilder::BuilderReceiver::~BuilderReceiver ( )
inlineoverride

Release the receiver.

Ghidra address:
NTSC-U/C: 0x0033a6d0
Ghidra address:
PAL: 0x003a7c08

Member Function Documentation

◆ OnNewTrack()

void LevelMidiBuilder::BuilderReceiver::OnNewTrack ( unsigned char nTrack)
inlineoverridevirtual

Pass the start of a track to the builder.

Parameters
nTrackThe track.
Ghidra address:
NTSC-U/C: 0x0033a750
Ghidra address:
PAL: 0x003a7c88

Implements MidiReceiver.

◆ OnEndTrack()

void LevelMidiBuilder::BuilderReceiver::OnEndTrack ( )
inlineoverridevirtual

Pass the end of a track to the builder.

Ghidra address:
NTSC-U/C: 0x0033a770
Ghidra address:
PAL: 0x003a7ca8

Implements MidiReceiver.

◆ OnAllDone()

void LevelMidiBuilder::BuilderReceiver::OnAllDone ( )
inlineoverridevirtual

Pass the end of the file to the builder.

Ghidra address:
NTSC-U/C: 0x0033a790
Ghidra address:
PAL: 0x003a7cc8

Implements MidiReceiver.

◆ OnMidi()

void LevelMidiBuilder::BuilderReceiver::OnMidi ( int nTick,
unsigned char nStatus,
unsigned char nData1,
unsigned char nData2 )
inlineoverridevirtual

Pass a channel message to the builder.

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

Implements MidiReceiver.

◆ OnTempo()

void LevelMidiBuilder::BuilderReceiver::OnTempo ( int nTick,
int nMicrosecondsPerBeat )
inlineoverridevirtual

Pass a tempo change to the builder.

Parameters
nTickThe tick.
nMicrosecondsPerBeatThe tempo.
Ghidra address:
NTSC-U/C: 0x0033a7d8
Ghidra address:
PAL: 0x003a7d10

Implements MidiReceiver.

◆ OnText()

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

Pass a text event to the builder.

Parameters
nTickThe tick.
pszTextThe text.
nTypeThe type of the event.
Ghidra address:
NTSC-U/C: 0x0033a7f8
Ghidra address:
PAL: 0x003a7d30

Implements MidiReceiver.

◆ OnTimeSignature()

void LevelMidiBuilder::BuilderReceiver::OnTimeSignature ( int nTick,
int nNumerator,
int nDenominator )
inlineoverridevirtual

Pass a time signature to the builder.

Parameters
nTickThe tick.
nNumeratorThe beats in a bar.
nDenominatorThe length of a beat.
Ghidra address:
NTSC-U/C: 0x0033a818
Ghidra address:
PAL: 0x003a7d50

Implements MidiReceiver.


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