Skip to content

Commit

Permalink
pass midi service to the press and release note functions
Browse files Browse the repository at this point in the history
  • Loading branch information
hall committed Mar 31, 2023
1 parent 1883222 commit 6e04b9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export class HomePageComponent implements OnInit {
// Skip when ties only occurred
if (this.notes.autoplaySkip > 0) {
this.notes.autoplaySkip--;
} else this.notes.autoplayRequired(this.midi.pressNote.bind(this), this.midi.releaseNote.bind(this));
} else this.notes.autoplayRequired(this.midi.pressNote.bind(this.midi), this.midi.releaseNote.bind(this.midi));
}
}

Expand Down Expand Up @@ -286,7 +286,7 @@ export class HomePageComponent implements OnInit {
// Skip when ties only occured
if (this.notes.autoplaySkip > 0) {
this.notes.autoplaySkip--;
} else this.notes.autoplayRequired(this.midi.pressNote.bind(this), this.midi.releaseNote.bind(this));
} else this.notes.autoplayRequired(this.midi.pressNote.bind(this.midi), this.midi.releaseNote.bind(this.midi));
}
const it2 = this.osmd.cursors[0].iterator.clone();
it2.moveToNext();
Expand Down

0 comments on commit 6e04b9c

Please sign in to comment.