Adding to a dropping number

does anyone know how I can bang on change to add a number, but have that number always come back down to zero, but every time I bang, it would just push it back up again?

togEdge is only banging if there is an increase/decrease from 0/1 and goes back to zero. Connect this output to a switch value node to get your added value to the later adding node.

Connect this output to a switch value node to get your added value to the later adding node.

so I link the output of Togedge to the switch pin? What values goes into the inputs of the switch?

does this method make the number come back to zero gradually?

Are you talking about something like this?

decay-feedback.v4p (5.2 kB)

Or this one?

shaking_bang.v4p (5.7 kB)

thanks for the reply guys.

frank, the link doesn’t seem to work. can you upload again please?

No worries- here it comes.

shaking_bang.zip (1.4 kB)