resonance 1.0.1
Loading...
Searching...
No Matches
contctrlmsg.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4
5#include "mid/tick.h"
6#include "msg/message.h"
7
22class ContCtrlMsg : public Message {
23public:
34 static Message *New();
35
43 virtual Message *Clone();
44
52 virtual int Type();
53
61 virtual const char *GetName() const;
62
70 virtual void PrintExtra(std::ostream &stream) const;
71
72private:
73 // The controller and value titles are inferred from the class name, a MIDI continuous
74 // controller change, whose value is the word PrintExtra() writes.
75 Sch::Tick mPosition; // +0x04
76 int mController; // +0x08
77 int mValue; // +0x0c
78};
79
90extern int g_nContCtrlMsgType;
Event the game passes between a MsgSource and a MsgSink.
Definition contctrlmsg.h:22
virtual void PrintExtra(std::ostream &stream) const
Write the word at +0x0c to a diagnostic stream as a number.
virtual const char * GetName() const
Report this message's class name.
virtual Message * Clone()
Produce a heap copy of this message.
virtual int Type()
Report this message's registered identity.
static Message * New()
Produce a default-constructed message on the heap.
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
Song position in MIDI ticks, printed as measure, beat, and tick.
Definition tick.h:70
int g_nContCtrlMsgType
Identity that ContCtrlMsg::Type() reports.