From 5ef624de7c2608afffde801eecd4455c2d4f488d Mon Sep 17 00:00:00 2001 From: Edward Shornock Date: Sat, 25 Feb 2023 16:33:19 +0200 Subject: [PATCH] Join bytes when cleaning wavs Fixes: #5 --- ooktools/commands/converstions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ooktools/commands/converstions.py b/ooktools/commands/converstions.py index 1fa4e0d..fbf0634 100644 --- a/ooktools/commands/converstions.py +++ b/ooktools/commands/converstions.py @@ -72,6 +72,6 @@ def clean_pwm_wave(source, destination): frames.append(struct.pack('h', value)) click.secho('Writing output to file: {}'.format(destination)) - output_wave.writeframes(''.join(frames)) + output_wave.writeframes(b''.join(frames)) return