58 static void *
operator new(
size_t nSize) {
67 static void operator delete(
void *pBlock) {
98 static void *
operator new(
size_t nSize) {
107 static void operator delete(
void *pBlock) {
216 std::list<TimedMuse> mMuses;
217 std::list<TimedMuse>::iterator mNext;
218 std::list<TimedMuse>::iterator mFirstActive;
Unit of work a Scheduler runs at a set time.
Definition command.h:13
MultiMuseCmd(MultiMuse *pMulti)
Construct the command of a sequence.
Definition multimuse.h:49
void Execute() override
Start the muses of the next tick.
~MultiMuseCmd() override=default
Destroy the object.
void PlayWindow(Scheduler *pScheduler, int nStart, int nEnd) override
Play the part of the sequence in a window of ticks.
void Play(Scheduler *pScheduler) override
Play from the start.
void Stop() override
Withdraw the queued command and stop every muse.
void Add(Muse *pMuse, int nTick)
Insert a muse at a tick, after the muses of the same tick.
void SetNoteCB(NoteCB *pNoteCB) override
Set the receiver of the notes of every muse of the sequence.
int GetLength() override
Report the length of the sequence.
Muse * Clone() override
Produce a copy of the sequence and of each muse on the heap.
bool IsPlaying() override
Report whether the sequence plays.
~MultiMuse() override
Stop the sequence and release the muses.
MultiMuse(int nStopPrevious)
Construct an empty sequence.
void PlayFrom(Scheduler *pScheduler, int nOffset) override
Play from a tick of the sequence to its end.
Receiver of each note a muse starts.
Definition muse.h:20
Piece of MIDI performance that a Scheduler plays.
Definition muse.h:12
Owner of one reference to an Attachment.
Definition ptr.h:16
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.
One muse of the sequence and its tick.
Definition multimuse.h:23
int mTick
Definition multimuse.h:25
Ptr< Muse > mMuse
Definition multimuse.h:24