diff --git a/nodes.py b/nodes.py index 1be247c..b6d9a47 100644 --- a/nodes.py +++ b/nodes.py @@ -65,14 +65,14 @@ class AceStepMusicGen: }), "duration": ("FLOAT", { "default": 30.0, - "min": 1.0, - "max": 300.0, + "min": 10.0, + "max": 240.0, "step": 1.0, "tooltip": "Audio duration in seconds", }), "bpm": ("INT", { - "default": 0, - "min": 0, + "default": 30, + "min": 30, "max": 300, "step": 1, "tooltip": "Beats per minute (0 = auto)", @@ -81,9 +81,9 @@ class AceStepMusicGen: "default": "", "tooltip": "Musical key and scale (e.g. 'C major', 'A minor')", }), - "time_signature": ("STRING", { - "default": "", - "tooltip": "Time signature (e.g. '4/4', '3/4', '6/8')", + "time_signature": (["2", "3", "4", "6"], { + "default": "4", + "tooltip": "Time signature", }), "vocal_language": (["en", "zh", "ja", "ko", "es", "fr", "de", "unknown"], { "default": "en", @@ -160,7 +160,7 @@ class AceStepMusicGen: duration=30.0, bpm=0, key_scale="", - time_signature="", + time_signature="4", vocal_language="en", sample_mode=False, use_format=False, @@ -222,7 +222,7 @@ class AceStepMusicGen: if bpm > 0: body["audio_config"]["bpm"] = bpm body["audio_config"]["key_scale"] = key_scale.strip() or None - body["audio_config"]["time_signature"] = time_signature.strip() or None + body["audio_config"]["time_signature"] = time_signature if lyrics: body["lyrics"] = lyrics diff --git a/pyproject.toml b/pyproject.toml index e2ee43d..aca79d5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] -name = "ACE-Step-ComfyUI" -description = "Official ComfyUI node for ACE-Step AI music generation via ACE-Step API" -version = "0.0.2" +name = "ACE-Step-v1.5-online-free" +description = "Official ComfyUI node for ACE-Step v1.5 AI music generation via ACEMusic API" +version = "0.0.3" license = {file = "LICENSE"} dependencies = [ "torch", @@ -21,7 +21,7 @@ Documentation = "https://github.com/ace-step/ACE-Step-ComfyUI/wiki" [tool.comfy] PublisherId = "ace-step" -DisplayName = "ACE-Step-ComfyUI" +DisplayName = "ACE-Step-v1.5-online-free" Icon = "" includes = ["__init__.py", "nodes.py", "requirements.txt", "js/"] # "requires-comfyui" = ">=1.0.0" # ComfyUI version compatibility