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

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

Eight curves for a slowly shifting ensemble

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

    Eight prompts is a serious crowd, and this node treats them the way a conductor treats a section: everyone plays, the mix just leans. It emits eight phase-locked sine curves that sum to ~1 at every frame, each swinging between ~0 and ~1/4. Even at its peak, one prompt only contributes a quarter of the conditioning - so the image is always a broad blend, and the "lead" is more of a subtle emphasis than a switch.

    It's the 8x member of the "Entangled Curves" family in dmarx's ComfyUI-Keyframed, driven by frequency. Past this point the family is really just adding more seats to the same orchestra; the mechanism doesn't change, only the resolution of the blend.

    How it works

    Eight SinusoidalCurves with phases evenly spaced around the circle (an eighth of a turn apart), amplitude 1/8 each plus a tiny floor so none fully zeroes - fully zeroed conditions create "sharp edges" in the traversal, per the README. The balanced phases make the eight sum to ~1 at any instant. Each curve ranges from ~0 to ~0.25, and because there are eight of them, the transition between "which prompt is emphasized" is very smooth - with the default frequency of 1/12, a full rotation of the lead takes 12 frames.

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

    Wiring it up

    Same pattern as every member of the family: each curve output into its own Apply Curve To Conditioning node, merge the eight conditionings with KfConditioningAdd, then into the sampler. This is a lot of merging per frame - it's the heaviest member of the frequency family so far, so budget for slower sampling.

    Installing it

    Part of ComfyUI-Keyframed. ComfyUI Manager: search "ComfyUI-Keyframed". Or:

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

    Restart ComfyUI. No models to download; the only dependency is the keyframed library, auto-installed on first startup (first load can pause on pip; pip install keyframed if it fails). The node is under keyframedentangled [0-1]. Eight is overkill for most stories, but for a slowly morphing texture of concepts, it's the top end of the practical range.

    Categorykeyframed/entangled [0-1]

    Inputs (1)

    NameTypeDefaultDescription
    frequencyFLOAT0.08

    Outputs (8)

    NameTypeDescription
    KEYFRAMED_CURVEKEYFRAMED_CURVE
    KEYFRAMED_CURVEKEYFRAMED_CURVE
    KEYFRAMED_CURVEKEYFRAMED_CURVE
    KEYFRAMED_CURVEKEYFRAMED_CURVE
    KEYFRAMED_CURVEKEYFRAMED_CURVE
    KEYFRAMED_CURVEKEYFRAMED_CURVE
    KEYFRAMED_CURVEKEYFRAMED_CURVE
    KEYFRAMED_CURVEKEYFRAMED_CURVE