Fix host time sometimes skipping beats

Closes #104

Turns out that the tick can be just at the end of the audio block
(ie, frame 511 of 512) and we will just barely miss it.
Because the tick is reset from host info on every audio block
(to always keep things in sync), we would miss the event because
of just 1 sample.
So give a little hand to make sure new beat is always triggered.

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-02-08 04:07:12 +00:00
parent 5e2473b6e9
commit ac297f95f4
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
3 changed files with 28 additions and 12 deletions

View file

@ -359,7 +359,7 @@ void Window::step() {
bndSetFont(uiFont->handle);
// Set window title
std::string windowTitle = APP_NAME + " " + APP_EDITION_NAME + " " + APP_VERSION;
std::string windowTitle = "Cardinal";
if (APP->patch->path != "") {
windowTitle += " - ";
if (!APP->history->isSaved())