This commit is contained in:
Anthony Wang 2022-10-02 16:08:10 -04:00
parent 0cff9a981f
commit cc05a43c91
No known key found for this signature in database
GPG Key ID: 42A5B952E6DD8D38
1 changed files with 2 additions and 2 deletions

4
gen.py
View File

@ -3,7 +3,7 @@ with open('nevergonnagiveyouup.ino') as f:
note_to_freq = {}
tempo = 1
tempo = 150
with open('rickroll.sh', 'w') as f:
for line in lines:
@ -28,7 +28,7 @@ with open('rickroll.sh', 'w') as f:
d = int(word)
if d < 0:
d /= -1.5
l = (60000 * 4)/150/d
l = (60000 * 4)/tempo/d
if note:
f.write(f' -l {l}\n')
else: