Skip to main content

NormalizedAmplitudeToMask

KJNodes/audio
NormalizedAmplitudeToMask

Works as a bridge to the AudioScheduler -nodes: https://github.com/a1lazydog/ComfyUI-AudioScheduler Creates masks based on the normalized amplitude.

Example

JSON Example
{
  "class_type": "NormalizedAmplitudeToMask",
  "inputs": {
    "normalized_amp": [
      "node_id",
      0
    ],
    "width": 512,
    "height": 512,
    "frame_offset": 0,
    "location_x": 256,
    "location_y": 256,
    "size": 128,
    "shape": "none",
    "color": "amplitude"
  }
}

This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.

Inputs

NameTypeStatusConstraintsDefault
normalized_ampNORMALIZED_AMPLITUDErequired--
widthINTrequiredmin: 16, max: 4096, step: 1512
heightINTrequiredmin: 16, max: 4096, step: 1512
frame_offsetINTrequiredmin: -255, max: 255, step: 10
location_xINTrequiredmin: 0, max: 4096, step: 1256
location_yINTrequiredmin: 0, max: 4096, step: 1256
sizeINTrequiredmin: 8, max: 4096, step: 1128
shapeENUM
4 options
  • none
  • circle
  • square
  • triangle
required-"none"
colorENUM
2 options
  • white
  • amplitude
required-"amplitude"

Outputs

IndexNameTypeIs ListConnection Reference
0MASKMASKNo["{node_id}", 0]
How to connect to these outputs

To connect another node's input to an output from this node, use the connection reference format:

["node_id", output_index]

Where node_id is the ID of this NormalizedAmplitudeToMask node in your workflow, and output_index is the index from the table above.

Example

If this node has ID "5" in your workflow:

  • MASK (MASK): ["5", 0]
Was this page helpful?