|
wavelength 1.0.0
|
Track of a remixed song whose gems players place, each gem playing the riff of its gem button. More...
#include <pitchtrack.h>


Public Member Functions | |
| 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. | |
| ~PitchTrack () override | |
| Release the track. | |
| void | Start () override |
| Start the track with the song. | |
| void | Stop () override |
| Stop the track with the song. | |
| void | SetPlayer (Player *pPlayer) override |
| Give the track to the player it plays for. | |
| 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 | 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 second. | |
| void | HandleInput (Player *pPlayer, const StickEvent< 2 > &event) override |
| Ignore a stick event. | |
| void | HandleInput (Player *pPlayer, const StickEvent< 6 > &event) override |
| Ignore a stick event. | |
| void | HandleInput (Player *pPlayer, const BtnEvent< 10 > &event) override |
| Ignore a button event. | |
| void | SetMuteRemote (bool bMuteRemote) override |
| Set whether the track is silent while a player on another console is on it. | |
| bool | GetMuteRemote () const override |
| Report whether the track is silent while a player on another console is on it. | |
| void | SkipBars (int nStartBar, int nEndBar) override |
| Show a range of bars empty, and start the phrases at the end of the range. | |
| void | RebuildGems () override |
| Copy the gems of each section's pattern into the section. | |
| void | SetActive (bool bActive) override |
| Set whether the track is the one the song's player plays, which silences its own riffs. | |
| bool | IsActive () const override |
| Report whether the track is the one the song's player plays. | |
| void | Redraw (int nStartBar) override |
| Show the gems again from a bar on. | |
| void | Save (BinStream &stream) override |
| Write the gems. | |
| void | Load (BinStream &stream) override |
| Read the gems and show them again from the current bar on. | |
| void | SelectPattern (int nPattern, int nStartBar, int nEndBar) |
| Copy the gems of a pattern over a range of bars, and play them. | |
| void | SetRepeat (bool bRepeat) |
| Set whether gem edits repeat on every other bar of the section. | |
| void | SetEditing (bool bEditing) |
| Set whether the remix editor is open, which hides the phrase from the player. | |
| bool | ToggleGem (signed char nSlot, int nTick, bool bRepeat, signed char nOwner) |
| Place or remove the gem at a tick, and show the change. | |
| void | EraseBar (int nBar) |
| Remove the gems of a bar, and of every other bar of the section while edits repeat. | |
| void | EraseSection (int nBar) |
| Remove the gems of the section a bar lies in. | |
| PitchTrackGems * | GetGems () |
| Public Member Functions inherited from RemixTrack | |
| RemixTrack (int nIndex) | |
| Construct a track with no player. | |
| Public Member Functions inherited from Track | |
| Track (int nIndex) | |
| Construct a track with no player. | |
| virtual | ~Track () |
| Release the track. | |
| int | GetIndex () const |
| Player * | GetPlayer () const |
Additional Inherited Members | |
| Protected Attributes inherited from Track | |
| int | mIndex |
| Player * | mPlayer |
Track of a remixed song whose gems players place, each gem playing the riff of its gem button.
The RTTI records the class as deriving from RemixTrack. A player edits the bars of the phrase the track shows, two bars from an even bar of the section on, and the first player to place a gem in a section owns the section until its last gem goes. The names of the members other than the Track overrides are inferred.
| PitchTrack::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.
| nTrack | The index of the song track. |
| nLeadInBars | The bars the song plays before bar 0. |
| nNumBars | The length of the song in bars. |
| nTicksPerBar | The song ticks in one bar. |
| pRiffData | The riffs of the song track. |
| pPatterns | The patterns of gems the track can select. |
| pPlayMap | The map of the song positions. |
| pSections | The sections of the song. |
| pPatternGrid | The pattern each section repeats, or null. |
| bDisplayed | Whether the track shows its bars and gems on the play field. |
|
override |
Release the track.
|
overridevirtual |
Start the track with the song.
Implements Track.
|
overridevirtual |
Stop the track with the song.
Implements Track.
|
overridevirtual |
Give the track to the player it plays for.
A track a player departs hides its phrase and shows its own gems again.
| pPlayer | The player, or null. |
Reimplemented from Track.
|
overridevirtual |
Place or remove the gem of a pressed gem button at the nearest sixteenth of a bar.
| pPlayer | The player. |
| event | The event. |
Implements Track.
Erase the bar at the nearest sixteenth of a bar, or its section on a second press within half a second.
| pPlayer | The player. |
| event | The event. It is unused. |
Implements Track.
|
inlineoverridevirtual |
Ignore a stick event.
The body is empty.
| pPlayer | The player. |
| event | The event. |
Implements Track.
|
inlineoverridevirtual |
Ignore a stick event.
The body is empty.
| pPlayer | The player. |
| event | The event. |
Implements Track.
|
inlineoverridevirtual |
Ignore a button event.
The body is empty.
| pPlayer | The player. |
| event | The event. |
Implements Track.
|
overridevirtual |
Set whether the track is silent while a player on another console is on it.
| bMuteRemote | Whether the track is silent. |
Implements RemixTrack.
|
overridevirtual |
Report whether the track is silent while a player on another console is on it.
Implements RemixTrack.
|
overridevirtual |
Show a range of bars empty, and start the phrases at the end of the range.
| nStartBar | The first bar of the range. |
| nEndBar | The bar after the range. |
Implements RemixTrack.
|
overridevirtual |
Copy the gems of each section's pattern into the section.
Implements RemixTrack.
|
overridevirtual |
Set whether the track is the one the song's player plays, which silences its own riffs.
| bActive | Whether the track is active. |
Implements RemixTrack.
|
overridevirtual |
Report whether the track is the one the song's player plays.
Implements RemixTrack.
|
overridevirtual |
Show the gems again from a bar on.
| nStartBar | The first bar. |
Implements RemixTrack.
|
overridevirtual |
Write the gems.
| stream | The stream. |
Implements RemixTrack.
|
overridevirtual |
Read the gems and show them again from the current bar on.
| stream | The stream. |
Implements RemixTrack.
| void PitchTrack::SelectPattern | ( | int | nPattern, |
| int | nStartBar, | ||
| int | nEndBar ) |
Copy the gems of a pattern over a range of bars, and play them.
| nPattern | The pattern. |
| nStartBar | The first bar of the range. |
| nEndBar | The bar after the range. |
| void PitchTrack::SetRepeat | ( | bool | bRepeat | ) |
Set whether gem edits repeat on every other bar of the section.
| bRepeat | Whether edits repeat. |
| void PitchTrack::SetEditing | ( | bool | bEditing | ) |
Set whether the remix editor is open, which hides the phrase from the player.
| bEditing | Whether the editor is open. |
| bool PitchTrack::ToggleGem | ( | signed char | nSlot, |
| int | nTick, | ||
| bool | bRepeat, | ||
| signed char | nOwner ) |
Place or remove the gem at a tick, and show the change.
| nSlot | The gem button. |
| nTick | The tick. |
| bRepeat | Whether the edit repeats on every other bar of the section. |
| nOwner | The player who edits the gem. |
| void PitchTrack::EraseBar | ( | int | nBar | ) |
Remove the gems of a bar, and of every other bar of the section while edits repeat.
| nBar | The bar. |
| void PitchTrack::EraseSection | ( | int | nBar | ) |
Remove the gems of the section a bar lies in.
| nBar | The bar. |
|
inline |