2025-03-21 10:58:30 +08:00
2025-03-10 07:07:04 +08:00
2025-03-21 10:58:30 +08:00
2025-03-10 07:07:04 +08:00
2025-03-09 20:09:39 +08:00
2025-03-10 07:07:04 +08:00
2025-03-10 07:07:04 +08:00
2025-03-09 20:09:39 +08:00
2025-03-21 10:58:30 +08:00
2025-03-21 10:58:30 +08:00
2025-03-21 10:58:30 +08:00
2025-03-21 10:58:30 +08:00
2025-03-21 10:58:30 +08:00
2025-03-10 07:07:04 +08:00

中文 | English

Symbolic Music Generation, NotaGen node for ComfyUI.

https://github.com/user-attachments/assets/0671657f-e66b-4000-a0aa-48520f15b782

image

📣 Updates

[2025-03-21] ⚒️: Added more tunable parameters for more creative freedom. Optional model unloading.

[2025-03-15]⚒️: Supports Linux Ubuntu/Debian series, as well as servers, others untested, as well as servers.

For local Linux computers, install musescore etc.:

sudo apt update
sudo apt install musescore
sudo apt install libxcb-xinerama0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xkb1 libxkbcommon-x11-0

Then input the mscore path into the node, such as /bin/mscore. And the absolute path of python in ComfyUI, such as /root/comfy/ComfyUI/bin/python.

For servers, install the virtual display Xvfb, other operations are the same as above:

sudo apt update
sudo apt install xvfb

[2025-03-13]⚒️:

  • Automatically convert generated .abc to .xml, .mp3, and .png formats. Now you can listen to the generated music and see the sheet music too! 🎵🎵🎵

  • Supports custom prompts. The format must be maintained as <period>|<composer>|<instrumentation>, with the order of period, composer, and instrumentation strictly enforced and separated by |.

  • To avoid the hassle of configuring environment variables, please install MuseScore4 and enter the absolute path of MuseScore4.exe into the node, such as D:\APP\MuseScorePortable\App\MuseScore\bin\MuseScore4.exe, as well as the absolute path of python.exe in ComfyUI, such as D:\AIGC\APP\ComfyUI_v1\python_embeded\python.exe.

Installation

cd ComfyUI/custom_nodes
git clone https://github.com/billwuhao/ComfyUI_NotaGen.git
cd ComfyUI_NotaGen
pip install -r requirements.txt

# python_embeded
./python_embeded/python.exe -m pip install -r requirements.txt

Model Download

Download the model to ComfyUI\models\TTS\NotaGen and rename it as required:

NotaGen-X → notagenx.pth
NotaGen-small → notagen_small.pth
NotaGen-medium → notagen_medium.pth
NotaGen-large → notagen_large.pth

https://github.com/user-attachments/assets/229139bd-1065-4539-bcfa-b0c245259f6d

Acknowledgments

NotaGen

S
Description
No description provided
Readme MIT
583 KiB
Languages
Python 100%