resonance 1.0.1
Loading...
Searching...
No Matches
phrasemaker.h
Go to the documentation of this file.
1#pragma once
2
3#include "app/msgsink.h"
4#include "app/msgsource.h"
5#include "msg/message.h"
6
24class PhraseMaker : public MsgSink, public MsgSource {
25public:
33 virtual void OnPeriod(int nPeriod) = 0;
34
44 virtual int GetPeriodOrigin();
45};
Receiver of engine messages.
Definition msgsink.h:37
Sender of engine messages, which stores the list of sinks that receive them.
Definition msgsource.h:26
Base of the per-instrument phrase makers.
Definition phrasemaker.h:24
virtual int GetPeriodOrigin()
Report the song position periods are counted from.
virtual void OnPeriod(int nPeriod)=0
Act on the start of a period.