diff options
author | Devine Lu Linvega <[email protected]> | 2019-04-17 12:50:05 +0900 |
---|---|---|
committer | Devine Lu Linvega <[email protected]> | 2019-04-17 12:50:05 +0900 |
commit | a247a8d43090a5f9484e20eea6b37adce3601aa3 (patch) | |
tree | 8aff696754c6338ce2783896e621af1df27eec91 | |
parent | b05ffede30c35e9e49d126fa546553466c735219 (diff) | |
download | Orca-a247a8d43090a5f9484e20eea6b37adce3601aa3.tar.gz Orca-a247a8d43090a5f9484e20eea6b37adce3601aa3.zip |
removed bpm lock
-rw-r--r-- | desktop/sources/scripts/clock.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/desktop/sources/scripts/clock.js b/desktop/sources/scripts/clock.js index ae231ba..8516bf4 100644 --- a/desktop/sources/scripts/clock.js +++ b/desktop/sources/scripts/clock.js @@ -69,10 +69,8 @@ function Clock (terminal) { } if (this.intervals.length === 8) { const sum = this.intervals.reduce((sum, interval) => { return sum + interval }) - const bpm = parseInt((1000 / sum) * 60) - if (Math.abs(bpm - this.speed.target) > 1) { - this.set(null, bpm) - } + const bpm = Math.floor((1000 / sum) * 60) + this.set(null, bpm) } const now = performance.now() |