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

Effect that switches one MIDI controller fully on while it is applied. More...

#include <midionoffeffector.h>

Inheritance diagram for MidiOnOffEffector:
Collaboration diagram for MidiOnOffEffector:

Public Member Functions

 MidiOnOffEffector (unsigned char nChannel, int nType, unsigned char nController)
virtual ~MidiOnOffEffector ()
 Switch the effect off, then tear down the base.
virtual int Type ()
 Report which effect this object applies.
virtual void SetEnabled (int bEnabled)
 Send the controller with 0x7f while applied and with zero otherwise.
Public Member Functions inherited from Effector
 Effector ()
virtual ~Effector ()
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

Static Public Member Functions inherited from Effector
static Effector * CreateForType (int nType, unsigned char nChannel, int nTrack)
 Build the effect one type selects.
Public Attributes inherited from MsgSource
int mGraphBuilt
 A word no member of this class reads.

Detailed Description

Effect that switches one MIDI controller fully on while it is applied.

Its RTTI descriptor is at 0x008efe20. It has Effector as its one base. The object is 0x24 bytes and its table is at 0x007de7d8. The factory builds one for each of the three EffectorType values from kEffectorTypeMidiOnOffFirst on, with controllers 0x52, 0x53, and 0x51, and the object reports the type it was built for.

Constructor & Destructor Documentation

◆ MidiOnOffEffector()

MidiOnOffEffector::MidiOnOffEffector ( unsigned char nChannel,
int nType,
unsigned char nController )
Parameters
nChannelThe MIDI channel the controller change goes to.
nTypeThe EffectorType Type() reports.
nControllerThe controller number.
Ghidra address:
NTSC-U/C: 0x001a1bc0
Ghidra address:
PAL: 0x001a7928

◆ ~MidiOnOffEffector()

virtual MidiOnOffEffector::~MidiOnOffEffector ( )
virtual

Switch the effect off, then tear down the base.

Ghidra address:
NTSC-U/C: 0x001a1c28
Ghidra address:
PAL: 0x001a7990

Member Function Documentation

◆ Type()

virtual int MidiOnOffEffector::Type ( )
virtual

Report which effect this object applies.

Returns
The type the constructor received.
Ghidra address:
NTSC-U/C: 0x001a1cf0
Ghidra address:
PAL: 0x001a7a58

Implements Effector.

◆ SetEnabled()

virtual void MidiOnOffEffector::SetEnabled ( int bEnabled)
virtual

Send the controller with 0x7f while applied and with zero otherwise.

A request that repeats the current position sends nothing.

Parameters
bEnabledNon-zero to apply the effect.
Ghidra address:
NTSC-U/C: 0x001a0860
Ghidra address:
PAL: 0x001a65c8

Reimplemented from Effector.


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