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

Visitor that finds the lowest and highest note of a sequence. More...

#include <riffrangefinder.h>

Inheritance diagram for RiffRangeFinder:
Collaboration diagram for RiffRangeFinder:

Public Member Functions

 RiffRangeFinder (MultiMuse *pMuse, int *pLow, int *pHigh)
 Visit every message of a sequence and report the note range.
virtual void DispatchPriv (Message *pMsg)
 Widen the range to the note of a NoteMsg.
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.

Detailed Description

Visitor that finds the lowest and highest note of a sequence.

Its RTTI descriptor is at 0x008ef058. It has MsgSink as its only base at offset 0. The object is 0xc bytes. PitchPicker::OnMsg() builds one on its stack.

The destructor at 0x001c4200 is implicitly declared. It restores MsgSink's table and, for the deleting variant, releases the object under MsgSink's tag.

Constructor & Destructor Documentation

◆ RiffRangeFinder()

RiffRangeFinder::RiffRangeFinder ( MultiMuse * pMuse,
int * pLow,
int * pHigh )
inline

Visit every message of a sequence and report the note range.

Inline. PitchPicker::OnMsg() expands it, and the image also retains an out-of-line copy. The range starts at 127 for the low end and zero for the high end, which a sequence without a NoteMsg reports unchanged.

Parameters
pMuseThe sequence.
pLowReceives the lowest note number.
pHighReceives the highest note number.
Ghidra address:
NTSC-U/C: 0x001c42b0
Ghidra address:
PAL: 0x001ca0f8

Member Function Documentation

◆ DispatchPriv()

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

Widen the range to the note of a NoteMsg.

Every other message is ignored.

Parameters
pMsgThe message.
Ghidra address:
NTSC-U/C: 0x001c4538
Ghidra address:
PAL: 0x001ca380

Implements MsgSink.


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