28 unsigned char nVelocity,
30 unsigned char nChannel);
38 static void *
operator new(
size_t nSize) {
47 static void operator delete(
void *pBlock) {
108 unsigned char mNextNote;
Piece of MIDI performance that a Scheduler plays.
Definition muse.h:12
void PlayWindow(Scheduler *pScheduler, int nStart, int nEnd) override
Play the note when it falls in a window.
void SetNote(unsigned char nNote)
Set the note the muse plays from now on.
void PlayFrom(Scheduler *pScheduler, int nOffset) override
Play with the note moved by an offset.
MutableNoteMuse(unsigned char nNote, unsigned char nVelocity, int nDuration, unsigned char nChannel)
Construct a note.
void Play(Scheduler *pScheduler) override
Play from the start.
~MutableNoteMuse() override
Release the note.
Muse * Clone() override
Produce a copy of the note on the heap.
NoteMuseBase(unsigned char nNote, unsigned char nVelocity, int nDuration, unsigned char nChannel)
Construct a note.
Queue of commands that run when the song clock reaches their tick.
Definition scheduler.h:20
void * PoolAlloc(int nSize, int nBlockSize, const char *pszTag, int nUnused)
Allocate a block from the small-block pool and bill it to a tag.
void PoolFree(int nSize, void *pBlock)
Return a block to the small-block pool.