GUI: improve note input timing

during playback, it rounds to nearest cell now
this greatly enhances the recording experience

to-do: test on higher latencies and see if we have to compensate somehow...
This commit is contained in:
tildearrow 2025-03-11 04:03:05 -05:00
parent 6deee95d87
commit ad8d1b5060
3 changed files with 24 additions and 1 deletions

View file

@ -2393,6 +2393,15 @@ void DivEngine::getPlayPos(int& order, int& row) {
playPosLock.unlock();
}
void DivEngine::getPlayPosTick(int& order, int& row, int& tick, int& speed) {
playPosLock.lock();
order=prevOrder;
row=prevRow;
tick=ticks;
speed=nextSpeed;
playPosLock.unlock();
}
int DivEngine::getElapsedBars() {
return elapsedBars;
}