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

Player of the music of the captured bars of one catch track. More...

#include <catchtrackmusic.h>

Inheritance diagram for CatchTrackMusic:
Collaboration diagram for CatchTrackMusic:

Classes

class  PlayBarCmd
 Command that plays the bar the song arrives at and runs again a bar later. More...

Public Member Functions

 CatchTrackMusic (CatchTrackState *pState, int nTicksPerBar, int nNumBars, PlayMap *pPlayMap, int nStopPrevious)
 Construct the player and collect the music of the gems bar by bar.
 ~CatchTrackMusic () override
 Stop the music and release the bars.
void Start ()
 Stop the music and schedule the bars from the next bar boundary on.
void Stop ()
 Withdraw the scheduled command and stop every bar.
void Refresh ()
 Play the rest of the current bar once its phrase is captured, or stop it while the phrase is not captured.
void OnNote (unsigned char nNote, int nDuration) override
 Stop the bar that played before the current one.
Public Member Functions inherited from Muse::NoteCB
virtual ~NoteCB ()
 Release the receiver.

Detailed Description

Player of the music of the captured bars of one catch track.

The RTTI includes the class name and records Muse::NoteCB as the base. Each bar of the song as written has a MultiMuse with the music of the gems of the bar. A bar plays when the song arrives at it while its phrase is captured, or always when play_all_gems is set. When the bars stop their previous notes, the first note of a bar stops the bar that played before it.

Constructor & Destructor Documentation

◆ CatchTrackMusic()

CatchTrackMusic::CatchTrackMusic ( CatchTrackState * pState,
int nTicksPerBar,
int nNumBars,
PlayMap * pPlayMap,
int nStopPrevious )

Construct the player and collect the music of the gems bar by bar.

Parameters
pStateThe state of the bars of the track.
nTicksPerBarThe song ticks in one bar.
nNumBarsThe length of the song in bars.
pPlayMapThe map of the song positions.
nStopPreviousNonzero for each bar to stop its previous note, and the bar before it.
Ghidra address:
NTSC-U/C: 0x0014d7d0
Ghidra address:
PAL: 0x0014f170

◆ ~CatchTrackMusic()

CatchTrackMusic::~CatchTrackMusic ( )
override

Stop the music and release the bars.

Ghidra address:
NTSC-U/C: 0x0014d930
Ghidra address:
PAL: 0x0014f2d0

Member Function Documentation

◆ Start()

void CatchTrackMusic::Start ( )

Stop the music and schedule the bars from the next bar boundary on.

Ghidra address:
NTSC-U/C: 0x0014da08
Ghidra address:
PAL: 0x0014f3a8

◆ Stop()

void CatchTrackMusic::Stop ( )

Withdraw the scheduled command and stop every bar.

Ghidra address:
NTSC-U/C: 0x0014daa0
Ghidra address:
PAL: 0x0014f440

◆ Refresh()

void CatchTrackMusic::Refresh ( )

Play the rest of the current bar once its phrase is captured, or stop it while the phrase is not captured.

The name is inferred.

Ghidra address:
NTSC-U/C: 0x0014dbd0
Ghidra address:
PAL: 0x0014f570

◆ OnNote()

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

Stop the bar that played before the current one.

Parameters
nNoteThe MIDI note number, which is not read.
nDurationThe length of the note in ticks, which is not read.
Ghidra address:
NTSC-U/C: 0x0014dfb8
Ghidra address:
PAL: 0x0014f958

Implements Muse::NoteCB.


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