Solved Scriptnode: How to send signal for set period of time
-
I'm attempting to set up a system in scriptnode where a value of 1 is sent for a limited period of time, after which the value would default to 0 until the process is triggered again via a button on the interface. Is there a node or series of nodes that could do this?
-
@obolig ramp into cable.table. trigger the ramp's gate by setting a parameter from script. parameter goes into a resetter, resetter goes into a ramp gate. ramp goes into cable-table. put it all into a modchain or use a clear node after the ramp because the ramp node "bleeds".
-
@aaronventure Thank you for the help! Either I'm missing something or I didn't clearly explain my goal. The current setup does restart the ramp when the resetter is triggered. This is very useful, but I'm looking for the chain to output the value of 1 only for the duration of one ramp cycle. After the cycle is complete, it will default back to 0 until the resetter is triggered again.
-
@obolig just change the plot of the table!
or event better (but you'll have to compile the network before exporting the plugin) use a cable.expr node, plug the ramp into it and do
output = input < 1.0 ? 1.0 : 0.0
-
@aaronventure My bad. I should have made that change before the previous screenshot. I was more so focused on the fact that displayed setup continuously repeats the cycle between 0 and 1 without stopping.
Let me try again to describe what I'm looking to do. The part that I'm stumped with is making the output signal stay at 0 after a single ramp cycle is complete. It should wait for a new trigger before jumping to 1 again for the set period of time. In this case of this graphic, 1 second. Sorry for the confusion.
-
@obolig Dial the loopstart on the ramp all the way up.
-
@aaronventure That was it! Thank you so much.
-