diff options
author | unthingable <[email protected]> | 2020-09-29 01:32:28 +0200 |
---|---|---|
committer | unthingable <[email protected]> | 2020-09-29 01:32:28 +0200 |
commit | 227cd8d7758697761d06aac962f3d7047ab50e07 (patch) | |
tree | 78f00844a87b5682dc69113a59be03d43d741d26 /desktop/sources/scripts | |
parent | 6cce494cd0a5cd1e69cf266deb6d51c3ddb3ddf3 (diff) | |
download | Orca-227cd8d7758697761d06aac962f3d7047ab50e07.tar.gz Orca-227cd8d7758697761d06aac962f3d7047ab50e07.zip |
minor cleanup
Diffstat (limited to 'desktop/sources/scripts')
-rw-r--r-- | desktop/sources/scripts/clock.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop/sources/scripts/clock.js b/desktop/sources/scripts/clock.js index 3a3e1e1..d89a516 100644 --- a/desktop/sources/scripts/clock.js +++ b/desktop/sources/scripts/clock.js @@ -56,13 +56,13 @@ function Clock (client) { client.update() } - this.play = function (msg = false, force = false) { - console.log('Clock', 'Play', msg, force) - if (this.isPaused === false && !force) { return } + this.play = function (msg = false, midiStart = false) { + console.log('Clock', 'Play', msg, midiStart) + if (this.isPaused === false && !midiStart) { 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 START) + if (!pulse.frame || midiStart) { // no frames counted while paused (starting from no clock, unlikely) or triggered by 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 |