Skip to content

Commit a3d55bd

Browse files
Update main.py
1 parent 96b14b6 commit a3d55bd

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

main.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,16 +119,13 @@ def audio_to_makecode_arcade(data, sample_rate, period) -> str:
119119
code = (
120120
"namespace music {\n"
121121
" //% shim=music::queuePlayInstructions\n"
122-
" export function queuePlayInstructions(timeDelta: number, buf: Buffer) { }\n\n"
123-
" export function playInstructions(timeDelta: number, buf: Buffer) {\n"
124-
" queuePlayInstructions(timeDelta, buf);\n"
125-
" }\n"
122+
" export function queuePlayInstructions(timeDelta: number, buf: Buffer) { }\n"
126123
"}\n\n"
127124
"const soundInstructions = [\n"
128125
" " + ",\n ".join(sound_instruction_buffers) + "\n"
129126
"];\n\n"
130127
"for (const instructions of soundInstructions) {\n"
131-
" music.playInstructions(100, instructions);\n"
128+
" music.queuePlayInstructions(100, instructions);\n"
132129
"}\n"
133130
)
134131
return code

0 commit comments

Comments
 (0)