Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > HeartMuLa_ComfyUI > HeartMuLa Music Generator

ComfyUI Node: HeartMuLa Music Generator

Class Name

HeartMuLa_Generate

Category
HeartMuLa
Author
benjiyaya (Account age: 878days)
Extension
HeartMuLa_ComfyUI
Latest Updated
2026-07-18
Github Stars
0.43K

How to Install HeartMuLa_ComfyUI

Install this extension via the ComfyUI Manager by searching for HeartMuLa_ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter HeartMuLa_ComfyUI in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

HeartMuLa Music Generator Description

AI-driven node transforms lyrics and tags into music, enabling creative AI music production.

HeartMuLa Music Generator:

The HeartMuLa_Generate node is designed to create music by leveraging AI technology, specifically tailored for generating audio content based on provided lyrics and tags. This node is part of the HeartMuLa system, which integrates advanced machine learning models to produce high-quality audio outputs. The primary goal of this node is to transform textual inputs into musical compositions, offering a unique tool for AI artists to explore creative possibilities in music generation. By utilizing parameters such as temperature and top-k sampling, the node allows for fine-tuning the creativity and diversity of the generated music, making it a versatile tool for artists looking to experiment with AI-driven music production.

HeartMuLa Music Generator Input Parameters:

lyrics

The lyrics parameter is a string input that provides the textual content or lyrics that the music generation process will be based on. This parameter is crucial as it serves as the primary source of inspiration for the generated music, influencing the thematic and emotional tone of the output.

tags

The tags parameter is a list of keywords or phrases that help guide the music generation process. These tags can include genres, moods, or specific musical elements that you want to incorporate into the generated music. By providing tags, you can influence the style and characteristics of the output, ensuring it aligns with your creative vision.

version

The version parameter specifies the version of the HeartMuLa model to be used for music generation. Different versions may offer variations in model architecture or training data, impacting the style and quality of the generated music. Selecting the appropriate version can help achieve the desired output characteristics.

max_audio_length_ms

The max_audio_length_ms parameter defines the maximum length of the generated audio in milliseconds. This parameter allows you to control the duration of the output, ensuring it fits within specific time constraints. The default value is typically set to 120,000 milliseconds (2 minutes), but it can be adjusted based on your requirements.

topk

The topk parameter is an integer that determines the number of top probable tokens to consider during the sampling process. A higher topk value can increase the diversity of the generated music by allowing more variation in token selection, while a lower value can lead to more deterministic outputs. The default value is usually set to 50.

temperature

The temperature parameter is a float that controls the randomness of the sampling process. A higher temperature value results in more random and creative outputs, while a lower value produces more conservative and predictable results. The default temperature is typically set to 1.0, but it can be adjusted to suit your creative needs.

cfg_scale

The cfg_scale parameter is a float that influences the balance between adhering to the input conditions (lyrics and tags) and exploring creative variations. A cfg_scale value of 1.0 means strict adherence to the input, while higher values allow for more creative freedom. The default value is often set to 1.5.

HeartMuLa Music Generator Output Parameters:

audio_output

The audio_output parameter is a dictionary containing the waveform and sample rate of the generated audio. The waveform is a 3D tensor representing the audio signal, while the sample rate indicates the number of samples per second. This output is essential for further processing or playback of the generated music.

out_path

The out_path parameter is a string that provides the file path to the saved audio file. This path allows you to access and utilize the generated music file, which is typically saved in MP3 format. The file is stored in a designated output directory, ensuring easy retrieval and management of generated content.

HeartMuLa Music Generator Usage Tips:

  • Experiment with different temperature and topk values to find the right balance between creativity and coherence in the generated music.
  • Use specific and relevant tags to guide the music generation process towards your desired style or genre.
  • Adjust the max_audio_length_ms parameter to fit the generated music within your project's time constraints.

HeartMuLa Music Generator Common Errors and Solutions:

FileNotFoundError: Expected to find gen_config.json for HeartMuLa

  • Explanation: This error occurs when the configuration file gen_config.json is missing from the expected directory.
  • Solution: Ensure that the gen_config.json file is present in the specified pretrained_path. If it's missing, check your installation or download the necessary files from the official source.

RuntimeError: CUDA error: device-side assert triggered

  • Explanation: This error may occur if there is an issue with the input data or model configuration that causes a failure during execution on a CUDA device.
  • Solution: Verify that all input parameters are correctly specified and compatible with the model version you are using. Additionally, ensure that your CUDA environment is properly configured and up to date.

HeartMuLa Music Generator Related Nodes

Go back to the extension to check out more related nodes.
HeartMuLa_ComfyUI
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

HeartMuLa Music Generator