From 64c454a88bcff078f48c714205c85213b4c2bc3a Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak <dos@dosowisko.net> Date: Wed, 15 Nov 2023 23:31:07 +0100 Subject: [PATCH] Tweak sustain note threshold --- song.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/song.py b/song.py index 3148ea4..5375848 100644 --- a/song.py +++ b/song.py @@ -243,7 +243,7 @@ class SongView(BaseView): ctx.line_width = 6 ctx.line_cap = ctx.NONE - if event.length > 120 or (event.missed and not self.demo_mode): + if event.length >= min(max(80, self.mid_period / 3), 200) or (event.missed and not self.demo_mode): d = 0.75 if not event.missed or event.played else 0.33 if during: d = 1.0 ctx.rgb(*utils.dim(utils.PETAL_COLORS[i], d)) -- GitLab