diff options
Diffstat (limited to 'music.py')
-rw-r--r-- | music.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -318,10 +318,10 @@ 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 - 20, 0), i): + for j in range(max(i - 30, 0), i): m = music[j] - if m[0] + m[1] >= t: - ret += m[4] * tone(freq(m[2], m[3]), t - m[0]) + # if m[0] + m[1] > t: + ret += m[4] * tone(freq(m[2], m[3]), t - m[0]) return int(2**12 * ret) |