front practice listener and scorometer sending timestamp

This commit is contained in:
GitBluub
2024-01-15 22:52:32 +01:00
committed by Clément Le Bihan
parent b80167001f
commit 23a1ff8d19
3 changed files with 18 additions and 3 deletions

View File

@@ -207,7 +207,7 @@ class Scorometer:
#self.keys_down.append((message.note, message.time))
self.keys_down_practice.add(message.note)
if self.to_play == self.keys_down_practice:
self.send({"type": "step", "message": "Good"})
self.send({"type": "step", "timestamp": self.practice_partition[0][0].start + 1})
if len(self.practice_partition) == 0:
self.endGamePractice()
self.to_play = set([x.key for x in self.practice_partition.pop(0)])