resonance 1.0.1
Loading...
Searching...
No Matches
pitchingstg.h
Go to the documentation of this file.
1#pragma once
2
3#include "app/msgsink.h"
4#include "app/msgsource.h"
7#include "game/trackdata.h"
8#include "gs/notepitcher.h"
9#include "gs/pitcher.h"
10#include "gs/scratcher.h"
11
29public:
39 PitchingSTG(TrackData *pTrackData);
40
49 virtual ~PitchingSTG();
50
60 virtual void Start();
61
70 virtual void Stop();
71
83 virtual void ConnectInputs(MsgSource *pPrimary, MsgSource *pOptional, MsgSource *pSecondary);
84
94 virtual void SetMixerOutput(MsgSink *pOutput);
95
105 virtual void ConnectToTunnel(MsgSink *pSink);
106
116 virtual void SetNetSink(MsgSink *pSink);
117
118private:
119 Pitcher *mPitcher; // +0x2c, a NotePitcher or a Scratcher, null for any other kind
120 JamEffectsMgr *mJamEffects; // +0x30, null outside play mode 2
121};
Manager of the jam effects a track applies to its voices.
Definition jameffectsmgr.h:27
Receiver of engine messages.
Definition msgsink.h:37
Sender of engine messages, which stores the list of sinks that receive them.
Definition msgsource.h:26
Abstract tick-driven task that both receives and sends messages.
Definition pitcher.h:34
virtual void SetNetSink(MsgSink *pSink)
Install the sink the phrase manager reports phrase changes to.
virtual void Start()
Start 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 ~PitchingSTG()
Stop the stage and release the producer and the jam effects manager.
virtual void Stop()
Stop the stage.
virtual void ConnectToTunnel(MsgSink *pSink)
Register one sink with every source the stage provides.
PitchingSTG(TrackData *pTrackData)
Build the producer for the track's kind and, in play mode 2, the jam effects manager.
ScoreTrackGraph(TrackData *pTrackData)
Build the stage's quantiser, phrase manager, phrase player, mixer, and synthesiser.
Converted events of one track of a level.
Definition trackdata.h:52