1
0
Fork 0
forked from a/yue

Better magic numbers because yay

This commit is contained in:
Anthony Wang 2023-03-12 00:20:59 -05:00
parent 60267b5aa7
commit ab835f8e18
Signed by untrusted user: a
GPG key ID: 42A5B952E6DD8D38
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View file

@ -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])