Nodes/ComfyUI-Keyframed/7x Entangled Curves [0,1] (Frequency)
ComfyUI Node

7x Entangled Curves [0,1] (Frequency)

Seven prompts, nobody ever fully in charge

By dmarx·Created 3 years ago·Updated 2 years ago· 92
7x Entangled Curves [0,1] (Frequency)
    • KEYFRAMED_CURVE
    • KEYFRAMED_CURVE
    • KEYFRAMED_CURVE
    • KEYFRAMED_CURVE
    • KEYFRAMED_CURVE
    • KEYFRAMED_CURVE
    • KEYFRAMED_CURVE
    frequency0.08

    At seven prompts, you're past "which prompt is on screen" and into "what mood is the blend leaning toward." This node emits seven phase-locked sine curves that sum to ~1 at every frame, and because each curve's peak shrinks as you add more, no single prompt ever comes close to dominating. The result is a constantly-shifting ensemble where the image is always a blend of everything - the strongest contributor carries only about a quarter of the conditioning.

    It's the 7x member of the "Entangled Curves" family in dmarx's ComfyUI-Keyframed, parameterized by frequency. The family's whole pitch is prompt superposition rather than scheduling - every prompt stays active, and the curves just move their relative weights around.

    How it works

    Seven SinusoidalCurves, phases spaced evenly around the circle (a seventh of a turn apart), amplitude 1/7 each plus a small floor so nothing fully zeroes - the README flags that zeroed conditions create "sharp edges" in the traversal. The balanced phases make the seven curves sum to ~1 at all times. Individually each swings between ~0 and ~2/7 (about 0.29), so even the lead prompt is under a third of the mix. Every other prompt is always present at some meaningful weight. That's the property you want if your intent is texture and continuity, not narrative beats.

    One input, frequency (FLOAT, default 1/12, stepped at 0.01). Seven KEYFRAMED_CURVE outputs.

    Wiring it up

    Each curve output into its own Apply Curve To Conditioning node with its prompt, merge with KfConditioningAdd, then into the sampler. With this many conditionings being weighted and merged, it's a good idea to keep your prompts short - each one's contribution is small, and long essays of tokens just add noise the blend barely uses.

    Installing it

    Ships in ComfyUI-Keyframed. ComfyUI Manager: search "ComfyUI-Keyframed". Or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/dmarx/ComfyUI-Keyframed
    

    Restart ComfyUI after. No model files; the only dependency is the keyframed library, auto-installed on first startup - expect a pause on first load, and pip install keyframed yourself if the auto-install is blocked. It's under keyframedentangled [0-1]. Seven is a niche count, but if you're animating a mood-field rather than a story, it's exactly right.

    Categorykeyframed/entangled [0-1]

    Inputs (1)

    NameTypeDefaultDescription
    frequencyFLOAT0.08

    Outputs (7)

    NameTypeDescription
    KEYFRAMED_CURVEKEYFRAMED_CURVE
    KEYFRAMED_CURVEKEYFRAMED_CURVE
    KEYFRAMED_CURVEKEYFRAMED_CURVE
    KEYFRAMED_CURVEKEYFRAMED_CURVE
    KEYFRAMED_CURVEKEYFRAMED_CURVE
    KEYFRAMED_CURVEKEYFRAMED_CURVE
    KEYFRAMED_CURVEKEYFRAMED_CURVE