|
resonance 1.0.1
|
Translator of analogue stick movement into track control. More...
#include <axiscontrol.h>


Public Member Functions | |
| AxisControl (const TrackData *pTrackData) | |
| virtual void | DispatchPriv (Message *pMsg) |
| Act on a message. | |
| Public Member Functions inherited from MsgSink | |
| void * | operator new (size_t nSize) |
| Allocate a sink from the tagged heap under the tag "MsgSink". | |
| void | operator delete (void *pBlock) |
| Release a sink to the tagged heap. | |
| virtual | ~MsgSink () |
| virtual void | Dispatch (Message *pMsg) |
| Accept a message. | |
| Public Member Functions inherited from MsgSource | |
| virtual | ~MsgSource () |
| virtual void | AddSink (MsgSink *pSink) |
| Register a sink, ignoring a sink that is already registered. | |
| virtual void | RemoveSink (MsgSink *pSink) |
| Unregister the first occurrence of a sink. | |
| void | Send (Message *pMsg) const |
| Deliver a message to every registered sink, in registration order. | |
| void | ClearSinks () |
| Unregister every sink. | |
Additional Inherited Members | |
| Public Attributes inherited from MsgSource | |
| int | mGraphBuilt |
| A word no member of this class reads. | |
Translator of analogue stick movement into track control.
Its RTTI descriptor is at 0x00901ba0. It is built over MsgSink at offset 0 and MsgSource at offset 4. Its primary table is at 0x007de2b8 with four entries and its MsgSource subobject table at 0x007de290 with four. The object is 0x38 bytes, which AxingSTG's tagged allocation measures.
Slot 0 of the table at 0x007de2b8 addresses the accessor at 0x0019f868. The accessor guards on the descriptor at 0x00901ba0, and the descriptor settles the class name.
The stick's position reaches the class as an AxisRegisterMsg. The coarse position becomes a NowBarMsg lane for the display, and a note played on a sustained tick bends the pitch with the stick until the next note or an AllNotesOffMsg.
The destructor at 0x0019f6a8 is implicitly declared.
| AxisControl::AxisControl | ( | const TrackData * | pTrackData | ) |
| pTrackData | The track description. The constructor copies its track and channel. |
|
virtual |
Act on a message.
Slot 3. An AxisRegisterMsg goes to OnAxisRegister() and a TrackSelectMsg to OnTrackSelect(). An AxisFXMsg is ignored. A SustainNoteMsg records its tick in mSustainTick. A note-on at that tick starts a bend from the current stick position, snapped to the centre within 50, and any other note-on, like an AllNotesOffMsg, ends a bend in progress with a centred pitch bend.
| pMsg | The message. |
Implements MsgSink.