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

Stick-driven controller effect for a guitar track. More...

#include <axefx.h>

Inheritance diagram for AxeFX:
Collaboration diagram for AxeFX:

Public Member Functions

 AxeFX (Globals *pGlobals, const TrackData *pTrackData)
virtual void OnFilterValue (float flValue)
 Take a new smoothed stick value.
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.
Public Member Functions inherited from FilterLover
virtual ~FilterLover ()
 Release nothing.

Additional Inherited Members

Public Attributes inherited from MsgSource
int mGraphBuilt
 A word no member of this class reads.

Detailed Description

Stick-driven controller effect for a guitar track.

Its RTTI descriptor is at 0x00902a40. It is built over MsgSink at offset 0, MsgSource at offset 4, and FilterLover at offset 0x18. The primary table is at 0x007dd820, the MsgSource table at 0x007dd7f8, and the FilterLover table at 0x007dd7d8. No routine in the image calls the constructor, so the class is compiled but never built. The last member is at +0x50.

The stick position of an AxisFXMsg feeds the embedded ActiveFilter, whose smoothed output arrives back through OnFilterValue() as a controller value. While a riff is playing the controller change goes to the sinks at every new value.

The destructor at 0x0019b138 is implicitly declared. It destroys mFilter, frees MsgSource's vector, and releases the object under MsgSink's tag.

Constructor & Destructor Documentation

◆ AxeFX()

AxeFX::AxeFX ( Globals * pGlobals,
const TrackData * pTrackData )
Parameters
pGlobalsThe globals whose song clock drives the filter and dates each message.
pTrackDataThe track description. The constructor copies its channel.
Ghidra address:
NTSC-U/C: 0x0019aa20
Ghidra address:
PAL: 0x001a0788

Member Function Documentation

◆ OnFilterValue()

virtual void AxeFX::OnFilterValue ( float flValue)
virtual

Take a new smoothed stick value.

Slot 2 of the FilterLover table. The value maps to a controller value of 127 minus the value times 128. A new controller value is stored, and sent while mPlaying is set.

Parameters
flValueThe filter's output, from 0 to 1.
Ghidra address:
NTSC-U/C: 0x0019b4e0
Ghidra address:
PAL: 0x001a1248

Implements FilterLover.

◆ DispatchPriv()

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

Act on a message.

Slot 3. An AxisFXMsg sets the filter's target to its value, a MultiMuseMsg starts a riff (mPlaying set and the controller sent), and an AllNotesOffMsg ends it.

Parameters
pMsgThe message.
Ghidra address:
NTSC-U/C: 0x0019b538
Ghidra address:
PAL: 0x001a12a0

Implements MsgSink.


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