|
wavelength 1.0.0
|
Vocal track of a remixed song, whose players switch its sections on and off. More...
#include <voxtrack.h>


Public Member Functions | |
| VoxTrack (CatchTrackData *pGems, PlayMap *pPlayMap, SectionBoundaries *pSections, SlotGrid *pPatternGrid, int nTrack, int nLeadInBars, int nNumBars, int nTicksPerBar) | |
| Construct the track for one song track. | |
| ~VoxTrack () 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, and show the player an empty phrase on it. | |
| void | HandleInput (Player *pPlayer, const PlayNoteEvent &event) override |
| Play the sound of an edit the track refuses when a gem button is pressed. | |
| void | HandleInput (Player *pPlayer, const BtnEvent< 8 > &event) override |
| Play the sound of an edit the track refuses. | |
| 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. | |
| void | RebuildGems () override |
| Copy the switch 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 it. | |
| bool | IsActive () const override |
| Report whether the track is the one the song's player plays. | |
| void | Redraw (int nStartBar) override |
| Show the track again from a bar on. | |
| void | Save (BinStream &stream) override |
| Write the switch of each section, one byte per section. | |
| void | Load (BinStream &stream) override |
| Read the switch of each section, one byte per section. | |
| void | SetSection (int nSection) |
| Set the section the song plays. | |
| void | SetSectionMuted (int nSection, bool bMuted) |
| Switch a section off or on. | |
| bool | IsSectionMuted (int nSection) const |
| Report whether a section is switched off. | |
| 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 |
Vocal track of a remixed song, whose players switch its sections on and off.
The RTTI records the class as deriving from RemixTrack. The track plays its gems unless it is active, a player on another console silences it, or the section that plays is switched off. The names of the members other than the Track and RemixTrack overrides are inferred.
| VoxTrack::VoxTrack | ( | CatchTrackData * | pGems, |
| PlayMap * | pPlayMap, | ||
| SectionBoundaries * | pSections, | ||
| SlotGrid * | pPatternGrid, | ||
| int | nTrack, | ||
| int | nLeadInBars, | ||
| int | nNumBars, | ||
| int | nTicksPerBar ) |
Construct the track for one song track.
| pGems | The gems of the song track. |
| pPlayMap | The map of the song positions. |
| pSections | The sections of the song. |
| pPatternGrid | The pattern each section repeats. |
| 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. |
|
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, and show the player an empty phrase on it.
| pPlayer | The player, or null. |
Reimplemented from Track.
|
overridevirtual |
Play the sound of an edit the track refuses when a gem button is pressed.
| pPlayer | The player. |
| event | The event. |
Implements Track.
Play the sound of an edit the track refuses.
| 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 stick event.
The body is empty.
| pPlayer | The player. |
| event | The event. |
Implements Track.
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.
| nStartBar | The first bar of the range. |
| nEndBar | The bar after the range. |
Implements RemixTrack.
|
overridevirtual |
Copy the switch 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 it.
| 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 track again from a bar on.
| nStartBar | The first bar. |
Implements RemixTrack.
|
overridevirtual |
Write the switch of each section, one byte per section.
| stream | The stream. |
Implements RemixTrack.
|
overridevirtual |
Read the switch of each section, one byte per section.
| stream | The stream. |
Implements RemixTrack.
| void VoxTrack::SetSection | ( | int | nSection | ) |
Set the section the song plays.
| nSection | The section. |
| void VoxTrack::SetSectionMuted | ( | int | nSection, |
| bool | bMuted ) |
Switch a section off or on.
| nSection | The section. |
| bMuted | Whether the section is silent. |
| bool VoxTrack::IsSectionMuted | ( | int | nSection | ) | const |
Report whether a section is switched off.
| nSection | The section. |