Unit of work a Scheduler runs at a set time.
Definition command.h:13
~RepeatCmd() override=default
Destroy the object.
void Execute() override
Restart the piece and schedule the end of the new loop.
RepeatCmd(MuseLooper *pLooper)
Construct the command of a looper.
Definition muselooper.h:36
bool IsPlaying() const
Report whether the piece plays.
void Stop()
Stop the piece and withdraw the repeat.
int GetPosition() const
Report the position of the scheduler in the current loop.
~MuseLooper()
Stop the piece and release it.
int GetLength() const
Report the ticks of one loop.
void Play(Scheduler *pScheduler, int nPosition)
Start the piece at a position of the loop on a scheduler, stopping it first.
MuseLooper(Muse *pMuse, int nLength)
Construct a stopped looper.
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