Added stuff

This commit is contained in:
2022-01-31 21:25:58 +01:00
parent 1cbff41485
commit cd8f1ae426
3 changed files with 4 additions and 2 deletions

View File

@@ -8,13 +8,14 @@ import sys
def main():
infile = sys.argv[1]
max_ = int(sys.argv[2])
wavefile = wave.open(infile, "rb")
os.makedirs("big_chop_output", exist_ok=True)
samples_per_slice = wavefile.getframerate()
i = 0
while True:
while i < max_:
filename = os.path.join("big_chop_output", f"{i}.wav")
sound_data = wavefile.readframes(samples_per_slice)