resonance 1.0.1
Loading...
Searching...
No Matches
axiscontrol.h
Go to the documentation of this file.
1#pragma once
2
3#include "app/msgsink.h"
4#include "app/msgsource.h"
5#include "game/trackdata.h"
6#include "mid/tick.h"
8#include "msg/message.h"
10
11class AllNotesOffMsg;
12class Player;
13class StdMidiMsg;
14
32class AxisControl : public MsgSink, public MsgSource {
33public:
39 AxisControl(const TrackData *pTrackData);
40
53 virtual void DispatchPriv(Message *pMsg);
54
55private:
65 void OnAxisRegister(AxisRegisterMsg *pMsg);
66
76 void OnTrackSelect(TrackSelectMsg *pMsg);
77
85 void SendPitchBend(int nTick, int nValue);
86
97 void OnStdMidi(StdMidiMsg *pMsg);
98
107 void OnAllNotesOff(AllNotesOffMsg *pMsg);
108
109 int mTrack; // +0x18
110 int mChannel; // +0x1c, the track's channel byte widened to a word
111 int mLane; // +0x20, the coarse stick position, 64 at first
112 int mAxis; // +0x24, the stick position times 1024, -1 at first
113 int mBending; // +0x28
114 int mBendOrigin; // +0x2c, the stick position the bend started from
115 Sch::Tick mSustainTick; // +0x30
116 Player *mPlayer; // +0x34, NullPlayer::sInstance until a TrackSelectMsg
117};
Event the game passes between a MsgSource and a MsgSink.
Definition allnotesoffmsg.h:23
virtual void DispatchPriv(Message *pMsg)
Act on a message.
AxisControl(const TrackData *pTrackData)
Event the game passes between a MsgSource and a MsgSink.
Definition axisregistermsg.h:25
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
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
One participant in a session, local or remote.
Definition player.h:39
Song position in MIDI ticks, printed as measure, beat, and tick.
Definition tick.h:70
Event the game passes between a MsgSource and a MsgSink.
Definition stdmidimsg.h:27
Converted events of one track of a level.
Definition trackdata.h:52
Event the game passes between a MsgSource and a MsgSink.
Definition trackselectmsg.h:24