I've been trying to help a fellow Factorian debug his
pulse emitter counter-with-a-reset.
If I'm reading his problem statement correctly, he wants the [X = 10, Output X (input count)] decider combinator to in his application function with [X = A, Output X (input count)], where 'X' is the Each wildcard and 'A' is a variable signal.
'A' would both determine the frequency of the pulse and the value of the pulsed signal.
The core issue (I think) is that the pulse ends up lasting for 3 ticks instead of the desired 1 tick, the result being that the signal value 'A' is multiplied by 3 over the course of the pulse.
Pretty sure now that I totally fabricated that problem statement out of who knows what, whereas his
actual statement:
Yggdrasil wrote:I want to reset a counter after it counted to "a".
seems to articulate that the value primarily in question is that of of the signal S leaving the output of the [S + 0, Output S] arithmetic combinator, and he wants it to incrementally progress through the series {0, 1, 2, 3, 4,.., a (a = 10 in our test example)} in a loop, with the delay between all of the count progressions being equal (200 ticks each), including the reset to 0 step.
Any suggestions?
Hmm, maybe I misread the 10 being a placeholder for a variable signal, since that would really mess up the thing given that he makes liberal use of the Each wildcard signal.
Which leads to the question: why use Each in this circuit to begin with?
Having reframed the question, I came up with this:
What d'y'all think?