61 static void *
operator new(
size_t nSize) {
70 static void operator delete(
void *pBlock) {
84 mSink->Dispatch(pMsg);
146 static int ClampTick(
int nTick) {
GenericSequencer()
Prepare a sequencer before any post.
Definition genericsequencer.h:33
Sch::Tick mStartTick
Definition genericsequencer.h:77
SequencerCmd * mCommand
Definition genericsequencer.h:73
Sch::TickClock * mClock
Definition genericsequencer.h:75
Sch::CmdID mCmdId
Definition genericsequencer.h:71
MsgSink * mSink
Definition genericsequencer.h:82
Sch::Tick mOffset
Definition genericsequencer.h:80
void Withdraw()
Withdraw every command queued under the handle.
Definition genericsequencer.h:61
Receiver of engine messages.
Definition msgsink.h:37
Abstract base shared by a family of messages.
Definition musemsg.h:28
Pausable view of scheduler time, together with the tempo that maps it to a song position.
Definition tickclock.h:40
int SongTick()
Report the song position the clock has arrived at.
Song position in MIDI ticks, printed as measure, beat, and tick.
Definition tick.h:70
int mTick
The position, in MIDI ticks at 480 per quarter note.
Definition tick.h:153
Scheduler command that runs a sequencer's next dispatch.
Definition sequencercmd.h:18
void Post(Sch::TickClock *pClock, MsgSink *pSink)
Record the clock and the sink and start sending the range.
Definition sequencer.h:100
T mCursor
The next object to send.
Definition sequencer.h:143
virtual ~Sequencer()
Withdraw the queued command, release it, and free the sequencer.
Definition sequencer.h:48
T mFinish
Definition sequencer.h:155
virtual void Dispatch()
Send a copy of the message at the cursor stamped with its tick, then schedule the next.
Definition sequencer.h:82
void ScheduleNext()
Queue or send the message at the cursor.
Definition sequencer.h:119
Sequencer(T begin, T finish)
Prepare a sequencer over a range, before any post.
Definition sequencer.h:39
T mBegin
Definition sequencer.h:154
void OperatorDeleteOverride(void *pBlock, const char *pszClass)
Release a block that AllocateTaggedMemory() handed out.
void * AllocateTaggedMemory(size_t nSize, const char *pszClass)
Allocate a block for one object of a named class.
constexpr int kTickMaximum
Largest finite position, from the bound Sch::Tick::IsInRange() accepts.
Definition tick.h:18
constexpr int kTickMinimum
Smallest finite position, from the bound Sch::Tick::IsInRange() accepts.
Definition tick.h:21