bytebeat_compiler.py: auto-return: enclose bytebeat in parentheses
This commit is contained in:
parent
cc2974afe1
commit
8e698c9f3b
@ -149,7 +149,9 @@ if __name__ == "__main__":
|
|||||||
makedirs(PATHS["build_dir"], exist_ok=True)
|
makedirs(PATHS["build_dir"], exist_ok=True)
|
||||||
|
|
||||||
if not args.no_return: # Insert return statement
|
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
|
original_sample_rate = args.sample_rate
|
||||||
final_sample_rate_code = ""
|
final_sample_rate_code = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user