resonance 1.0.1
Loading...
Searching...
No Matches
barsequencer.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstddef>
4#include <iostream>
5
6#include "app/ticktask.h"
7#include "mid/tickobj.h"
8#include "os/mem.h"
9#include "sch/sequencer.h"
10
11class MsgSink;
12class MuseMsg;
13class TrackData;
14
15namespace Sch {
16class TickClock;
17} // namespace Sch
18
29class BarSequencer : public TickTask {
30public:
42 BarSequencer(Sch::TickClock *pClock, TrackData *pTrack, MsgSink *pSink, int nUnmapped);
43
50 virtual ~BarSequencer();
51
60 static void *operator new(size_t nSize);
61
69 static void operator delete(void *pBlock);
70
78 virtual void Print(std::ostream &stream);
79
90 virtual int Tick(int nTick);
91
92private:
93 TrackData *mTrack;
94 MsgSink *mSink;
95 Sch::TickClock *mClock;
96 int mUnmapped;
98};
virtual void Print(std::ostream &stream)
Write {BarSequencer}.
virtual int Tick(int nTick)
Start sending the MIDI of the bar a position falls in.
BarSequencer(Sch::TickClock *pClock, TrackData *pTrack, MsgSink *pSink, int nUnmapped)
Prepare the task with no sequencer.
virtual ~BarSequencer()
Delete the sequencer and release the task.
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
Dispatcher of one range of timed messages against a clock.
Definition sequencer.h:29
TickTask(Sch::TickClock *pClock, int nPeriod, int bAligned)
Converted events of one track of a level.
Definition trackdata.h:52
Scheduling of timed commands.
Definition activefilter.h:9