Nodes/was-node-suite-comfyui/Audio Spectrogram
ComfyUI Node Runs on cloud

Audio Spectrogram

Draw a clip's spectrum over time as an IMAGE, high frequencies at the top, to see hum, noise, cut-offs and harmonics, or to feed the sound to an image model.

By WASasquatch·Created 4 years ago·Updated about 9 hours ago· 1,884
Audio Spectrogram
  • audio
  • image
◄width1024►
◄height512►
◄scalelog►
◄fft_size2048►
◄floor_db-90►
◄coloursmagma►
CategoryWAS Suite/Audio

Inputs (7)

NameTypeDefaultDescription
audioAUDIOThe clip to draw. Every clip of a batch gets a picture.
widthINT102464–8192Picture width in pixels, such as `1024`; time runs left to right.
heightINT51264–4096Picture height in pixels, such as `512`; frequency runs bottom to top.
scaleCOMBOlog`log` = octaves evenly spaced, music reads best; `mel` = hearing's own scale, speech reads best; `linear` = hertz evenly spaced, hum stands out.
fft_sizeCOMBO2048Window in samples: 4096 = finer pitch, blurred timing; 512 = sharp timing, coarse pitch; 2048 = between.
floor_dbFLOAT-90-160–-10Level drawn darkest, in dB below a full-scale sine. -90 = quiet detail; -60 = only the loud parts.
coloursCOMBOmagmaColour map: `magma` and `inferno` run black to pale yellow, `viridis` purple to yellow, `greyscale` black to white.

Outputs (1)

NameTypeDescription
imageIMAGEOne spectrogram picture per clip.