ComfyUI  >  Nodes  >  SaltAI_AudioViz >  Schedule Cyclical Loop

ComfyUI Node: Schedule Cyclical Loop

Class Name

SaltCyclicalSchedule

Category
SALT/AudioViz/Scheduling/Filter
Author
SaltAI (Account age: 146 days)
Extension
SaltAI_AudioViz
Latest Updated
6/29/2024
Github Stars
0.0K

How to Install SaltAI_AudioViz

Install this extension via the ComfyUI Manager by searching for  SaltAI_AudioViz
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter SaltAI_AudioViz 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

Schedule Cyclical Loop Description

Create cyclical loops from schedule values, repeat segments, "ping-pong" option for back-and-forth looping in AI art projects.

Schedule Cyclical Loop:

SaltCyclicalSchedule is a powerful node designed to create cyclical loops from a given list of schedule values. This node is particularly useful for generating repetitive patterns or sequences in your AI art projects, allowing you to define a specific segment of your schedule list and repeat it multiple times. Additionally, it offers a "ping-pong" option to create a back-and-forth looping effect, adding more variety and dynamism to your schedules. By leveraging this node, you can efficiently manage and manipulate schedule data to achieve complex and visually appealing results in your AI-generated art.

Schedule Cyclical Loop Input Parameters:

schedule_list

This parameter takes a list of values that represent the schedule you want to manipulate. The list serves as the base data from which the cyclical loop will be generated. The values in this list can be any numerical data that you wish to repeat in a cyclical manner.

start_index

This integer parameter specifies the starting index of the segment within the schedule_list that you want to loop. The minimum value for this parameter is 0. It determines the beginning of the loop segment, and setting it correctly is crucial for defining the desired portion of the schedule to be repeated.

end_index

This integer parameter defines the ending index of the segment within the schedule_list that you want to loop. The minimum value for this parameter is 0, and it must be greater than or equal to the start_index. It marks the end of the loop segment, and ensuring it is within the range of the schedule_list is essential for proper functionality.

repetitions

This integer parameter indicates how many times the selected segment (from start_index to end_index) should be repeated in the final cyclical schedule. The minimum value for this parameter is 1. It controls the number of cycles, allowing you to extend the looped segment as needed.

ping_pong

This optional boolean parameter, which defaults to False, determines whether the loop should include a "ping-pong" effect. When set to True, the looped segment will be played forward and then backward, creating a back-and-forth motion. This can add a unique and dynamic variation to your schedule.

Schedule Cyclical Loop Output Parameters:

schedule_list

The output is a list that contains the newly generated cyclical schedule. This list is constructed by repeating the specified segment of the original schedule_list according to the defined repetitions and optionally applying the ping-pong effect. The resulting list can be used in various AI art applications to create repetitive and dynamic patterns.

Schedule Cyclical Loop Usage Tips:

  • To create a simple repetitive pattern, set the start_index and end_index to define the segment you want to loop, and adjust the repetitions to control how many times it repeats.
  • Use the ping_pong option to add a back-and-forth effect to your schedule, which can make the resulting pattern more interesting and dynamic.
  • Ensure that the end_index is within the range of the schedule_list to avoid errors and ensure the node functions correctly.

Schedule Cyclical Loop Common Errors and Solutions:

"Schedule end_index must be greater than or equal to start_index."

  • Explanation: This error occurs when the end_index is set to a value less than the start_index.
  • Solution: Adjust the end_index to be greater than or equal to the start_index.

"Schedule end_index must be within the range of the schedule_list."

  • Explanation: This error happens when the end_index is set to a value that exceeds the length of the schedule_list.
  • Solution: Ensure that the end_index is within the valid range of the schedule_list by setting it to a value less than the length of the list.

Schedule Cyclical Loop Related Nodes

Go back to the extension to check out more related nodes.
SaltAI_AudioViz
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.