ComfyUI  >  Nodes  >  ComfyUI-Keyframed >  KfSinusoidalWithWavelength

ComfyUI Node: KfSinusoidalWithWavelength

Class Name

KfSinusoidalWithWavelength

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

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

KfSinusoidalWithWavelength Description

Generate smooth sinusoidal curves with precise control over wavelength, phase, and amplitude for AI art projects.

KfSinusoidalWithWavelength:

The KfSinusoidalWithWavelength node is designed to generate a sinusoidal curve based on specified parameters, making it a powerful tool for creating smooth, periodic variations in your AI art projects. This node allows you to define the wavelength, phase, and amplitude of the sinusoidal curve, providing you with precise control over the shape and behavior of the curve. By adjusting these parameters, you can create a wide range of effects, from gentle waves to more pronounced oscillations, enhancing the dynamic quality of your artwork. The primary goal of this node is to offer a flexible and intuitive way to incorporate sinusoidal patterns into your creative process, enabling you to achieve visually appealing and mathematically consistent results.

KfSinusoidalWithWavelength Input Parameters:

wavelength

The wavelength parameter defines the distance between successive peaks of the sinusoidal curve. It is a floating-point value with a default of 12, and it can be adjusted in steps of 0.5. By modifying the wavelength, you can control the frequency of the oscillations; a larger wavelength results in fewer oscillations over a given distance, while a smaller wavelength increases the number of oscillations. This parameter is crucial for determining the overall smoothness and periodicity of the curve.

phase

The phase parameter specifies the initial angle of the sinusoidal curve at the start of the cycle. It is a floating-point value with a default of 0.0 and can be adjusted in steps of approximately 0.1309 (π/24). The phase shift allows you to offset the curve horizontally, effectively changing the starting point of the oscillations. This can be useful for aligning the curve with other elements in your artwork or for creating more complex wave patterns.

amplitude

The amplitude parameter controls the height of the peaks and the depth of the troughs of the sinusoidal curve. It is a floating-point value with a default of 1 and can be adjusted in steps of 0.01. By increasing the amplitude, you can make the oscillations more pronounced, while decreasing it will result in a flatter curve. This parameter is essential for defining the intensity and visual impact of the sinusoidal pattern in your artwork.

KfSinusoidalWithWavelength Output Parameters:

KEYFRAMED_CURVE

The KEYFRAMED_CURVE output is a representation of the sinusoidal curve that can be used in keyframing applications. This output allows you to animate the curve over time, providing dynamic visual effects in your AI art projects. The keyframed curve retains all the properties defined by the input parameters, ensuring consistency in the animation.

SINUSOIDAL_CURVE

The SINUSOIDAL_CURVE output is the raw sinusoidal curve generated based on the specified wavelength, phase, and amplitude. This output can be used directly in your artwork to create smooth, periodic patterns. It serves as a foundational element that can be further manipulated or combined with other curves to achieve more complex visual effects.

KfSinusoidalWithWavelength Usage Tips:

  • Experiment with different wavelength values to see how the frequency of the oscillations affects your artwork. Smaller values create more frequent oscillations, while larger values result in smoother, more gradual waves.
  • Use the phase parameter to align the sinusoidal curve with other elements in your composition. This can help create harmonious and visually appealing patterns.
  • Adjust the amplitude to control the intensity of the oscillations. Higher amplitudes create more dramatic effects, while lower amplitudes result in subtler variations.

KfSinusoidalWithWavelength Common Errors and Solutions:

"Invalid wavelength value"

  • Explanation: The wavelength parameter must be a positive floating-point number.
  • Solution: Ensure that the wavelength value is greater than zero and within a reasonable range for your project.

"Invalid phase value"

  • Explanation: The phase parameter must be a floating-point number within the valid range.
  • Solution: Check that the phase value is correctly specified and falls within the expected range (typically between 0 and 2π).

"Invalid amplitude value"

  • Explanation: The amplitude parameter must be a non-negative floating-point number.
  • Solution: Verify that the amplitude value is zero or positive and adjust it accordingly to achieve the desired effect.

KfSinusoidalWithWavelength 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.