#include <Sequence.h>
Description
Assets that contains information to play a song made of loaded audio samples.
Unless specified otherwise, all subclass Add/Get/Remove functions that take an index i adhere to the following behavior: If i is less than 0 or is greater than the number of elements in the container, the i is wrapped around. Thus, as long as at least one element exists, a valid element will always be returned.
Data Structures | |
class | Chord |
class | Measure |
struct | Note |
Functions | |
float | GetLength () |
int | GetNumMeasures () |
int | GetNumMeasuresUsed () |
void | AddMeasures (const std::vector< Measure > &) |
Measure & | GetMeasure (int i) |
void | RemoveMeasure (int i) |
Properties | |
float | beatsPerMinute |
int | beatsPerMeasure |
float | beatDuration |
Member Function Documentation
float GetLength | ( | ) |
Returns the duration of the Sequence in seconds.
int GetNumMeasures | ( | ) |
Returns the number of physical measures stored in the sequence.
int GetNumMeasuresUsed | ( | ) |
Returns the number of measures up to the last measure actully being utilized. i.e. the last measure that contains a note.
void AddMeasures | ( | const std::vector< Measure > & | ) |
Adds measures to the sequence.
- Parameters
-
count Number of measures to add.
Measure& GetMeasure | ( | int | i | ) |
Returns the specified measure.
void RemoveMeasure | ( | int | i | ) |
Remove the specified measure.
Field Documentation
float beatsPerMinute |
The playback speed of the sequence.
int beatsPerMeasure |
The number of beats that each measure should be given.
float beatDuration |
Defines what represents the beat. This is a fraction of the while measure. For example, in 4/4 time, the beatDuration would be 1.f / 4.f because the quarter note would get the beat.
The documentation for this class was generated from the following file:
- /home/jc/git/Dynacoe/DynacoeSrc/includes/Dynacoe/Sequence.h