GUI: add a clock
This commit is contained in:
parent
baa3989502
commit
3f2f8a7197
8 changed files with 172 additions and 5 deletions
|
|
@ -2359,6 +2359,8 @@ void DivEngine::reset() {
|
|||
shallStop=false;
|
||||
shallStopSched=false;
|
||||
pendingMetroTick=0;
|
||||
elapsedBars=0;
|
||||
elapsedBeats=0;
|
||||
nextSpeed=speed1;
|
||||
divider=60;
|
||||
if (curSubSong->customTempo) {
|
||||
|
|
@ -2547,6 +2549,14 @@ int DivEngine::getRow() {
|
|||
return prevRow;
|
||||
}
|
||||
|
||||
int DivEngine::getElapsedBars() {
|
||||
return elapsedBars;
|
||||
}
|
||||
|
||||
int DivEngine::getElapsedBeats() {
|
||||
return elapsedBeats;
|
||||
}
|
||||
|
||||
size_t DivEngine::getCurrentSubSong() {
|
||||
return curSubSongIndex;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue