Muse that plays one note.
More...
#include <notemusebase.h>
|
| | NoteMuseBase (unsigned char nNote, unsigned char nVelocity, int nDuration, unsigned char nChannel) |
| | Construct a note.
|
| | ~NoteMuseBase () override |
| | Silence the note and release the command.
|
| void | Play (Scheduler *pScheduler) override |
| | Play the note at once.
|
| void | PlayFrom (Scheduler *pScheduler, int nOffset) override |
| | Play the note after the ticks a negative offset delays it.
|
| void | PlayWindow (Scheduler *pScheduler, int nStart, int nEnd) override |
| | Play the note like PlayFrom() when the window is not empty.
|
| void | Stop () override |
| | Withdraw the queued note and silence it.
|
| bool | IsPlaying () override |
| | Report whether the note waits to sound or sounds.
|
| int | GetLength () override |
| | Report the length of the note.
|
| void | SetNoteCB (NoteCB *pNoteCB) override |
| | Set the receiver of the note.
|
| | ~Muse () override |
| | Release the muse.
|
| virtual Muse * | Clone ()=0 |
| | Produce a copy of the muse on the heap.
|
| | 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 plays one note.
The RTTI includes the class name and records Muse as the base, and the nested NoteMuseBase::NoteCommand. Clone() is pure in this class. Playing posts the command twice, once for the note on and once for the note off after the length of the note.
◆ NoteMuseBase()
| NoteMuseBase::NoteMuseBase |
( |
unsigned char | nNote, |
|
|
unsigned char | nVelocity, |
|
|
int | nDuration, |
|
|
unsigned char | nChannel ) |
Construct a note.
- Parameters
-
| nNote | The MIDI note number. |
| nVelocity | The MIDI velocity. |
| nDuration | The length in ticks. |
| nChannel | The MIDI channel. |
- Ghidra address:
- NTSC-U/C: 0x0015b778
- Ghidra address:
- PAL: 0x0015cf68
◆ ~NoteMuseBase()
| NoteMuseBase::~NoteMuseBase |
( |
| ) |
|
|
override |
Silence the note and release the command.
- Ghidra address:
- NTSC-U/C: 0x0015b810
- Ghidra address:
- PAL: 0x0015d000
◆ Play()
| void NoteMuseBase::Play |
( |
Scheduler * | pScheduler | ) |
|
|
overridevirtual |
Play the note at once.
- Parameters
-
| pScheduler | The scheduler that plays the note. |
- Ghidra address:
- NTSC-U/C: 0x0015b8c0
- Ghidra address:
- PAL: 0x0015d0b0
Implements Muse.
◆ PlayFrom()
| void NoteMuseBase::PlayFrom |
( |
Scheduler * | pScheduler, |
|
|
int | nOffset ) |
|
overridevirtual |
Play the note after the ticks a negative offset delays it.
A positive offset plays nothing.
- Parameters
-
| pScheduler | The scheduler that plays the note. |
| nOffset | The offset in ticks. |
- Ghidra address:
- NTSC-U/C: 0x0015b938
- Ghidra address:
- PAL: 0x0015d128
Implements Muse.
◆ PlayWindow()
| void NoteMuseBase::PlayWindow |
( |
Scheduler * | pScheduler, |
|
|
int | nStart, |
|
|
int | nEnd ) |
|
overridevirtual |
Play the note like PlayFrom() when the window is not empty.
- Parameters
-
| pScheduler | The scheduler that plays the note. |
| nStart | The first tick of the window. |
| nEnd | The tick after the window. |
- Ghidra address:
- NTSC-U/C: 0x0015b9d8
- Ghidra address:
- PAL: 0x0015d1c8
Implements Muse.
◆ Stop()
| void NoteMuseBase::Stop |
( |
| ) |
|
|
overridevirtual |
Withdraw the queued note and silence it.
- Ghidra address:
- NTSC-U/C: 0x0015ba80
- Ghidra address:
- PAL: 0x0015d270
Implements Muse.
◆ IsPlaying()
| bool NoteMuseBase::IsPlaying |
( |
| ) |
|
|
overridevirtual |
Report whether the note waits to sound or sounds.
- Returns
- Whether the note plays.
- Ghidra address:
- NTSC-U/C: 0x0015bad8
- Ghidra address:
- PAL: 0x0015d2c8
Implements Muse.
◆ GetLength()
| int NoteMuseBase::GetLength |
( |
| ) |
|
|
inlineoverridevirtual |
Report the length of the note.
- Returns
- The length in ticks.
- Ghidra address:
- NTSC-U/C: 0x0034ea60
- Ghidra address:
- PAL: 0x003bbe88
Implements Muse.
◆ SetNoteCB()
| void NoteMuseBase::SetNoteCB |
( |
NoteCB * | pNoteCB | ) |
|
|
overridevirtual |
Set the receiver of the note.
- Parameters
-
| pNoteCB | The receiver, or null. |
- Ghidra address:
- NTSC-U/C: 0x0015bb00
- Ghidra address:
- PAL: 0x0015d2f0
Implements Muse.
◆ mNote
| unsigned char NoteMuseBase::mNote |
|
protected |
◆ mVelocity
| unsigned char NoteMuseBase::mVelocity |
|
protected |
◆ mChannel
| unsigned char NoteMuseBase::mChannel |
|
protected |
◆ mSounding
| unsigned char NoteMuseBase::mSounding |
|
protected |
Whether the note on was sent and the note off was not.
◆ mDuration
| int NoteMuseBase::mDuration |
|
protected |
◆ mCmd
The command that sends the note.
◆ mNoteCB
The receiver of the note, or null.
The documentation for this class was generated from the following file: