Nodes/ComfyUI-sonar/SonarPowerFilterNoise
ComfyUI Node

SonarPowerFilterNoise

Point a reusable power filter at any noise source

By blepping·Created 3 years ago·Updated 8 days ago· 49
SonarPowerFilterNoise
  • sonar_custom_noise
  • sonar_power_filter
  • sonar_custom_noise_opt
  • SONAR_CUSTOM_NOISE
factor1.000
rescale0.000
mix1.000
common_mode0.000
channel_correlation1, 1, 1, 1, 1, 1
preview
filter_norm_factor1.0
normalize_result
normalize_noise

SonarPowerFilterNoise is the application node in the pack's power-noise family: it takes a SONAR_POWER_FILTER (built with SonarPowerFilter), applies it to a SONAR_CUSTOM_NOISE chain, and gives you a mix control so you can blend filtered and raw noise. This is the node you reach for when you've designed a frequency filter and want to hear it against your actual noise.

What it does

Frequency filtering is the tool for "this noise has the wrong texture." Soft blurry starting noise when you want fine detail? Boost high frequencies. Grain that's too nervous? Cut high frequencies and let the low, smooth structure through. The power-filter system makes that repeatable: build the filter once, reuse it across Gaussian, pyramid, colored - any noise in the pack.

The inputs that matter

  • sonar_power_filter - the filter object from SonarPowerFilter. The whole point.
  • sonar_custom_noise - the noise being filtered. Any SONAR_CUSTOM_NOISE chain works.
  • mix - the blend ratio, default 1. 0.75 means 75% filtered noise + 25% raw. This is the knob that keeps you from overshooting: full filter is often too strong, and dialing mix down preserves some of the original noise character.
  • filter_norm_factor - normalization applied to the filter, 1.0 = fully normalized. Leave at 1 unless the filter feels too aggressive.
  • common_mode - a desaturation helper: injects the average across channels to pull the latent away from colored-noise rainbow artifacts. 0 is off; push it up to neutralize channel bias.
  • channel_correlation - comma-separated strengths per channel (default "1, 1, 1, 1, 1, 1"). Lowering a channel's value decorrelates it from its neighbors.

Then the standard trio: normalize_noise, normalize_result, plus factor and rescale for chain scaling.

The killer feature: preview

preview is where this node pays for itself. none off; no_mix shows only the filtered noise; mix shows noise after the mix; custom shows a color preview of the noise using a latent previewer (the tooltip recommends TAESD). You can iterate on your filter visually instead of blind-sampling and hoping. That's a genuinely rare thing in noise tooling and the reason to prefer this node over the all-in-one SonarPowerNoise when you're tuning.

How it fits

The intended pipeline is SonarPowerFilterSonarPowerFilterNoise, with SonarCustomNoise feeding the noise input. Output is SONAR_CUSTOM_NOISE, so the filtered result chains into composites, samplers, or further filtering. The README's docs/advanced_power_noise.md has the worked examples.

Install

ComfyUI Manager → search "ComfyUI-sonar" → Install → restart, or:

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

No models, no pip deps. As with the whole pack, the README flags that the noise types are best-effort implementations and that seeds can differ between GPU models because noise generation isn't pinned to a device. For power-noise work specifically, the author also warns some filter math may be "janky" - if a filter produces nonsense, try a simpler shape before blaming your settings.

Categoryadvanced/noise

Inputs (12)

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.
mixFLOAT1.0000–1Controls the ratio of filtered noise. For example, 0.75 means 75% noise with the filter effects applied, 25% raw noise.
common_modeFLOAT0.000-100–100Attempts to desaturate the latent by injecting the average across channels (controlled by channel_correction). Applied after mix.
channel_correlationSTRING1, 1, 1, 1, 1, 1Comma-separated list of channel correlation strengths.
previewCOMBOWhen enabled, displays a preview of the filter shape and a sample of noise. Mix - previews noise after mix is applied. no_mix - only previews the filtered noise. custom - Like no_mix, but will use a latent previewer to display a color preview of the generated noise. Works best when previewer is set to TAESD.
sonar_custom_noiseSONAR_CUSTOM_NOISE,OCS_NOISECustom noise type to filter. The following input types are supported: SONAR_CUSTOM_NOISE, OCS_NOISE
sonar_power_filterSONAR_POWER_FILTERFilter to use.
filter_norm_factorFLOAT1.00–1Normalization factor applied to the specified filter. 1.0 means 100% normalized.
normalize_resultCOMBOControls whether the final result is normalized to 1.0 strength.
normalize_noiseCOMBOControls whether the generated noise is normalized to 1.0 strength.
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

Outputs (1)

NameTypeDescription
SONAR_CUSTOM_NOISESONAR_CUSTOM_NOISEA custom noise chain.