Skip to content

Commit

Permalink
Update _beat per tick when song playing
Browse files Browse the repository at this point in the history
  • Loading branch information
tillvit committed Dec 6, 2024
1 parent 910354a commit 99664e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/chart/ChartManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,8 @@ export class ChartManager {

const notedata = this.loadedChart.getNotedata()
if (this.chartAudio.isPlaying()) {
this._beat = this.loadedChart?.getBeatFromSeconds(this.time) ?? 0

// Play note flash
while (
this.noteFlashIndex < notedata.length &&
Expand Down

0 comments on commit 99664e4

Please sign in to comment.