用 Ai 创作歌曲并提供曲谱同步演奏 cover image

用 Ai 创作歌曲并提供曲谱同步演奏

使用工具:comfy UI

用到节点:

  • Notagen
  • musescore
  • diffrhythm

实际体会:

  • Notagen可能会有曲谱混乱的情况,可以直接播放音乐

[2025-03-13]⚒️:

  • 生成 .abc 自动转 .xml.mp3.png 格式, 可以听生成的音乐, 同时可以看曲谱啦🎵🎵🎵
  • 支持自定义 prompt, 格式必须保持 <period>|<composer>|<instrumentation> 的格式, periodcomposerinstrumentation 的顺序不能乱, 而且以 | 分割.
  • 为了避免配置环境变量的麻烦, 请安装 MuseScore4, 并将 MuseScore4.exe 的绝对路径输入节点中, 如 D:\APP\MuseScorePortable\App\MuseScore\bin\MuseScore4.exe, 以及 comfyui 中 python.exe 的绝对路径, 如 D:\AIGC\APP\ComfyUI_v1\python_embeded\python.exe.

将模型下载放到 ComfyUI\models\TTS\NotaGen 下, 并按要求重命名:

NotaGen-X → notagenx.pth

NotaGen-small → notagen_small.pth

NotaGen-medium → notagen_medium.pth

NotaGen-large → notagen_large.pth