This might be an easy one, but I couldn’t work it out or find a result here!
What I’m looking for is a modifier that will hold last given value.
So if I hit a midi note that tells it “3” that continues to pass 3 along the chain until it receives another message.
If you open the Convert to Radio Buttons bin there is actually a setup for this, I’ve stripped it down slightly for this screen shot.
The workflow is quite simple - the execute child node is executed first as the parent, so it tells the null to activate and receive the number from the condition. When the condition de-activates, the execute child deactivates first so the null doesn’t update to pick up the extractor position, therefore, the value is held.
The simplest approach would be this :
The accumulator here just picks up the value in from the conidition, and just loops between 0-1 depending on the condition. converting to 3 could be done a number of ways, either multiply after the fact or set the max value to 6.