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

unsigned int CLyrics::getTimestampFromBeat ( unsigned int  beat  )  [private]

Convert a beat number to a timestamp (according to GAP and BPM)

Definition at line 134 of file lyrics.cpp.

Referenced by getEndTime(), getStartTime(), and updateSentences().

{
      return (unsigned int) ((beat * 60 * 1000) / ( bpm * 4 ) + gap);
}


Generated by  Doxygen 1.6.0   Back to index