about summary refs log tree commit diff
path: root/makePitches.py
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2024-05-25 16:06:34 -0400
committerZach DeCook <zachdecook@librem.one>2024-05-25 16:17:34 -0400
commitc7821c7cb9026a96367e5301e5b848b29f73eb44 (patch)
treee8ce5491a6982462c9de181cc4a620a699af1e82 /makePitches.py
parent31237cac0f7867571658cfc5e2a4aedd5927a025 (diff)
downloadHexBoard-c7821c7cb9026a96367e5301e5b848b29f73eb44.tar.gz
Build: cleanup
Diffstat (limited to 'makePitches.py')
-rwxr-xr-xmakePitches.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/makePitches.py b/makePitches.py
deleted file mode 100755
index 7829e52..0000000
--- a/makePitches.py
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/env python3
-import sys
-
-pitches=128
-
-# calculate integer values in hertz for equal-temperament scales
-def makePitches(root, tones, offset):
-    a = []
-    for index in range(offset, pitches+offset):
-        a.append(round(root*(2**(index/tones))))
-    return a
-
-if __name__ == '__main__':
-    offset = 0
-    if len(sys.argv) > 3:
-        offset = int(sys.argv[3])
-    pitches = makePitches(float(sys.argv[1]), int(sys.argv[2]), offset)
-    print(pitches)