From 6cce494cd0a5cd1e69cf266deb6d51c3ddb3ddf3 Mon Sep 17 00:00:00 2001 From: unthingable Date: Tue, 29 Sep 2020 00:46:02 +0200 Subject: re-sync on MIDI clock START while playing --- desktop/sources/scripts/clock.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop/sources/scripts/clock.js b/desktop/sources/scripts/clock.js index 1cc5efa..3a3e1e1 100644 --- a/desktop/sources/scripts/clock.js +++ b/desktop/sources/scripts/clock.js @@ -58,11 +58,11 @@ function Clock (client) { this.play = function (msg = false, force = false) { console.log('Clock', 'Play', msg, force) - if (this.isPaused === false) { return } + if (this.isPaused === false && !force) { return } this.isPaused = false if (this.isPuppet === true) { console.warn('Clock', 'External Midi control') - if (!pulse.frame || force) { // no frames counted while paused or restard demanded (via MIDI clock PLAY) + if (!pulse.frame || force) { // no frames counted while paused or restard demanded (via MIDI clock START) this.setFrame(0) // make sure frame aligns with pulse count for an accurate beat pulse.frame = 0 pulse.count = 5 // by MIDI standard next pulse is the beat -- cgit v1.2.3