diff --git a/bytebeat_compiler.py b/bytebeat_compiler.py index 7cd769f..0431de7 100644 --- a/bytebeat_compiler.py +++ b/bytebeat_compiler.py @@ -149,7 +149,9 @@ if __name__ == "__main__": makedirs(PATHS["build_dir"], exist_ok=True) if not args.no_return: # Insert return statement - bytebeat_contents = f"return {bytebeat_contents}" + # XXX: The bytebeat code is enclosed in parentheses to allow for the + # use of commas as a comma operator, enabling more formulas to function. + bytebeat_contents = f"return ({bytebeat_contents})" original_sample_rate = args.sample_rate final_sample_rate_code = ""