aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2023-03-12 00:20:59 -0500
committerAnthony Wang2023-03-12 00:20:59 -0500
commitab835f8e189dcd3ccdf7ae014369d7ee4ab591fb (patch)
tree2a081e33c3ca30794216e4b771b3ec0583f900e0
parent60267b5aa7f7350895ebbdbeed6d06d48bdbad71 (diff)
Better magic numbers because yay
-rw-r--r--example.oggbin433074 -> 432160 bytes
-rw-r--r--music.py2
2 files changed, 1 insertions, 1 deletions
diff --git a/example.ogg b/example.ogg
index fcf9198..af1b409 100644
--- a/example.ogg
+++ b/example.ogg
Binary files 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])