Files
Staroom aebdeb73aa 新增歌词格式化与风格导出节点
新增了 Easy SongGeneration - 歌词与风格格式化 节点,输出两个纯文本接口:歌词 和 风格,可以直接接到现有生成节点的 歌词 / 描述 输入。
主要改动:
新节点注册在 nodes.py (line 237)
纯文本格式化逻辑在 formatter.py (line 71)
前端按钮扩展在 easy_songgeneration_formatter.js (line 5)
已暴露 WEB_DIRECTORY,ComfyUI 能加载前端按钮
已更新中文节点名、README 和目录说明
按钮包括歌词结构标签 [intro-short]、[intro-medium]、[inst-short]、[inst-medium]、[outro-short]、[outro-medium]、[verse]、[chorus]、[bridge],以及人声、曲风、情绪、乐器和几个常用风格预设。点击会在当前光标处插入。
2026-05-24 18:54:20 +08:00

868 B

Project Structure

This repository follows the usual ComfyUI custom node layout:

  • __init__.py exports NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS, and the ComfyUI WEB_DIRECTORY.
  • nodes.py is the thin ComfyUI entry point.
  • src/easy_songgeneration/ contains implementation code split by concern.
  • web/ contains frontend extensions, including the lyrics/style formatter shortcut buttons.
  • locales/<locale>/nodes.json contains node strings, tooltips, display names, and return names.
  • requirements.txt contains installable Python dependencies for ComfyUI Manager.
  • songgeneration/ contains the trimmed upstream SongGeneration runtime.

Model checkpoints and quantization caches are intentionally not stored in this custom node directory. They belong under:

ComfyUI/models/SongGeneration/
ComfyUI/models/SongGeneration-cache/