diff options
author | Devine Lu Linvega <[email protected]> | 2019-04-17 16:55:52 +0900 |
---|---|---|
committer | Devine Lu Linvega <[email protected]> | 2019-04-17 16:55:52 +0900 |
commit | 6b25b66adc1fb75fd523d9e644760d02c12b95c9 (patch) | |
tree | eb46fba3432b0ac1f7bfa25cbd5a52fe71137124 /desktop/sources/scripts/clock.js | |
parent | 72b74ac18debb62d65f551ba16f9c9feb4a864be (diff) | |
download | Orca-6b25b66adc1fb75fd523d9e644760d02c12b95c9.tar.gz Orca-6b25b66adc1fb75fd523d9e644760d02c12b95c9.zip |
Added Chromatic scale example
Diffstat (limited to 'desktop/sources/scripts/clock.js')
-rw-r--r-- | desktop/sources/scripts/clock.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/sources/scripts/clock.js b/desktop/sources/scripts/clock.js index ae231ba..e746c89 100644 --- a/desktop/sources/scripts/clock.js +++ b/desktop/sources/scripts/clock.js @@ -106,7 +106,7 @@ function Clock (terminal) { this.toString = function () { const diff = this.speed.target - this.speed.value - const _offset = diff > 0 ? `+${diff}` : diff < 0 ? diff : '' + const _offset = Math.abs(diff) > 5 ? (diff > 0 ? `+${diff}` : diff) : '' const _beat = diff === 0 && terminal.orca.f % 4 === 0 ? '*' : '' return `${this.speed.value}${_offset}${_beat}` } |