From ab835f8e189dcd3ccdf7ae014369d7ee4ab591fb Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sun, 12 Mar 2023 00:20:59 -0500 Subject: Better magic numbers because yay --- example.ogg | Bin 433074 -> 432160 bytes music.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/example.ogg b/example.ogg index fcf9198..af1b409 100644 Binary files a/example.ogg and b/example.ogg differ diff --git a/music.py b/music.py index 4d9c7cc..dd66752 100644 --- a/music.py +++ b/music.py @@ -318,7 +318,7 @@ def at(t): # This is actually pretty efficient ngl # Because people usually don't have that many overlapping notes ret = 0 - for j in range(max(i - 30, 0), i): + for j in range(max(i - 32, 0), i): m = music[j] # if m[0] + m[1] > t: ret += m[4] * tone(freq(m[2], m[3]), t - m[0]) -- cgit v1.2.3-70-g09d2