Logo Search packages:      
Sourcecode: ultrastar-ng version File versions  Download package

CLyrics Class Reference

#include <lyrics.h>

List of all members.

Detailed Description

Song lyrics class. Stores the lyrics, and finds out when they should be sung

Definition at line 12 of file lyrics.h.

Public Member Functions

 CLyrics (std::vector< TNote * > _lyrics, float _gap, float _bpm)
TNote * getCurrentNote ()
std::vector< TNote * > getCurrentSentence ()
char * getSentenceFuture ()
char * getSentenceNext ()
char * getSentenceNow ()
char * getSentencePast ()
char * getSentenceWhole ()
void updateSentences (unsigned int timestamp)

Private Member Functions

unsigned int getEndTime (int sentence)
unsigned int getStartTime (int sentence)
unsigned int getTimestampFromBeat (unsigned int beat)

Private Attributes

float bpm
std::vector< std::vector
< TNote * > > 
float gap
int lastSentenceIndex
int lastSyllableIndex
std::vector< TNote * > lyrics
char sentenceFuture [1024]
char sentenceNext [1024]
char sentenceNow [1024]
char sentencePast [1024]
char sentenceWhole [1024]

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

Generated by  Doxygen 1.6.0   Back to index