ComfyUI > Nodes > ComfyUI-Keyframed > KfSinusoidalAdjustWavelength

ComfyUI Node: KfSinusoidalAdjustWavelength

Class Name

KfSinusoidalAdjustWavelength

Category
keyframed/sinusoidal
Author
dmarx (Account age: 4505days)
Extension
ComfyUI-Keyframed
Latest Updated
2024-05-22
Github Stars
0.08K

How to Install ComfyUI-Keyframed

Install this extension via the ComfyUI Manager by searching for ComfyUI-Keyframed
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Keyframed in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

KfSinusoidalAdjustWavelength Description

Modify sinusoidal curve wavelength while maintaining phase and amplitude, controlling oscillation frequency for AI art applications.

KfSinusoidalAdjustWavelength:

The KfSinusoidalAdjustWavelength node is designed to modify the wavelength of an existing sinusoidal curve. This adjustment allows you to fine-tune the periodicity of the curve, effectively changing the distance between successive peaks or troughs. By altering the wavelength, you can control the frequency of oscillations in your sinusoidal data, which can be particularly useful in various AI art applications where precise control over wave patterns is required. This node ensures that the adjustments are seamlessly integrated into the existing curve, maintaining the original phase and amplitude while only modifying the wavelength.

KfSinusoidalAdjustWavelength Input Parameters:

curve

This parameter expects a sinusoidal curve (SINUSOIDAL_CURVE) as input. The curve represents the initial wave pattern that you want to adjust. The node will use this curve's current wavelength, phase, and amplitude as the basis for the adjustment. This input is required and must be provided for the node to function.

adjustment

The adjustment parameter is a floating-point value (FLOAT) that specifies the amount by which the wavelength of the input curve should be adjusted. The default value is 0.0, and it can be incremented in steps of 0.5. Positive values will increase the wavelength, making the wave longer, while negative values will decrease the wavelength, making the wave shorter. This parameter allows for precise control over the modification of the curve's periodicity.

KfSinusoidalAdjustWavelength Output Parameters:

KEYFRAMED_CURVE

This output provides the adjusted sinusoidal curve as a keyframed curve. The keyframed curve retains the original phase and amplitude but has an updated wavelength based on the specified adjustment. This output can be used in further processing or visualization steps where keyframed data is required.

SINUSOIDAL_CURVE

This output provides the adjusted sinusoidal curve in its original sinusoidal form. Similar to the keyframed curve, it retains the original phase and amplitude but with the updated wavelength. This output is useful for applications that specifically require sinusoidal data.

KfSinusoidalAdjustWavelength Usage Tips:

  • To achieve subtle changes in the wave pattern, use small adjustment values. This allows for fine-tuning without drastically altering the curve.
  • Combine this node with other sinusoidal adjustment nodes, such as KfSinusoidalAdjustPhase or KfSinusoidalAdjustAmplitude, to create complex waveforms with precise control over multiple parameters.
  • Use the KEYFRAMED_CURVE output for applications that require interpolation between keyframes, and the SINUSOIDAL_CURVE output for direct sinusoidal data manipulation.

KfSinusoidalAdjustWavelength Common Errors and Solutions:

"Input curve is not a valid SINUSOIDAL_CURVE"

  • Explanation: This error occurs when the provided input curve does not match the expected SINUSOIDAL_CURVE type.
  • Solution: Ensure that the input curve is correctly formatted as a SINUSOIDAL_CURVE. Verify that the curve has the necessary properties such as wavelength, phase, and amplitude.

"Adjustment value is out of range"

  • Explanation: This error occurs when the adjustment value is outside the acceptable range for the node.
  • Solution: Check the adjustment value and ensure it is within a reasonable range. The default step size is 0.5, so adjustments should be made in increments that make sense for the specific application.

"Curve adjustment resulted in invalid wavelength"

  • Explanation: This error occurs if the adjustment results in a wavelength that is not physically meaningful (e.g., zero or negative wavelength).
  • Solution: Adjust the value to ensure that the resulting wavelength remains positive and within a practical range for sinusoidal curves.

KfSinusoidalAdjustWavelength Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Keyframed
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.