Skip to content

Commit

Permalink
fix speed calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
hall committed Mar 31, 2023
1 parent 93c5179 commit 1883222
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class HomePageComponent implements OnInit {
4 *
60000) /
this.notes.tempoInBPM /
this.settings.speed;
(this.settings.speed / 100);
setTimeout(() => {
if (!this.osmdEndReached(0)) this.osmdService.textFeedback('🐢', 0, 40);
this.osmd.cursors[1].hide();
Expand All @@ -122,7 +122,7 @@ export class HomePageComponent implements OnInit {
4 *
60000) /
this.notes.tempoInBPM /
this.settings.speed;
(this.settings.speed / 100);
setTimeout(() => {
this.osmdCursorTempoMoveNext();
}, timeout);
Expand Down Expand Up @@ -162,7 +162,7 @@ export class HomePageComponent implements OnInit {
4 *
60000) /
this.notes.tempoInBPM /
this.settings.speed;
(this.settings.speed / 100);
this.osmd.cursors[0].hide();
setTimeout(() => {
if (this.settings.repeat > 0) {
Expand Down Expand Up @@ -295,7 +295,7 @@ export class HomePageComponent implements OnInit {
4 *
60000) /
this.notes.tempoInBPM /
this.settings.speed;
(this.settings.speed / 100);
setTimeout(() => {
this.osmdCursorTempoMoveNext();
}, timeout);
Expand Down

0 comments on commit 1883222

Please sign in to comment.