mirror of
https://git.exozy.me/a/Never-Gonna-Give-Beep-Up
synced 2024-11-22 07:57:30 +00:00
Fix typo
This commit is contained in:
parent
0cff9a981f
commit
cc05a43c91
4
gen.py
4
gen.py
@ -3,7 +3,7 @@ with open('nevergonnagiveyouup.ino') as f:
|
|||||||
|
|
||||||
note_to_freq = {}
|
note_to_freq = {}
|
||||||
|
|
||||||
tempo = 1
|
tempo = 150
|
||||||
|
|
||||||
with open('rickroll.sh', 'w') as f:
|
with open('rickroll.sh', 'w') as f:
|
||||||
for line in lines:
|
for line in lines:
|
||||||
@ -28,7 +28,7 @@ with open('rickroll.sh', 'w') as f:
|
|||||||
d = int(word)
|
d = int(word)
|
||||||
if d < 0:
|
if d < 0:
|
||||||
d /= -1.5
|
d /= -1.5
|
||||||
l = (60000 * 4)/150/d
|
l = (60000 * 4)/tempo/d
|
||||||
if note:
|
if note:
|
||||||
f.write(f' -l {l}\n')
|
f.write(f' -l {l}\n')
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user