Muse that sends one standard MIDI message.
More...
#include <stdmidimuse.h>
|
| | StdMidiMuse (unsigned char nStatus, unsigned char nData1, unsigned char nData2) |
| | Construct a muse for a message.
|
| | ~StdMidiMuse () override |
| | Withdraw the message and release the command.
|
| void | Play (Scheduler *pScheduler) override |
| | Send the message at once.
|
| void | PlayFrom (Scheduler *pScheduler, int nOffset) override |
| | Send the message after the ticks a negative offset delays it, or at once.
|
| void | PlayWindow (Scheduler *pScheduler, int nStart, int nEnd) override |
| | Send the message like PlayFrom() when the window is not empty.
|
| void | Stop () override |
| | Withdraw the queued message.
|
| bool | IsPlaying () override |
| | Report whether the message waits to be sent.
|
| int | GetLength () override |
| | Report the length of the message.
|
| Muse * | Clone () override |
| | Produce a copy of the muse on the heap.
|
| void | SetNoteCB (NoteCB *pNoteCB) override |
| | Ignore a receiver of notes.
|
| unsigned char | GetData2 () const |
| unsigned char | GetData1 () const |
| | ~Muse () override |
| | Release the muse.
|
| | Attachment () |
| | Construct an object with no reference.
|
| virtual | ~Attachment () |
| | Release the object.
|
| void | AddRef () |
| | Take one reference.
|
| void | Release () |
| | Give back one reference and delete the object once the last one is gone.
|
Muse that sends one standard MIDI message.
The RTTI includes the class name and records Muse as the base, and the nested StdMidiMuse::StdMidiCommand. The allocations come from the pool of fixed-size blocks, billed to the tag "StdMidiMuse".
◆ StdMidiMuse()
| StdMidiMuse::StdMidiMuse |
( |
unsigned char | nStatus, |
|
|
unsigned char | nData1, |
|
|
unsigned char | nData2 ) |
Construct a muse for a message.
- Parameters
-
| nStatus | The status byte. |
| nData1 | The first data byte. |
| nData2 | The second data byte. |
- Ghidra address:
- NTSC-U/C: 0x0015bf70
- Ghidra address:
- PAL: 0x0015d760
◆ ~StdMidiMuse()
| StdMidiMuse::~StdMidiMuse |
( |
| ) |
|
|
override |
Withdraw the message and release the command.
- Ghidra address:
- NTSC-U/C: 0x0015bff8
- Ghidra address:
- PAL: 0x0015d7e8
◆ operator new()
| void * StdMidiMuse::operator new |
( |
size_t | nSize | ) |
|
|
inlinestatic |
Allocate a muse from the pool.
- Parameters
-
- Returns
- The block.
◆ operator delete()
| void StdMidiMuse::operator delete |
( |
void * | pBlock | ) |
|
|
inlinestatic |
Return a muse to the pool.
- Parameters
-
◆ Play()
| void StdMidiMuse::Play |
( |
Scheduler * | pScheduler | ) |
|
|
overridevirtual |
Send the message at once.
- Parameters
-
| pScheduler | The scheduler that sends it. |
- Ghidra address:
- NTSC-U/C: 0x0015c070
- Ghidra address:
- PAL: 0x0015d860
Implements Muse.
◆ PlayFrom()
| void StdMidiMuse::PlayFrom |
( |
Scheduler * | pScheduler, |
|
|
int | nOffset ) |
|
overridevirtual |
Send the message after the ticks a negative offset delays it, or at once.
- Parameters
-
| pScheduler | The scheduler that sends it. |
| nOffset | The offset in ticks. |
- Ghidra address:
- NTSC-U/C: 0x0015c0c8
- Ghidra address:
- PAL: 0x0015d8b8
Implements Muse.
◆ PlayWindow()
| void StdMidiMuse::PlayWindow |
( |
Scheduler * | pScheduler, |
|
|
int | nStart, |
|
|
int | nEnd ) |
|
overridevirtual |
Send the message like PlayFrom() when the window is not empty.
- Parameters
-
| pScheduler | The scheduler that sends it. |
| nStart | The first tick of the window. |
| nEnd | The tick after the window. |
- Ghidra address:
- NTSC-U/C: 0x0015c130
- Ghidra address:
- PAL: 0x0015d920
Implements Muse.
◆ Stop()
| void StdMidiMuse::Stop |
( |
| ) |
|
|
overridevirtual |
Withdraw the queued message.
- Ghidra address:
- NTSC-U/C: 0x0015c1a0
- Ghidra address:
- PAL: 0x0015d990
Implements Muse.
◆ IsPlaying()
| bool StdMidiMuse::IsPlaying |
( |
| ) |
|
|
overridevirtual |
Report whether the message waits to be sent.
- Returns
- Whether it waits.
- Ghidra address:
- NTSC-U/C: 0x0015c1e0
- Ghidra address:
- PAL: 0x0015d9d0
Implements Muse.
◆ GetLength()
| int StdMidiMuse::GetLength |
( |
| ) |
|
|
inlineoverridevirtual |
Report the length of the message.
- Returns
- 0.
- Ghidra address:
- NTSC-U/C: 0x0034f078
- Ghidra address:
- PAL: 0x003bc4a0
Implements Muse.
◆ Clone()
| Muse * StdMidiMuse::Clone |
( |
| ) |
|
|
overridevirtual |
Produce a copy of the muse on the heap.
- Returns
- The copy, with no reference taken.
- Ghidra address:
- NTSC-U/C: 0x0015c208
- Ghidra address:
- PAL: 0x0015d9f8
Implements Muse.
◆ SetNoteCB()
| void StdMidiMuse::SetNoteCB |
( |
NoteCB * | pNoteCB | ) |
|
|
overridevirtual |
Ignore a receiver of notes.
The body is empty.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x0015c258
- Ghidra address:
- PAL: 0x0015da48
Implements Muse.
◆ NewProgramChange()
| StdMidiMuse * StdMidiMuse::NewProgramChange |
( |
unsigned char | nChannel, |
|
|
unsigned char | nProgram ) |
|
static |
Allocate a program change message.
- Parameters
-
| nChannel | The MIDI channel. |
| nProgram | The program number. |
- Returns
- The message, with no reference taken.
- Ghidra address:
- NTSC-U/C: 0x0015c260
- Ghidra address:
- PAL: 0x0015da50
◆ NewChannelPressure()
| StdMidiMuse * StdMidiMuse::NewChannelPressure |
( |
unsigned char | nChannel, |
|
|
unsigned char | nPressure ) |
|
static |
Allocate a channel pressure message.
- Parameters
-
| nChannel | The MIDI channel. |
| nPressure | The pressure. |
- Returns
- The message, with no reference taken.
- Ghidra address:
- NTSC-U/C: 0x0015c2b8
- Ghidra address:
- PAL: 0x0015daa8
◆ NewControlChange()
| StdMidiMuse * StdMidiMuse::NewControlChange |
( |
unsigned char | nChannel, |
|
|
unsigned char | nController, |
|
|
unsigned char | nValue ) |
|
static |
Allocate a control change message.
- Parameters
-
| nChannel | The MIDI channel. |
| nController | The controller. |
| nValue | The value. |
- Returns
- The message, with no reference taken.
- Ghidra address:
- NTSC-U/C: 0x0015c310
- Ghidra address:
- PAL: 0x0015db00
◆ GetData2()
| unsigned char StdMidiMuse::GetData2 |
( |
| ) |
const |
|
inline |
- Returns
- The second data byte.
◆ GetData1()
| unsigned char StdMidiMuse::GetData1 |
( |
| ) |
const |
|
inline |
- Returns
- The first data byte.
The documentation for this class was generated from the following file: