SpectrumRT

Read with AI
All docs in one file (llms-full.txt)
SpectrumRT #Audio #Node
SpectrumRT

A node that turns the spectrum of the input device directly into a texture. It writes 256 bands into a 1px-wide horizontal strip and stretches it into a 256×256 RenderTexture. Each column is a frequency bin, and the brightness is the strength of that band (grayscale). Plug it into a Displace-family displacement source and the shape of the sound becomes the distortion of the image.

  • Gain — the multiplier applied to each bin. Negative values are treated as 0, and the result is clamped to 0-1
  • Analysis runs with autoGain enabled and dynamicRange fixed at 40dB; the only things the node can change are the input device and Gain

If the saved device ID is not in the current list (the device configuration changed), it falls back to the first device. When there are no input devices at all, nothing is output.

Input ports

Port IDType
Gainfloat

Output ports

Port IDType
Spectrum RTRenderTexture

Scriptable members

PathType
gainInputfloat
currentDeviceIDstring

Synapse Apps (scripting)

await synapse.modules.create({ type: "SpectrumRT" })

Also referenced from