|
resonance 1.0.1
|
Producer of the gems a guitar or vocal track presents, in its earlier form. More...
#include <axeoldgemmaker.h>


Public Member Functions | |
| AxeOldGemMaker (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. | |
Static Public Member Functions | |
| static float | BlendForStep (int nStep) |
| Report the gem blend for a pitch step. | |
| static float | BlendForAxis (float flValue) |
| Map an axis value between 0 and 1 onto the gem blend, 0.2 to 0.8. | |
Additional Inherited Members | |
| Public Attributes inherited from MsgSource | |
| int | mGraphBuilt |
| A word no member of this class reads. | |
Producer of the gems a guitar or vocal track presents, in its earlier form.
Its RTTI descriptor is at 0x008ef220. It is built over MsgSink at offset 0 and MsgSource at offset 4. Its primary table is at 0x007dedf0 with four entries and its MsgSource subobject table at 0x007dedc8 with four. The object is 0x28 bytes, which the tagged allocations in AxingSTG and VoxingSTG both measure.
Both classes build one of these and one AxeNewGemMaker, and the pair coexists rather than one replacing the other. Which of the two a given track reaches is not recovered.
The maker replays a PhraseMsg's sequence through its own DispatchPriv(), advancing mPosition to each entry. Every NoteMsg becomes a DurGemMsg from mPosition, and a sustain-pedal release and press on controller 46 bound a DurGemMsg of their own.
The destructor at 0x001a3f90 is implicitly declared. It destroys MsgSource's vector and releases the object under MsgSink's tag.
|
explicit |
| pTrackData | The track description. The constructor copies its track. |
|
virtual |
Act on a message.
A PhraseMsg goes to OnPhrase(), a NoteMsg to PostDurGemMsg(), and a StdMidiMsg to OnStdMidi(). Every other message is ignored.
| pMsg | The message. |
Implements MsgSink.
|
static |
Report the gem blend for a pitch step.
PhraseMgr::PostDurGemMsg() and Scratcher are the recovered callers. The title is inferred.
| nStep | The step, from -3 to 3. |
|
inlinestatic |
Map an axis value between 0 and 1 onto the gem blend, 0.2 to 0.8.
Inline, computed in double precision. AxeNewGemMaker::PostGemMessages() and PostDurGemMsg() expand it. The image has no caller of the out-of-line copy. The title is inferred.
| flValue | The axis value. |