Skip to content

Commit 0cbe7b0

Browse files
committed
fix bug
1 parent 8223a61 commit 0cbe7b0

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

Diff for: NotaGenNode.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -319,12 +319,10 @@ def inference_patch(self, model, period, composer, instrumentation,
319319
image1,
320320
f"Saved to {INTERLEAVED_OUTPUT_FOLDER} and {ORIGINAL_OUTPUT_FOLDER}",
321321
)
322-
323-
return (
324-
self.get_empty_audio(),
325-
self.get_empty_image(),
326-
f"Saved to {INTERLEAVED_OUTPUT_FOLDER} and {ORIGINAL_OUTPUT_FOLDER}",
327-
)
322+
323+
else:
324+
print(f".abc and .xml was saved to {INTERLEAVED_OUTPUT_FOLDER} and {ORIGINAL_OUTPUT_FOLDER}")
325+
raise Exception("Conversion of .mp3 and .png failed, try again or check if MuseScore4 installation was successful.")
328326

329327

330328
def get_empty_audio(self):

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "notagen-mw"
33
description = "Symbolic Music Generation, NotaGen node for ComfyUI."
4-
version = "2.0.0"
4+
version = "2.0.1"
55
license = {file = "LICENSE"}
66

77
[project.urls]

0 commit comments

Comments
 (0)