Nodes/ComfyUI-sonar/SonarCustomNoiseAdv
ComfyUI Node

SonarCustomNoiseAdv

SonarCustomNoise, but with a YAML escape hatch

By blepping·Created 3 years ago·Updated 9 days ago· 49
SonarCustomNoiseAdv
  • sonar_custom_noise_opt
  • SONAR_CUSTOM_NOISE
factor1.000
rescale0.000
noise_typegaussian
yaml_parameters

SonarCustomNoiseAdv is SonarCustomNoise with one extra input: a multiline yaml_parameters string that lets you pass per-type options the normal widget surface doesn't expose. Same 38 noise types, same factor and rescale, same chaining via sonar_custom_noise_opt. If you never need to go past the standard widgets, use the plain version - this one exists for the people who've read the pack's docs and want the unexposed knobs.

When you'd use this over the basic node

The basic SonarCustomNoise gives you flavor and strength. The advanced version gives you the ability to tune how a specific noise type does its thing - think of it as passing keyword arguments to the generator that the node UI just never surfaces. The pack's own docs (docs/base_noise_types.md, docs/advanced_power_noise.md, docs/advanced_noise_nodes.md in the repo) document the type-specific parameters, and the YAML block is how you actually feed them in.

A practical example from the README's general philosophy: the Sonar samplers accept a sonar_params YAML block for things like momentum_mode (classic, new, denoised), momentum_start_step/momentum_end_step, and rand_init_noise_multiplier. The same mechanism powers this node's noise parameters. If a noise type you like has a documented parameter you can't find in the widgets, this is where it lives.

The honest warning

The tooltip says it plainly: there is generally little to no error checking when you specify parameters via YAML. A typo won't necessarily throw - it'll silently do nothing, or worse, produce noise that's subtly wrong, which is the most annoying kind of wrong. Save a workflow you trust before you experiment, and change one thing at a time.

Inputs and output

  • noise_type - same 38-flavor list, gaussian default.
  • factor - scaling for this noise item. Negative works.
  • rescale - when non-zero, this item and everything chained to it get factors scaled to sum to this value. 0 disables.
  • yaml_parameters - the multiline YAML block. Type-specific parameters, plus the standard pack parameters. No error checking, see above.
  • sonar_custom_noise_opt - optional, chain another noise item in.

Output is SONAR_CUSTOM_NOISE, which wires to a Sonar sampler's custom noise input, NoisyLatentLike, SamplerConfigOverride, or onward into other noise nodes like SonarCompositeNoise or SonarPowerFilterNoise.

Install

Same as the rest of the pack: ComfyUI Manager → search "ComfyUI-sonar" → Install → restart, or:

cd ComfyUI/custom_nodes
git clone https://github.com/blepping/ComfyUI-sonar

Restart ComfyUI after. No model downloads, no extra dependencies. Remember the README's standing warning: node inputs and defaults still shift between versions, so don't expect byte-identical reproductions across updates - pin your git revision if you're chasing a specific look.

One more thing worth knowing before you go spelunking in YAML: the pack generates noise on GPU or CPU somewhat inconsistently, and that means seeds can differ between GPU models. If you're about to spend an afternoon tuning YAML parameters, do it on the same machine, or pin override_device in SonarCustomNoiseParameters first - otherwise you'll be chasing parameters that quietly moved.

Categoryadvanced/noise

Inputs (5)

NameTypeDefaultDescription
factorFLOAT1.000-10000–10000Scaling factor for the generated noise of this type.
rescaleFLOAT0.0000–10000When non-zero, this custom noise item and other custom noise items items connected to it will have their factor scaled to add up to the specified rescale value. When set to 0, rescaling is disabled.
noise_typeCOMBOgaussianSets the type of noise to generate.
sonar_custom_noise_optoptSONAR_CUSTOM_NOISE,OCS_NOISEOptional input for more custom noise items. The following input types are supported: SONAR_CUSTOM_NOISE, OCS_NOISE
yaml_parametersoptSTRINGAllows specifying custom parameters via YAML. Note: When specifying paramaters this way, there is generally little to no error checking.

Outputs (1)

NameTypeDescription
SONAR_CUSTOM_NOISESONAR_CUSTOM_NOISEA custom noise chain.