51 const std::vector<std::unique_ptr<PitchTrackGems>> *pPatterns,
175 void SkipBars(
int nStartBar,
int nEndBar)
override;
270 bool ToggleGem(
signed char nSlot,
int nTick,
bool bRepeat,
signed char nOwner);
311 void UpdatePhrase(
bool bStyle);
321 void ShowPhrase(
bool bPlayable,
bool bStyle);
337 std::vector<std::unique_ptr<PitchTrackPlayGems>> mPatterns;
340 std::unique_ptr<PitchTrackDisplay> mDisplay;
Stream of raw bytes, the base of the memory, file, and network streams.
Definition binstream.h:22
Input event of a button press that names only the player.
Definition btnevent.h:15
The gems of a pitch track, by the bar of the song as written they lie in.
Definition pitchtrackgems.h:17
Player of the riff of each gem of a pitch track at the gem's tick.
Definition pitchtrackmusic.h:16
The gems of a pitch track, addressed by the bars and ticks the song plays.
Definition pitchtrackplaygems.h:15
The riffs a pitch track plays, one set of riffs for each tick that starts a set.
Definition pitchtrackriffdata.h:16
The riffs of a pitch track, addressed by the ticks the song plays at.
Definition pitchtrackriffs.h:12
PitchTrackGems * GetGems()
Definition pitchtrack.h:291
void Save(BinStream &stream) override
Write the gems.
void HandleInput(Player *pPlayer, const PlayNoteEvent &event) override
Place or remove the gem of a pressed gem button at the nearest sixteenth of a bar.
void SetEditing(bool bEditing)
Set whether the remix editor is open, which hides the phrase from the player.
void Load(BinStream &stream) override
Read the gems and show them again from the current bar on.
PitchTrack(int nTrack, int nLeadInBars, int nNumBars, int nTicksPerBar, PitchTrackRiffData *pRiffData, const std::vector< std::unique_ptr< PitchTrackGems > > *pPatterns, PlayMap *pPlayMap, SectionBoundaries *pSections, SlotGrid *pPatternGrid, bool bDisplayed)
Construct the track for one song track.
void SkipBars(int nStartBar, int nEndBar) override
Show a range of bars empty, and start the phrases at the end of the range.
~PitchTrack() override
Release the track.
void SetMuteRemote(bool bMuteRemote) override
Set whether the track is silent while a player on another console is on it.
bool IsActive() const override
Report whether the track is the one the song's player plays.
void SelectPattern(int nPattern, int nStartBar, int nEndBar)
Copy the gems of a pattern over a range of bars, and play them.
void HandleInput(Player *pPlayer, const StickEvent< 2 > &event) override
Ignore a stick event.
Definition pitchtrack.h:121
void Redraw(int nStartBar) override
Show the gems again from a bar on.
bool ToggleGem(signed char nSlot, int nTick, bool bRepeat, signed char nOwner)
Place or remove the gem at a tick, and show the change.
bool GetMuteRemote() const override
Report whether the track is silent while a player on another console is on it.
void EraseSection(int nBar)
Remove the gems of the section a bar lies in.
void HandleInput(Player *pPlayer, const StickEvent< 6 > &event) override
Ignore a stick event.
Definition pitchtrack.h:133
void SetActive(bool bActive) override
Set whether the track is the one the song's player plays, which silences its own riffs.
void Start() override
Start the track with the song.
void RebuildGems() override
Copy the gems of each section's pattern into the section.
void SetPlayer(Player *pPlayer) override
Give the track to the player it plays for.
void EraseBar(int nBar)
Remove the gems of a bar, and of every other bar of the section while edits repeat.
void HandleInput(Player *pPlayer, const BtnEvent< 10 > &event) override
Ignore a button event.
Definition pitchtrack.h:145
void HandleInput(Player *pPlayer, const BtnEvent< 8 > &event) override
Erase the bar at the nearest sixteenth of a bar, or its section on a second press within half a secon...
void SetRepeat(bool bRepeat)
Set whether gem edits repeat on every other bar of the section.
void Stop() override
Stop the track with the song.
Map from the bars a song plays to the bars of the song as written, with the loops that repeat stretch...
Definition playmap.h:11
Input event that plays a note on one of the three gem buttons.
Definition playnoteevent.h:10
One participant in a song: the track the participant plays, the score, and the streak.
Definition player.h:19
Owner of one reference to an Attachment.
Definition ptr.h:16
RemixTrack(int nIndex)
Construct a track with no player.
Definition remixtrack.h:22
Ascending list of the measures at which the sections of a song end.
Definition sectionboundaries.h:12
The pattern each section of a remixed song repeats, as the section the pattern comes from.
Definition slotgrid.h:10
Input event of an analog stick position.
Definition stickevent.h:15