fix: set a note to done on note off

This commit is contained in:
GitBluub
2023-06-01 00:55:48 +09:00
committed by Bluub
parent a319447ecd
commit 35049eede9

View File

@@ -123,7 +123,6 @@ class Scorometer:
if perf == "great"
else 50
)
to_play.done = True
self.incrementStreak()
logging.debug({"note_on": f"{perf} on {message.note}"})
self.send({"type": "timing", "id": message.id, "timing": perf})
@@ -159,6 +158,7 @@ class Scorometer:
if to_play:
perf = self.getDurationScore(key, to_play)
to_play.done = True
logging.debug({"note_off": f"{perf} on {message.note}"})
self.send({"type": "duration", "id": message.id, "duration": perf})
else: