jimregan commited on
Commit
a623628
1 Parent(s): a1cf90c
scenes/format_files.tcl DELETED
The diff for this file is too large to render. See raw diff
 
scenes/make_tclsh_file.py DELETED
@@ -1,28 +0,0 @@
1
- import os
2
- import re
3
-
4
- dirs = [dr for dr in sorted(os.listdir(".")) if dr[0] not in [".", "m"]]
5
-
6
- files_to_reformat = []
7
- for dr in dirs:
8
- for fname in os.listdir(dr):
9
- full_fname = dr + "/" + fname
10
- if fname[-3:] == "smp":
11
- #print(full_fname)
12
- wav_fname = re.sub("smp", "wav", full_fname)
13
- files_to_reformat.append((full_fname, wav_fname))
14
-
15
- tclsh_file = open("format_files.tcl", "w")
16
- tclsh_file.write("package require snack")
17
- tclsh_file.write("\n")
18
- for f1, f2 in files_to_reformat:
19
- tclsh_file.write("snack::sound snd")
20
- tclsh_file.write("\n")
21
- tclsh_file.write("snd read " + f1)
22
- tclsh_file.write("\n")
23
- tclsh_file.write("snd write " + f2)
24
- tclsh_file.write("\n")
25
- tclsh_file.close()
26
-
27
-
28
-