resonance 1.0.1
Loading...
Searching...
No Matches
gsperiodical.h
Go to the documentation of this file.
1#pragma once
2
3#include "sch/cmdid.h"
4
5class PhraseMaker;
6
7namespace Sch {
8class TickClock;
9} // namespace Sch
10
30public:
39 GsPeriodical(Sch::TickClock *pClock, PhraseMaker *pPhraseMaker, int nPeriod);
40
47 void Post();
48
55 void Withdraw();
56
67 void Run(int nTick);
68
69private:
77 void PostAt(int nTick);
78
79 int mOrigin; // +0x00, from PhraseMaker::GetPeriodOrigin()
80 int mPeriod; // +0x04
81 Sch::TickClock *mClock; // +0x08
82 Sch::CmdID mCommand; // +0x0c, starts -2
83 PhraseMaker *mPhraseMaker; // +0x10
84};
GsPeriodical(Sch::TickClock *pClock, PhraseMaker *pPhraseMaker, int nPeriod)
void Withdraw()
Withdraw the queued run.
void Post()
Queue the first run, one period after the origin.
void Run(int nTick)
Report the period that has elapsed at a song position and queue the next run.
Base of the per-instrument phrase makers.
Definition phrasemaker.h:24
Handle that identifies one batch of commands the scheduler has queued.
Definition cmdid.h:35
Pausable view of scheduler time, together with the tempo that maps it to a song position.
Definition tickclock.h:40
Scheduling of timed commands.
Definition activefilter.h:9