diff options
author | unthingable <[email protected]> | 2020-09-29 00:46:02 +0200 |
---|---|---|
committer | unthingable <[email protected]> | 2020-09-29 00:52:36 +0200 |
commit | 6cce494cd0a5cd1e69cf266deb6d51c3ddb3ddf3 (patch) | |
tree | 7d558143adee1d6833fc12314040edf7e3a40b82 | |
parent | 39f116833d83140da09fa61b1661917a29e92683 (diff) | |
download | Orca-6cce494cd0a5cd1e69cf266deb6d51c3ddb3ddf3.tar.gz Orca-6cce494cd0a5cd1e69cf266deb6d51c3ddb3ddf3.zip |
re-sync on MIDI clock START while playing
-rw-r--r-- | desktop/sources/scripts/clock.js | 4 |
1 files 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 |