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

The notes and chords of a guitar track, one set of each for each span of the song. More...

#include <axetrackdata.h>

Classes

struct  ContourSet
 The notes of the gem buttons from one tick on, deleted with the data. More...

Public Member Functions

 AxeTrackData (int nEndTick, int nReserved)
 Construct empty data.
 ~AxeTrackData ()
 Release every set of notes and every chord.
void AddHarmony (int nTick, const AxeHarmony *pHarmony)
 Add the chord that plays from a tick on.
void AddContours (int nTick, AxeContour *pFirst, AxeContour *pSecond, AxeContour *pThird)
 Add the notes of the gem buttons that play from a tick on.
int GetContours (int nTick, AxeContour **ppFirst, AxeContour **ppSecond, AxeContour **ppThird) const
 Report the notes of the set that plays at a tick.
int GetHarmony (int nTick, const AxeHarmony **ppHarmony) const
 Report the chord that plays at a tick.
int GetEndTick () const
int GetReserved () const

Static Public Attributes

static constexpr int kSetSize = 3
 The number of gem buttons, each with the notes of one AxeContour.

Detailed Description

The notes and chords of a guitar track, one set of each for each span of the song.

The class is not polymorphic. The RTTI of the nested ContourSet records the name. The object is 0x28 bytes. A set starts at its tick and lasts until the tick of the next set. The data manages the notes and chords it is given.

Constructor & Destructor Documentation

◆ AxeTrackData()

AxeTrackData::AxeTrackData ( int nEndTick,
int nReserved )

Construct empty data.

Parameters
nEndTickThe tick at and after which AddContours() and AddHarmony() discard what they are given.
nReservedThe value recorded second, which each Axer receives.
Ghidra address:
NTSC-U/C: 0x00149170
Ghidra address:
PAL: 0x0014ab30

◆ ~AxeTrackData()

AxeTrackData::~AxeTrackData ( )

Release every set of notes and every chord.

Ghidra address:
NTSC-U/C: 0x001491a0
Ghidra address:
PAL: 0x0014ab60

Member Function Documentation

◆ AddHarmony()

void AxeTrackData::AddHarmony ( int nTick,
const AxeHarmony * pHarmony )

Add the chord that plays from a tick on.

A chord at or after the end tick is deleted.

Parameters
nTickThe tick.
pHarmonyThe chord.
Ghidra address:
NTSC-U/C: 0x00149330
Ghidra address:
PAL: 0x0014acf0

◆ AddContours()

void AxeTrackData::AddContours ( int nTick,
AxeContour * pFirst,
AxeContour * pSecond,
AxeContour * pThird )

Add the notes of the gem buttons that play from a tick on.

Notes at or after the end tick are deleted.

Parameters
nTickThe tick.
pFirstThe notes of the first gem button.
pSecondThe notes of the second gem button.
pThirdThe notes of the third gem button.
Ghidra address:
NTSC-U/C: 0x00149388
Ghidra address:
PAL: 0x0014ad48

◆ GetContours()

int AxeTrackData::GetContours ( int nTick,
AxeContour ** ppFirst,
AxeContour ** ppSecond,
AxeContour ** ppThird ) const

Report the notes of the set that plays at a tick.

The set is the last that starts at or before the tick. The data must have one.

Parameters
nTickThe tick.
ppFirstReceives the notes of the first gem button.
ppSecondReceives the notes of the second gem button.
ppThirdReceives the notes of the third gem button.
Returns
The tick of the next set, or -1 when the set is the last.
Ghidra address:
NTSC-U/C: 0x00149440
Ghidra address:
PAL: 0x0014ae00

◆ GetHarmony()

int AxeTrackData::GetHarmony ( int nTick,
const AxeHarmony ** ppHarmony ) const

Report the chord that plays at a tick.

The chord is the last that starts at or before the tick. The data must have one.

Parameters
nTickThe tick.
ppHarmonyReceives the chord.
Returns
The tick of the next chord, or -1 when the chord is the last.
Ghidra address:
NTSC-U/C: 0x001494e8
Ghidra address:
PAL: 0x0014aea8

◆ GetEndTick()

int AxeTrackData::GetEndTick ( ) const
inline
Returns
The end tick AddContours() and AddHarmony() test.

◆ GetReserved()

int AxeTrackData::GetReserved ( ) const
inline
Returns
The value each Axer receives. Its use is not yet identified.

Member Data Documentation

◆ kSetSize

int AxeTrackData::kSetSize = 3
staticconstexpr

The number of gem buttons, each with the notes of one AxeContour.


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