Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Should I worry about dependency loops?

Still a little green? Ask your beginner's questions here

Should I worry about dependency loops?

Postby jake_nextnow » Fri May 31, 2019 2:01 pm

I have a system set up using timer CHOPs where their initialize input runs from other timer chops. When the timed experience is over it loops back to the beginning, but that creates a dependency loop. I get the warning about dependency loops but this loop is intended and because it uses timers isnt really an issue, can I just ignore it? Is there a better way to loop through states?

I'm attaching a couple examples of where I would want a loop, curious if anyone has a better way to loop!

dependencyLoopExample.toe
my example of loops I want to use
(5.28 KiB) Downloaded 62 times
jake_nextnow
 
Posts: 2
Joined: Tue May 21, 2019 4:39 pm

Re: Should I worry about dependency loops?

Postby rob » Mon Jun 03, 2019 9:55 am

Cook dependency loops run the risk of introducing intermittent random behavior.
You might consider pulsing the buttons with scripting, in the Timer CHOP callback DATs.

eg: op('timer1').par.start.pulse() in the appropriate acallback function.
User avatar
rob
Staff
 
Posts: 1671
Joined: Tue Nov 13, 2007 1:14 am

Re: Should I worry about dependency loops?

Postby jake_nextnow » Fri Jun 07, 2019 11:58 am

I see, thank you! Using OP references I had to change a few things but I think that ultimately made my system more simple to work with.
jake_nextnow
 
Posts: 2
Joined: Tue May 21, 2019 4:39 pm


Return to Beginners

Who is online

Users browsing this forum: Google [Bot] and 21 guests