Nodes/ComfyUI-sonar/SonarPowerNoise
ComfyUI Node

SonarPowerNoise

Generate and filter in a single step

By blepping·Created 3 years ago·Updated 15 days ago· 49
SonarPowerNoise
  • sonar_custom_noise_opt
  • SONAR_CUSTOM_NOISE
factor1.000
rescale0.000
time_brownianfalse
alpha0.000
max_freq0.707
min_freq0.000
stretch1.000
rotate0
pnorm2.0
mix1.000
common_mode0.000
channel_correlation1, 1, 1, 1, 1, 1
previewnone

SonarPowerNoise is the original and the simplest entry point to the pack's power-noise family: it generates noise and applies a frequency filter in one node. No separate filter object, no second node - just a noise generator with the filter knobs built in. When you're new to frequency-filtered noise, start here. When you want reusable filters or previews, graduate to SonarPowerFilter + SonarPowerFilterNoise.

What it does in one breath

It makes noise and shapes its frequency content with a power filter. alpha is the main tone knob - positive values amplify low frequencies (smooth, broad), negative values amplify high frequencies (fine, crisp). min_freq/max_freq set the band, stretch and rotate shape it anisotropically for directional texture, pnorm cushions the band edges, and mix (default 1) blends filtered noise with raw noise so you don't overshoot. common_mode desaturates the result by averaging across channels, channel_correlation controls per-channel coupling. preview (none/no_mix/mix) shows the filter shape and a noise sample so you can see what you're building. time_brownian swaps in brownian noise when mix isn't 1.0.

Why you'd pick this over the two-node route

Convenience and speed of iteration. One node, fewer sockets, fewer chances to mis-wire - the classic "I want to know what alpha + stretch feels like" workflow. The pack's SonarPowerNoise was the original contributed by elias-gaeros, and the separate SonarPowerFilter/SonarPowerFilterNoise split came later from refactoring it. Both are valid; this one is the fast path.

A quick texture cheat sheet

  • Soft dreamy starting noise: alpha around +1.
  • Film grain / fine texture: alpha negative, keep mix below 1 so it doesn't get crunchy.
  • Horizontal grain or fabric direction: stretch with rotate 0; rotate up to 90 for vertical, in between for angles.
  • Rainbow artifacts on colored noise: raise common_mode to desaturate.

The factor and rescale inputs are the pack standard, and sonar_custom_noise_opt lets you chain in additional noise items. Output is SONAR_CUSTOM_NOISE - wire it to a Sonar sampler, NoisyLatentLike, or onward into SonarModulatedNoise or SonarCompositeNoise.

Install

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

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

No models, no extra dependencies. The usual pack caveats: noise types are best-effort implementations, the filter math can be janky, and seeds may differ between GPU models since generation isn't device-pinned. For a first session, keep mix near 1, preview on, and tweak alpha - that alone will teach you more about frequency-filtered noise than any parameter essay.

Categoryadvanced/noise

Inputs (14)

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.
time_brownianBOOLEANfalseControls whether brownian noise is used when mix isn't 1.0.
alphaFLOAT0.000-5–5Values above 0 will amplify low frequencies, negative values will amplify high frequencies.
max_freqFLOAT0.7070–0.7071Maximum frequency to pass through the filter.
min_freqFLOAT0.0000–0.7071Minimum frequency to pass through the filter.
stretchFLOAT1.0000.01–100Stretches the filter's shape by the specified factor.
rotateFLOAT0-90–90Rotates the filter.
pnormFLOAT2.00.125–100Factor used for cushioning the band-pass region.
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.
previewCOMBOnoneWhen 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.
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.