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

Player of the riff of each gem of a pitch track at the gem's tick. More...

#include <pitchtrackmusic.h>

Public Member Functions

 PitchTrackMusic (PitchTrackPlayGems *pGems, PitchTrackRiffs *pRiffs, int nTicksPerBar)
 Construct a player of gems.
 ~PitchTrackMusic ()
 Withdraw the scheduled commands and release the player.
void Start ()
 Schedule the first bar at tick 0.
void Stop ()
 Withdraw the scheduled commands.
void SetGems (PitchTrackPlayGems *pGems)
 Play other gems from the current bar on.
void Play (Muse *pRiff, int nOffset)
 Stop the riff that plays and play another.
void SetMuted (bool bMuted)
 Set whether the gems play, stopping the riff that plays when they no longer do.

Detailed Description

Player of the riff of each gem of a pitch track at the gem's tick.

The RTTI records the commands the class schedules. The class is not polymorphic. The member names are inferred.

Constructor & Destructor Documentation

◆ PitchTrackMusic()

PitchTrackMusic::PitchTrackMusic ( PitchTrackPlayGems * pGems,
PitchTrackRiffs * pRiffs,
int nTicksPerBar )

Construct a player of gems.

Parameters
pGemsThe gems.
pRiffsThe riffs of the gems.
nTicksPerBarThe song ticks in one bar.
Ghidra address:
NTSC-U/C: 0x0012d238
Ghidra address:
PAL: 0x0012ea10

◆ ~PitchTrackMusic()

PitchTrackMusic::~PitchTrackMusic ( )

Withdraw the scheduled commands and release the player.

Ghidra address:
NTSC-U/C: 0x0012d2d8
Ghidra address:
PAL: 0x0012eab0

Member Function Documentation

◆ Start()

void PitchTrackMusic::Start ( )

Schedule the first bar at tick 0.

Ghidra address:
NTSC-U/C: 0x0012d340
Ghidra address:
PAL: 0x0012eb18

◆ Stop()

void PitchTrackMusic::Stop ( )

Withdraw the scheduled commands.

Ghidra address:
NTSC-U/C: 0x0012d380
Ghidra address:
PAL: 0x0012eb58

◆ SetGems()

void PitchTrackMusic::SetGems ( PitchTrackPlayGems * pGems)

Play other gems from the current bar on.

Parameters
pGemsThe gems.
Ghidra address:
NTSC-U/C: 0x0012d3d8
Ghidra address:
PAL: 0x0012ebb0

◆ Play()

void PitchTrackMusic::Play ( Muse * pRiff,
int nOffset )

Stop the riff that plays and play another.

Parameters
pRiffThe riff.
nOffsetThe ticks the riff's events move by.
Ghidra address:
NTSC-U/C: 0x0012d440
Ghidra address:
PAL: 0x0012ec18

◆ SetMuted()

void PitchTrackMusic::SetMuted ( bool bMuted)

Set whether the gems play, stopping the riff that plays when they no longer do.

Parameters
bMutedWhether the gems are silent.
Ghidra address:
NTSC-U/C: 0x0012d4b8
Ghidra address:
PAL: 0x0012ec90

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