aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2022-10-02 16:08:10 -0400
committerAnthony Wang2022-10-02 16:08:10 -0400
commitcc05a43c91dffff47a32bfbf950d6876dd459565 (patch)
treed8b4a13e8189866e446486a77eef9b3b855fccf0
parent0cff9a981ff20f9486217c34cda4417db922fb28 (diff)
Fix typo
-rw-r--r--gen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gen.py b/gen.py
index de82486..2dc48b5 100644
--- a/gen.py
+++ b/gen.py
@@ -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: