resonance 1.0.1
Loading...
Searching...
No Matches
PitchingSTG Class Reference

Gameplay stage for a track whose input is a pitch. More...

#include <pitchingstg.h>

Inheritance diagram for PitchingSTG:
Collaboration diagram for PitchingSTG:

Public Member Functions

 PitchingSTG (TrackData *pTrackData)
 Build the producer for the track's kind and, in play mode 2, the jam effects manager.
virtual ~PitchingSTG ()
 Stop the stage and release the producer and the jam effects manager.
virtual void Start ()
 Start the stage.
virtual void Stop ()
 Stop the stage.
virtual void ConnectInputs (MsgSource *pPrimary, MsgSource *pOptional, MsgSource *pSecondary)
 Wire the stage's objects to the sources that drive it.
virtual void SetMixerOutput (MsgSink *pOutput)
 Attach the mixer to the synthesiser and give it its output sink.
virtual void ConnectToTunnel (MsgSink *pSink)
 Register one sink with every source the stage provides.
virtual void SetNetSink (MsgSink *pSink)
 Install the sink the phrase manager reports phrase changes to.
Public Member Functions inherited from ScoreTrackGraph
 ScoreTrackGraph (TrackData *pTrackData)
 Build the stage's quantiser, phrase manager, phrase player, mixer, and synthesiser.
virtual ~ScoreTrackGraph ()
PhraseDatabase * GetPhraseDatabase ()
 Report the phrase database of this stage's phrase manager.
virtual void ConnectGamer (MsgSource *pSource)
 Register the mixer with one source.
virtual int HasNothingPending ()
 Report whether the stage has nothing outstanding.
virtual void GivePhrases (int nTick, Player *pPlayer)
 Give every phrase of the track to one player.
virtual int CanGivePhrases ()
 Report whether GivePhrases() acts on this stage.
virtual void CreatePowerbarMgr ()
 Create the phrase manager's powerbar manager.
int StartMF ()
 Run Start() and report zero.
int StopMF ()
 Run Stop() and report zero.

Additional Inherited Members

Static Public Member Functions inherited from ScoreTrackGraph
static void Delete (ScoreTrackGraph *pGraph)
 Delete a stage, which may be null.
Public Attributes inherited from ScoreTrackGraph
TrackData * mTrackData
 The track description, the constructor's argument.
Protected Attributes inherited from ScoreTrackGraph
int mTrack
PhraseMgr * mPhraseMgr
PhrasePlayer * mPhrasePlayer
Quantizer * mQuantizer
MuseSynth * mMuseSynth
int mUnused
Mixer * mMixer
Application * mApplication
BarSequencer * mSequencer

Detailed Description

Gameplay stage for a track whose input is a pitch.

Its RTTI descriptor is at 0x00902240. It has ScoreTrackGraph as its only base at offset 0. Its table is at 0x007e3648 and runs thirteen entries, the same as the base's. The class introduces no virtual. It overrides eight slots and inherits slots 5, 9, 10, 11, and 12 from the base. The object is 0x34 bytes.

The constructor picks the producer from the track's kind word, a NotePitcher for 2 and a Scratcher for 3, and it builds neither for any other value. It builds the jam effects manager only in play mode 2. Both members therefore start as null pointers and the destructor guards each release.

Slot 2 and slot 3 call the producer's TickTask::Start() and TickTask::Stop() without a null check, so a track of any other kind faults there.

Constructor & Destructor Documentation

◆ PitchingSTG()

PitchingSTG::PitchingSTG ( TrackData * pTrackData)

Build the producer for the track's kind and, in play mode 2, the jam effects manager.

The jam effects manager is installed in the phrase player.

Parameters
pTrackDataThe track description the base retains.
Ghidra address:
NTSC-U/C: 0x001c45b0
Ghidra address:
PAL: 0x001ca3f8

◆ ~PitchingSTG()

virtual PitchingSTG::~PitchingSTG ( )
virtual

Stop the stage and release the producer and the jam effects manager.

Slot 1.

Ghidra address:
NTSC-U/C: 0x001c4c68
Ghidra address:
PAL: 0x001caab0

Member Function Documentation

◆ Start()

virtual void PitchingSTG::Start ( )
virtual

Start the stage.

Slot 2. The routine starts the base and then posts the producer's tick task with the position kTickInfinity.

Ghidra address:
NTSC-U/C: 0x001c4cf0
Ghidra address:
PAL: 0x001cab38

Reimplemented from ScoreTrackGraph.

◆ Stop()

virtual void PitchingSTG::Stop ( )
virtual

Stop the stage.

Slot 3. The routine withdraws the producer's tick task and then stops the base.

Ghidra address:
NTSC-U/C: 0x001c4d28
Ghidra address:
PAL: 0x001cab70

Reimplemented from ScoreTrackGraph.

◆ ConnectInputs()

virtual void PitchingSTG::ConnectInputs ( MsgSource * pPrimary,
MsgSource * pOptional,
MsgSource * pSecondary )
virtual

Wire the stage's objects to the sources that drive it.

Slot 4.

Parameters
pPrimaryThe source the stage registers four or five of its objects with.
pOptionalA further source, which receives the phrase manager when it is supplied.
pSecondaryThe source that receives the phrase manager and the producer.
Ghidra address:
NTSC-U/C: 0x001c4798
Ghidra address:
PAL: 0x001ca5e0

Implements ScoreTrackGraph.

◆ SetMixerOutput()

virtual void PitchingSTG::SetMixerOutput ( MsgSink * pOutput)
virtual

Attach the mixer to the synthesiser and give it its output sink.

Slot 6.

Parameters
pOutputThe sink the mixer sends to, stored in Mixer::mOutput.
Ghidra address:
NTSC-U/C: 0x001c4d60
Ghidra address:
PAL: 0x001caba8

Implements ScoreTrackGraph.

◆ ConnectToTunnel()

virtual void PitchingSTG::ConnectToTunnel ( MsgSink * pSink)
virtual

Register one sink with every source the stage provides.

Slot 7.

Parameters
pSinkThe sink to register.
Ghidra address:
NTSC-U/C: 0x001c4da0
Ghidra address:
PAL: 0x001cabe8

Implements ScoreTrackGraph.

◆ SetNetSink()

virtual void PitchingSTG::SetNetSink ( MsgSink * pSink)
virtual

Install the sink the phrase manager reports phrase changes to.

Slot 8.

Parameters
pSinkThe sink to install, ignored when null.
Ghidra address:
NTSC-U/C: 0x001c4e30
Ghidra address:
PAL: 0x001cac78

Implements ScoreTrackGraph.


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