|
resonance 1.0.1
|
Stick-driven controller effect for a guitar track. More...
#include <axefx.h>


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. | |
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.
| pGlobals | The globals whose song clock drives the filter and dates each message. |
| pTrackData | The track description. The constructor copies its channel. |
|
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.
| flValue | The filter's output, from 0 to 1. |
Implements FilterLover.
|
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.
| pMsg | The message. |
Implements MsgSink.