wavelength 1.0.0
Loading...
Searching...
No Matches
PlayMap::Loop Class Reference

Stretch of the song as written that plays from a bar on. More...

#include <playmap.h>

Public Member Functions

 Loop ()=default
 Loop (int nStartBar, int nNumBars, int nPlayBar)
 Construct a stretch.
bool operator< (const Loop &other) const
 Order loops by the bar they play from.
int GetStartBar () const
int GetPlayBar () const
int GetNumBars () const

Detailed Description

Stretch of the song as written that plays from a bar on.

Constructor & Destructor Documentation

◆ Loop() [1/2]

PlayMap::Loop::Loop ( )
default

◆ Loop() [2/2]

PlayMap::Loop::Loop ( int nStartBar,
int nNumBars,
int nPlayBar )
inline

Construct a stretch.

Parameters
nStartBarThe first bar of the stretch as written, or -1 for silence.
nNumBarsThe length of the stretch in bars.
nPlayBarThe bar the song plays the stretch from.

Member Function Documentation

◆ operator<()

bool PlayMap::Loop::operator< ( const Loop & other) const
inline

Order loops by the bar they play from.

Inline. The searches of mLoops expand it.

Parameters
otherThe other loop.
Returns
Whether this loop plays first.

◆ GetStartBar()

int PlayMap::Loop::GetStartBar ( ) const
inline
Returns
The first bar of the stretch as written, or -1 for silence.

◆ GetPlayBar()

int PlayMap::Loop::GetPlayBar ( ) const
inline
Returns
The bar the song plays the stretch from.

◆ GetNumBars()

int PlayMap::Loop::GetNumBars ( ) const
inline
Returns
The length of the stretch in bars.

The documentation for this class was generated from the following file: