NoteMuseBase whose note can change after it is built.
More...
#include <mutablenotemuse.h>
|
| | MutableNoteMuse (unsigned char nNote, unsigned char nVelocity, int nDuration, unsigned char nChannel) |
| | Construct a note.
|
| | ~MutableNoteMuse () override |
| | Release the note.
|
| void | Play (Scheduler *pScheduler) override |
| | Play from the start.
|
| void | PlayFrom (Scheduler *pScheduler, int nOffset) override |
| | Play with the note moved by an offset.
|
| void | PlayWindow (Scheduler *pScheduler, int nStart, int nEnd) override |
| | Play the note when it falls in a window.
|
| Muse * | Clone () override |
| | Produce a copy of the note on the heap.
|
| void | SetNote (unsigned char nNote) |
| | Set the note the muse plays from now on.
|
| | 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.
|
| | 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.
|
|
| static void * | operator new (size_t nSize) |
| | Allocate a note from the pool.
|
| static void | operator delete (void *pBlock) |
| | Return a note to the pool.
|
| static void | ReleaseIfSet (Attachment *pAttachment) |
| | Give back one reference to an object that may be null.
|
NoteMuseBase whose note can change after it is built.
The RTTI includes the class name and records NoteMuseBase as the base. The allocations come from the pool of fixed-size blocks, billed to the tag "MuteNoteMuse". AxeContour builds one for each note of a guitar track and moves its note to fit the harmony.
◆ MutableNoteMuse()
| MutableNoteMuse::MutableNoteMuse |
( |
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: 0x0015bb78
- Ghidra address:
- PAL: 0x0015d368
◆ ~MutableNoteMuse()
| MutableNoteMuse::~MutableNoteMuse |
( |
| ) |
|
|
override |
Release the note.
- Ghidra address:
- NTSC-U/C: 0x0015bbc8
- Ghidra address:
- PAL: 0x0015d3b8
◆ operator new()
| void * MutableNoteMuse::operator new |
( |
size_t | nSize | ) |
|
|
inlinestatic |
Allocate a note from the pool.
- Parameters
-
- Returns
- The block.
◆ operator delete()
| void MutableNoteMuse::operator delete |
( |
void * | pBlock | ) |
|
|
inlinestatic |
Return a note to the pool.
- Parameters
-
◆ Play()
| void MutableNoteMuse::Play |
( |
Scheduler * | pScheduler | ) |
|
|
overridevirtual |
Play from the start.
- Parameters
-
| pScheduler | The scheduler that plays the events. |
- Ghidra address:
- NTSC-U/C: 0x0015bc20
- Ghidra address:
- PAL: 0x0015d410
Implements Muse.
◆ PlayFrom()
| void MutableNoteMuse::PlayFrom |
( |
Scheduler * | pScheduler, |
|
|
int | nOffset ) |
|
overridevirtual |
Play with the note moved by an offset.
- Parameters
-
| pScheduler | The scheduler that plays the events. |
| nOffset | The offset in ticks. |
- Ghidra address:
- NTSC-U/C: 0x0015bc48
- Ghidra address:
- PAL: 0x0015d438
Implements Muse.
◆ PlayWindow()
| void MutableNoteMuse::PlayWindow |
( |
Scheduler * | pScheduler, |
|
|
int | nStart, |
|
|
int | nEnd ) |
|
overridevirtual |
Play the note when it falls in a window.
- Parameters
-
| pScheduler | The scheduler that plays the events. |
| nStart | The first tick of the window. |
| nEnd | The tick after the window. |
- Ghidra address:
- NTSC-U/C: 0x0015bc70
- Ghidra address:
- PAL: 0x0015d460
Implements Muse.
◆ Clone()
| Muse * MutableNoteMuse::Clone |
( |
| ) |
|
|
overridevirtual |
Produce a copy of the note on the heap.
- Returns
- The copy, with no reference taken.
- Ghidra address:
- NTSC-U/C: 0x0015bc98
- Ghidra address:
- PAL: 0x0015d488
Implements Muse.
◆ SetNote()
| void MutableNoteMuse::SetNote |
( |
unsigned char | nNote | ) |
|
Set the note the muse plays from now on.
- Parameters
-
| nNote | The MIDI note number. |
- Ghidra address:
- NTSC-U/C: 0x0015bd20
- Ghidra address:
- PAL: 0x0015d510
The documentation for this class was generated from the following file: