ComfyUI > Nodes > ComfyUI_MusicTools > Music - Gain

ComfyUI Node: Music - Gain

Class Name

Music_Gain

Category
music
Author
jeankassio (Account age: 3193days)
Extension
ComfyUI_MusicTools
Latest Updated
2025-12-09
Github Stars
0.11K

How to Install ComfyUI_MusicTools

Install this extension via the ComfyUI Manager by searching for ComfyUI_MusicTools
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_MusicTools 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

Music - Gain Description

Adjusts audio volume by applying gain in dB for precise control in mixing and mastering tasks.

Music - Gain:

The Music_Gain node is designed to adjust the volume level of audio data by applying a gain, measured in decibels (dB). This node is particularly useful for enhancing or reducing the loudness of audio tracks, allowing you to fine-tune the audio output to meet specific requirements or preferences. By manipulating the gain, you can either amplify or attenuate the audio signal, making it a versatile tool for audio processing tasks. The primary goal of this node is to provide a straightforward method for volume adjustment, ensuring that your audio content achieves the desired loudness without compromising quality. This node is essential for tasks where precise control over audio levels is required, such as mixing, mastering, or preparing audio for different playback environments.

Music - Gain Input Parameters:

audio

The audio parameter represents the audio data that you wish to process. It is expected to be in a format compatible with ComfyUI, which typically involves a structured data type that includes both the audio signal and its sample rate. This parameter serves as the input audio that will undergo volume adjustment based on the specified gain value.

gain_db

The gain_db parameter specifies the amount of gain to be applied to the audio, measured in decibels (dB). This parameter allows you to control the volume level of the audio, with a range from -24.0 dB to 24.0 dB. A positive value will increase the audio's volume, while a negative value will decrease it. The default value is set to 0.0 dB, meaning no change in volume. The parameter is adjustable in 0.5 dB increments, providing precise control over the audio's loudness.

Music - Gain Output Parameters:

AUDIO

The AUDIO output parameter represents the processed audio data after the gain has been applied. This output is a tuple containing the audio tensor with the adjusted volume level. The importance of this output lies in its ability to provide you with audio that meets your specified loudness requirements, making it suitable for further processing or final output. The adjusted audio maintains the original quality while reflecting the changes in volume as dictated by the gain_db parameter.

Music - Gain Usage Tips:

  • To achieve subtle volume adjustments, use small increments in the gain_db parameter, such as 0.5 dB, to fine-tune the audio without causing noticeable distortion or clipping.
  • When preparing audio for different playback environments, consider the target loudness and adjust the gain_db accordingly to ensure consistent audio levels across various devices.

Music - Gain Common Errors and Solutions:

Error in Music - Gain: <error_message>

  • Explanation: This error message indicates that an exception occurred during the execution of the Music_Gain node, possibly due to incompatible audio input or an unexpected issue in processing.
  • Solution: Ensure that the audio input is in the correct format expected by ComfyUI. Check for any anomalies in the audio data or parameters and try re-running the node. If the issue persists, review the traceback for more detailed information on the error's origin.

Music - Gain Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_MusicTools
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.