NormalizedAmplitudeToMask
KJNodes/audio
NormalizedAmplitudeToMaskWorks 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
| Name | Type | Status | Constraints | Default |
|---|---|---|---|---|
normalized_amp | NORMALIZED_AMPLITUDE | required | - | - |
width | INT | required | min: 16, max: 4096, step: 1 | 512 |
height | INT | required | min: 16, max: 4096, step: 1 | 512 |
frame_offset | INT | required | min: -255, max: 255, step: 1 | 0 |
location_x | INT | required | min: 0, max: 4096, step: 1 | 256 |
location_y | INT | required | min: 0, max: 4096, step: 1 | 256 |
size | INT | required | min: 8, max: 4096, step: 1 | 128 |
shape | ENUM4 options
| required | - | "none" |
color | ENUM2 options
| required | - | "amplitude" |
Outputs
| Index | Name | Type | Is List | Connection Reference |
|---|---|---|---|---|
0 | MASK | MASK | No | ["{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?