Better magic numbers because yay
This commit is contained in:
parent
60267b5aa7
commit
ab835f8e18
BIN
example.ogg
BIN
example.ogg
Binary file not shown.
2
music.py
2
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])
|
||||
|
|
Loading…
Reference in a new issue