6x Entangled Curves [0,1] (Frequency)
The six-prompt superposition the README is built around
- KEYFRAMED_CURVE
- KEYFRAMED_CURVE
- KEYFRAMED_CURVE
- KEYFRAMED_CURVE
- KEYFRAMED_CURVE
- KEYFRAMED_CURVE
Six is the number dmarx's own README demoes - the "6x interleaved prompts" workflow is the showcase for this whole entangled-curves idea, complete with a second AnimateDiff refinement pass, video frame interpolation, and ESRGAN upscaling. So if you've seen a wild multi-prompt AnimateDiff loop on r/StableDiffusion and wondered how the prompts were trading off, this node (or its wavelength twin) is probably the answer.
It's the 6x member of the "Entangled Curves" family in ComfyUI-Keyframed, driven by frequency. Six curves, phase-locked, summing to ~1 at every frame. This is the size where the effect becomes unmistakable: six prompts, each taking its turn in the lead, no single one ever dominating the mix.
How it works
Six SinusoidalCurves are built with phases evenly spaced around the circle (a sixth of a turn apart), each with amplitude 1/6 plus a small floor so none fully zeroes - the README's "prompt entanglement" section notes that fully zeroed conditions produce "sharp edges" in the traversal. Balanced phases make the six sum to ~1 at every instant. Individually each swings between ~0 and ~1/3, so the leading prompt contributes about a third of the conditioning while the other five share the rest. The lead rotates smoothly through the whole animation, and with a frequency of 1/12 the full rotation of leads takes one complete 12-frame cycle.
One input, frequency (FLOAT, default 1/12, stepped at 0.01). Six KEYFRAMED_CURVE outputs.
Wiring it up
Standard family pattern: each curve output into its own Apply Curve To Conditioning node with its prompt's conditioning, merge with KfConditioningAdd, then into the sampler. Six is enough participants that the combined conditioning gets heavy - expect it to be the slowest member of this family to sample, and the most likely to benefit from a refinement pass like the README's example does.
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 model downloads; the only dependency is the keyframed library, auto-installed on first startup (first load can pause on pip; if it fails, pip install keyframed by hand). It's under keyframed → entangled [0-1]. If you want the poster-child version of prompt superposition, six is where the magic lives.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| frequency | FLOAT | 0.08 | — |
Outputs (6)
| Name | Type | Description |
|---|---|---|
| KEYFRAMED_CURVE | KEYFRAMED_CURVE | — |
| KEYFRAMED_CURVE | KEYFRAMED_CURVE | — |
| KEYFRAMED_CURVE | KEYFRAMED_CURVE | — |
| KEYFRAMED_CURVE | KEYFRAMED_CURVE | — |
| KEYFRAMED_CURVE | KEYFRAMED_CURVE | — |
| KEYFRAMED_CURVE | KEYFRAMED_CURVE | — |