I’m looking for a CHOP to increase and decrease values. For exemple :
I press 1, the number increase “+1” : 1,2,3 …
I press 2, the number decrease “-1” : 3,2,1,0,-1 …
I don’t find the solution with “count CHOP” : just increase the value.
the Count CHOPs 3rd input is the increment value. So in case clicking btn 1 you would want to feed the 3rd input with a value of 1 while when clicking btn 2 you would want to feed it a value of -1.
I usually do this with the help of 3 Math CHOPs:
the first Math CHOP adds the 2 Buttons and is used as a trigger for the first input of the Count CHOP.
the second Math CHOP multiplies the second Btn value with -1
the third Math CHOP adds the first Btn value and the second Math CHOPs value and is used as an input to the increment value of the Count CHOP.
Hi Julient.
One alternative which takes one less CHOP:
I count the up-keys in a Count CHOP, and the down-keys in a 2nd separate, Count CHOP.
Then I combine the two count CHOPs with a single Math CHOP: “Combine CHOPs = subtract”.
Keep in mind though, when resetting, you have to reset two count CHOPs, instead of one, like Markus’ example.