Nodes/RyanOnTheInside/Audio Gain βš‘πŸ…‘πŸ…žπŸ…£πŸ…˜
ComfyUI Node

Audio Gain βš‘πŸ…‘πŸ…žπŸ…£πŸ…˜

Turn a generated track up or down in dB

By ryanontheinsideΒ·Created 2 years agoΒ·Updated 5 months agoΒ· 852
Audio Gain βš‘πŸ…‘πŸ…žπŸ…£πŸ…˜
  • audio
  • AUDIO
β—„gain_db0.0β–Ί

The simplest node in the whole pack: it adjusts volume, in decibels. No compression, no limiting, no EQ - just a straight gain change. If a generated clip came out too quiet or too hot relative to something you're going to concatenate or merge it with, this is the node.

One of ryanontheinside's small audio-utility nodes, and a good example of why the pack bothers shipping plain plumbing like this at all: once you're generating music with ACE-Step and stitching pieces together with Audio_Concatenate or AudioChannelMerge, you need a way to level-match clips inside the graph rather than bouncing out to a DAW every time you want to nudge one track two decibels quieter.

The inputs and outputs that matter

  • audio - the clip to adjust.
  • gain_db - default 0, range -20 to +20 dB. Negative turns it down, positive turns it up. A few dB is already a noticeable change; +20 is a lot and will very likely clip.

Output is the adjusted AUDIO.

How to install it

Via ComfyUI Manager, search RyanOnTheInside. Manually:

cd ComfyUI/custom_nodes
git clone https://github.com/ryanontheinside/ComfyUI_RyanOnTheInside

then restart. No dependencies to worry about for this one.

Common issues & troubleshooting

Boosted clip sounds crunchy or distorted. There's no limiter here, just a straight decibel boost, so pushing gain_db too far positive will clip. If a boosted clip sounds harsh, back the value off rather than assuming something's broken.

Volumes still uneven after gain. This is a flat gain across the whole clip, not dynamic range compression - if the source has big internal volume swings (quiet verse, loud chorus), a single gain value won't even those out, it'll just shift the whole thing up or down together.

Where this actually earns its place. Most useful right before concatenating or merging clips from different sources - an ACE-Step generation and a loaded file, say - that came out at noticeably different levels. Match them here first so the seam doesn't have an obvious volume jump on top of whatever other differences exist.

Don't expect it to fix a bad recording. Gain is a multiplier on the whole signal, so it can't rescue a clip where the useful part is quiet but there's also noise or clipping baked in already - it'll just amplify the problem right along with everything else. If the source material itself is broken, no amount of gain_db tuning here gets you out of that.

CategoryRyanOnTheInside/Audio/Effects

Inputs (2)

NameTypeDefaultDescription
audioAUDIOInput audio to be processed
gain_dbFLOAT0.0-20–20Gain factor in decibels (-20.0 to 20.0 dB)

Outputs (1)

NameTypeDescription
AUDIOAUDIOβ€”