i can’t come up with a solution for a recursive logic part of a patch i’m currently working on.
this part of the patch receives bangs by two external buttons using a boolean or (in the initial idle state, it’s unimportant which button is hit first). the first bang always triggers playing file1, but the next bang must only be accepted by the other switch, which would trigger file2. after this sequence, we’re back in an idle state and both buttons shall be queried again. as long as none of the two buttons were hit, all is idle.
the tricky part is that either buttons could send bangs any time. the importance is, that once a button is hit, it becomes #1 and then only #2 can trigger an action, as #1 already had it’s shot. only after #2 had it’s shot, the order of the buttons gets reset and the systems gets back to idle.
this could be something for Automata (Animation) but i can’t solve the different states part of it’s code.
any help appreciated!