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

Sink that notes whether any note sounds past a position. More...

#include <notefinder.h>

Inheritance diagram for NoteFinder:
Collaboration diagram for NoteFinder:

Public Member Functions

 NoteFinder ()
 Start with no note found and the position at kTickInfinity.
void Search (const std::vector< TickObj< MuseMsg * > > *pMidi, Sch::Tick tick)
 Pass every message of a MIDI range through Dispatch() against a position.
virtual void DispatchPriv (Message *pMsg)
 Pass a NoteMsg to OnNote() and ignore every other 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 Attributes

int mFound
 Non-zero once a note sounds past mTick.

Detailed Description

Sink that notes whether any note sounds past a position.

Its RTTI descriptor is at 0x008eeef8. It derives publicly from MsgSink at offset 0. Its type function is at 0x001055c0 and its table at 0x007ccb98 retains MsgSink::Dispatch(). The object is 0xc bytes. LocalJamEnableMgr::QueryBar() builds one on its stack and searches the MIDI of one or two bars with it. The destructor at 0x00105588 is implicitly declared.

Constructor & Destructor Documentation

◆ NoteFinder()

NoteFinder::NoteFinder ( )
inline

Start with no note found and the position at kTickInfinity.

Member Function Documentation

◆ Search()

void NoteFinder::Search ( const std::vector< TickObj< MuseMsg * > > * pMidi,
Sch::Tick tick )
inline

Pass every message of a MIDI range through Dispatch() against a position.

LocalJamEnableMgr::QueryBar() expands the body twice. The title is inferred.

Parameters
pMidiThe range.
tickThe position a note has to sound past.
Ghidra address:
NTSC-U/C: 0x00105660
Ghidra address:
PAL: 0x00105660

◆ DispatchPriv()

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

Pass a NoteMsg to OnNote() and ignore every other message.

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

Implements MsgSink.

Member Data Documentation

◆ mFound

int NoteFinder::mFound

Non-zero once a note sounds past mTick.

Public because LocalJamEnableMgr::QueryBar() reads it directly, and the image has no accessor.


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