resonance 1.0.1
Loading...
Searching...
No Matches
musemsg.h
Go to the documentation of this file.
1#pragma once
2
3#include "mid/tick.h"
4#include "msg/message.h"
5
28class MuseMsg : public Message {
29public:
40
50 explicit MuseMsg(int nTick) : mTick(nTick) {
51 }
52
64
71 int mTick;
72};
73
83extern int g_nFirstMuseMsgType;
84
93extern int g_nEndMuseMsgType;
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
MuseMsg(int nTick)
Start the song position at a tick.
Definition musemsg.h:50
MuseMsg * CloneAndShift(int nTick)
Copy this message and move the copy to a song position.
int mTick
The song position, in MIDI ticks.
Definition musemsg.h:71
MuseMsg()
Start the song position at kTickInfinity.
Definition musemsg.h:38
int g_nEndMuseMsgType
Identity one past the MuseMsg range, 206.
int g_nFirstMuseMsgType
First identity in the range the MuseMsg classes register, 200.
constexpr int kTickInfinity
Position the printer renders as positive infinity.
Definition tick.h:15