|
wavelength 1.0.0
|
Player of the music of the captured bars of one catch track. More...
#include <catchtrackmusic.h>


Classes | |
| class | PlayBarCmd |
| Command that plays the bar the song arrives at and runs again a bar later. More... | |
Public Member Functions | |
| CatchTrackMusic (CatchTrackState *pState, int nTicksPerBar, int nNumBars, PlayMap *pPlayMap, int nStopPrevious) | |
| Construct the player and collect the music of the gems bar by bar. | |
| ~CatchTrackMusic () override | |
| Stop the music and release the bars. | |
| void | Start () |
| Stop the music and schedule the bars from the next bar boundary on. | |
| void | Stop () |
| Withdraw the scheduled command and stop every bar. | |
| void | Refresh () |
| Play the rest of the current bar once its phrase is captured, or stop it while the phrase is not captured. | |
| void | OnNote (unsigned char nNote, int nDuration) override |
| Stop the bar that played before the current one. | |
| Public Member Functions inherited from Muse::NoteCB | |
| virtual | ~NoteCB () |
| Release the receiver. | |
Player of the music of the captured bars of one catch track.
The RTTI includes the class name and records Muse::NoteCB as the base. Each bar of the song as written has a MultiMuse with the music of the gems of the bar. A bar plays when the song arrives at it while its phrase is captured, or always when play_all_gems is set. When the bars stop their previous notes, the first note of a bar stops the bar that played before it.
| CatchTrackMusic::CatchTrackMusic | ( | CatchTrackState * | pState, |
| int | nTicksPerBar, | ||
| int | nNumBars, | ||
| PlayMap * | pPlayMap, | ||
| int | nStopPrevious ) |
Construct the player and collect the music of the gems bar by bar.
| pState | The state of the bars of the track. |
| nTicksPerBar | The song ticks in one bar. |
| nNumBars | The length of the song in bars. |
| pPlayMap | The map of the song positions. |
| nStopPrevious | Nonzero for each bar to stop its previous note, and the bar before it. |
|
override |
Stop the music and release the bars.
| void CatchTrackMusic::Start | ( | ) |
Stop the music and schedule the bars from the next bar boundary on.
| void CatchTrackMusic::Stop | ( | ) |
Withdraw the scheduled command and stop every bar.
| void CatchTrackMusic::Refresh | ( | ) |
Play the rest of the current bar once its phrase is captured, or stop it while the phrase is not captured.
The name is inferred.
|
overridevirtual |
Stop the bar that played before the current one.
| nNote | The MIDI note number, which is not read. |
| nDuration | The length of the note in ticks, which is not read. |
Implements Muse::NoteCB.