Files
Ethanfel 0e036b34d9 fix(ui): string-valued input_sr combo so the arrows cycle correctly
Integer-valued combos break ComfyUI's arrow navigation: indexOf(value) fails
on the int/serialized-value mismatch, returns -1, and the widget snaps to
index 0 (8000) every click. Use string options ("8000".."24000"); the code
already does int(input_sr) everywhere, so behavior is unchanged. Updated the
example workflows' widgets_values to strings to match.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-17 12:22:19 +02:00

85 lines
2.3 KiB
JSON

{
"last_node_id": 4,
"last_link_id": 5,
"nodes": [
{
"id": 1,
"type": "UniverSRLoadVideoAudio",
"pos": [100, 200],
"size": [360, 150],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{"name": "video", "type": "UNIVERSR_VIDEO", "links": [2], "slot_index": 0},
{"name": "audio", "type": "AUDIO", "links": [1], "slot_index": 1}
],
"properties": {"Node name for S&R": "UniverSRLoadVideoAudio"},
"widgets_values": ["video.mp4", 0.0, 0.0]
},
{
"id": 2,
"type": "UniverSRModelLoader",
"pos": [100, 400],
"size": [360, 130],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{"name": "model", "type": "UNIVERSR_MODEL", "links": [3], "slot_index": 0}
],
"properties": {"Node name for S&R": "UniverSRModelLoader"},
"widgets_values": ["universr-audio", "auto", "", ""]
},
{
"id": 3,
"type": "UniverSRSampler",
"pos": [520, 200],
"size": [340, 320],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{"name": "audio", "type": "AUDIO", "link": 1},
{"name": "model", "type": "UNIVERSR_MODEL", "link": 3}
],
"outputs": [
{"name": "audio", "type": "AUDIO", "links": [4], "slot_index": 0},
{"name": "spectrogram", "type": "IMAGE", "links": [], "slot_index": 1}
],
"properties": {"Node name for S&R": "UniverSRSampler"},
"widgets_values": ["16000", "midpoint", 4, 2.0, 0, "randomize", 10.0, 0.5, 1.0, false, true]
},
{
"id": 4,
"type": "UniverSRVideoCombiner",
"pos": [920, 200],
"size": [340, 170],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{"name": "video", "type": "UNIVERSR_VIDEO", "link": 2},
{"name": "audio", "type": "AUDIO", "link": 4}
],
"outputs": [
{"name": "output_path", "type": "STRING", "links": [], "slot_index": 0}
],
"properties": {"Node name for S&R": "UniverSRVideoCombiner"},
"widgets_values": ["UniverSR", "aac", true]
}
],
"links": [
[1, 1, 1, 3, 0, "AUDIO"],
[2, 1, 0, 4, 0, "UNIVERSR_VIDEO"],
[3, 2, 0, 3, 1, "UNIVERSR_MODEL"],
[4, 3, 0, 4, 1, "AUDIO"]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}