wavelength 1.0.0
Loading...
Searching...
No Matches
PitchTrackRiffData Class Reference

The riffs a pitch track plays, one set of riffs for each tick that starts a set. More...

#include <pitchtrackriffdata.h>

Classes

struct  RiffSet
 The riff of each gem button. More...

Public Member Functions

 PitchTrackRiffData ()
 Construct riff data with no riffs.
 ~PitchTrackRiffData ()
 Release the riffs.
void AddRiffs (int nTick, Muse *pRiff0, Muse *pRiff1, Muse *pRiff2)
 Add the riffs that start at a tick.
void GetRiffs (int nIndex, Muse **ppRiff0, Muse **ppRiff1, Muse **ppRiff2) const
 Report the riffs of a set.
Muse * GetRiff (int nTick, int nSlot) const
 Report the riff of one gem button at a tick.
int FindRiffs (int nTick) const
 Find the last set that starts at or before a tick.
void SetEnabled (bool bEnabled)
 Set whether the track takes part in a remix.
bool IsEnabled () const
 Report whether the track takes part in a remix.
const String & GetName () const
void SetName (const char *pszName)

Detailed Description

The riffs a pitch track plays, one set of riffs for each tick that starts a set.

The class is not polymorphic. The name comes from the RTTI of its nested class RiffSet. The member names are inferred.

Constructor & Destructor Documentation

◆ PitchTrackRiffData()

PitchTrackRiffData::PitchTrackRiffData ( )

Construct riff data with no riffs.

Ghidra address:
NTSC-U/C: 0x0012ca98
Ghidra address:
PAL: 0x0012e270

◆ ~PitchTrackRiffData()

PitchTrackRiffData::~PitchTrackRiffData ( )

Release the riffs.

Ghidra address:
NTSC-U/C: 0x0012caf0
Ghidra address:
PAL: 0x0012e2c8

Member Function Documentation

◆ AddRiffs()

void PitchTrackRiffData::AddRiffs ( int nTick,
Muse * pRiff0,
Muse * pRiff1,
Muse * pRiff2 )

Add the riffs that start at a tick.

Parameters
nTickThe tick.
pRiff0The riff of the first gem button.
pRiff1The riff of the second gem button.
pRiff2The riff of the third gem button.
Ghidra address:
NTSC-U/C: 0x0012cbc0
Ghidra address:
PAL: 0x0012e398

◆ GetRiffs()

void PitchTrackRiffData::GetRiffs ( int nIndex,
Muse ** ppRiff0,
Muse ** ppRiff1,
Muse ** ppRiff2 ) const

Report the riffs of a set.

Parameters
nIndexThe set.
ppRiff0Receives the riff of the first gem button.
ppRiff1Receives the riff of the second gem button.
ppRiff2Receives the riff of the third gem button.
Ghidra address:
NTSC-U/C: 0x0012cf00
Ghidra address:
PAL: 0x0012e6d8

◆ GetRiff()

Muse * PitchTrackRiffData::GetRiff ( int nTick,
int nSlot ) const

Report the riff of one gem button at a tick.

Parameters
nTickThe tick.
nSlotThe gem button, 0 to 2.
Returns
The riff, or null when no set starts at or before the tick or the button is out of range.
Ghidra address:
NTSC-U/C: 0x0012cf70
Ghidra address:
PAL: 0x0012e748

◆ FindRiffs()

int PitchTrackRiffData::FindRiffs ( int nTick) const

Find the last set that starts at or before a tick.

Parameters
nTickThe tick.
Returns
The set, or -1.
Ghidra address:
NTSC-U/C: 0x0012d030
Ghidra address:
PAL: 0x0012e808

◆ SetEnabled()

void PitchTrackRiffData::SetEnabled ( bool bEnabled)

Set whether the track takes part in a remix.

Parameters
bEnabledWhether the track takes part.
Ghidra address:
NTSC-U/C: 0x0012d160
Ghidra address:
PAL: 0x0012e938

◆ IsEnabled()

bool PitchTrackRiffData::IsEnabled ( ) const

Report whether the track takes part in a remix.

Returns
mEnabled.
Ghidra address:
NTSC-U/C: 0x0012d168
Ghidra address:
PAL: 0x0012e940

◆ GetName()

const String & PitchTrackRiffData::GetName ( ) const
inline
Returns
The name of the track.

◆ SetName()

void PitchTrackRiffData::SetName ( const char * pszName)
inline
Parameters
pszNameThe name of the track.

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