wavelength 1.0.0
Loading...
Searching...
No Matches
Scratcher::ScratchNoteCB Class Reference

Receiver that shows each note a piece starts on the scratching player's track. More...

#include <scratcher.h>

Inheritance diagram for Scratcher::ScratchNoteCB:
Collaboration diagram for Scratcher::ScratchNoteCB:

Public Member Functions

 ~ScratchNoteCB () override=default
 Destroy the object.
void OnNote (unsigned char nNote, int nDuration) override
 Show a note at the current tick.
int GetTickOffset () const
void SetTickOffset (int nTickOffset)
int GetPlayer () const
void SetPlayer (int nPlayer)
Public Member Functions inherited from Muse::NoteCB
virtual ~NoteCB ()
 Release the receiver.

Detailed Description

Receiver that shows each note a piece starts on the scratching player's track.

The RTTI includes the nested name and records Muse::NoteCB as the base. Its constructor and destructor are inline, and Start() sets its members.

Constructor & Destructor Documentation

◆ ~ScratchNoteCB()

Scratcher::ScratchNoteCB::~ScratchNoteCB ( )
overridedefault

Destroy the object.

Ghidra address:
NTSC-U/C: 0x0034c688
Ghidra address:
PAL: 0x003b9ab8

Member Function Documentation

◆ OnNote()

void Scratcher::ScratchNoteCB::OnNote ( unsigned char nNote,
int nDuration )
overridevirtual

Show a note at the current tick.

Parameters
nNoteThe MIDI note number. The body does not read it.
nDurationThe length of the note in ticks.
Ghidra address:
NTSC-U/C: 0x00153e38
Ghidra address:
PAL: 0x001556a0

Implements Muse::NoteCB.

◆ GetTickOffset()

int Scratcher::ScratchNoteCB::GetTickOffset ( ) const
inline
Returns
The ticks added to the current tick of each note.

◆ SetTickOffset()

void Scratcher::ScratchNoteCB::SetTickOffset ( int nTickOffset)
inline
Parameters
nTickOffsetThe ticks added to the current tick of each note.

◆ GetPlayer()

int Scratcher::ScratchNoteCB::GetPlayer ( ) const
inline
Returns
The scratching player.

◆ SetPlayer()

void Scratcher::ScratchNoteCB::SetPlayer ( int nPlayer)
inline
Parameters
nPlayerThe scratching player.

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