resonance 1.0.1
Loading...
Searching...
No Matches
AxeOldGemMaker Class Reference

Producer of the gems a guitar or vocal track presents, in its earlier form. More...

#include <axeoldgemmaker.h>

Inheritance diagram for AxeOldGemMaker:
Collaboration diagram for AxeOldGemMaker:

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ AxeOldGemMaker()

AxeOldGemMaker::AxeOldGemMaker ( const TrackData * pTrackData)
explicit
Parameters
pTrackDataThe track description. The constructor copies its track.
Ghidra address:
NTSC-U/C: 0x001a31c8
Ghidra address:
PAL: 0x001a8f30

Member Function Documentation

◆ DispatchPriv()

virtual void AxeOldGemMaker::DispatchPriv ( Message * pMsg)
virtual

Act on a message.

A PhraseMsg goes to OnPhrase(), a NoteMsg to PostDurGemMsg(), and a StdMidiMsg to OnStdMidi(). Every other message is ignored.

Parameters
pMsgThe message.
Ghidra address:
NTSC-U/C: 0x001a47a8
Ghidra address:
PAL: 0x001aa510

Implements MsgSink.

◆ BlendForStep()

float AxeOldGemMaker::BlendForStep ( int nStep)
static

Report the gem blend for a pitch step.

PhraseMgr::PostDurGemMsg() and Scratcher are the recovered callers. The title is inferred.

Parameters
nStepThe step, from -3 to 3.
Returns
0.7, 0.8, 0.9, 0.5, 0.3, 0.2, or 0.1 for steps -3 through 3, and 0 for any other step.
Ghidra address:
NTSC-U/C: 0x001a4578
Ghidra address:
PAL: 0x001aa2e0

◆ BlendForAxis()

float AxeOldGemMaker::BlendForAxis ( float flValue)
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.

Parameters
flValueThe axis value.
Returns
The blend.
Ghidra address:
NTSC-U/C: 0x001a4638
Ghidra address:
PAL: 0x001aa3a0

The documentation for this class was generated from the following file: