minor bug fixes

This commit is contained in:
Anthony Samms
2025-10-13 21:16:58 -04:00
parent a29572d8ab
commit 0e668f991e
5 changed files with 23 additions and 15 deletions

View File

@@ -816,12 +816,16 @@ class Player:
# Get the next note from any of the three lists for BPM and gogo time updates
next_note = None
candidates = []
if self.don_notes:
next_note = self.don_notes[0]
elif self.kat_notes:
next_note = self.kat_notes[0]
elif self.other_notes:
next_note = self.other_notes[0]
candidates.append(self.don_notes[0])
if self.kat_notes:
candidates.append(self.kat_notes[0])
if self.other_notes:
candidates.append(self.other_notes[0])
if candidates:
next_note = min(candidates, key=lambda note: note.load_ms)
if next_note:
self.bpm = next_note.bpm