Not sure I entirely understand all of the insides, but let's try this: I don't think that those codeboxes are required for what you're doing - it's your choice to use them, but they don't look like they're going to buy you anything. There is one thing about the left codebox, though: you're making some kind of calculation for a variable called phaseoffset that you're calculating but not outputting, and it's not required in what's in the codebox [I could be wrong, of course. Did I miss something?]
Yes I introduced the phaseoffset before figuring out that the offset between the two players had to be 0.5 but I forgot to remove it.
Sure it is not necessary to use codeboxes but do you think is it computionnaly less efficient ? Because on the other hand I think it is much easier to read with the codeboxes.
Whatsoever I like the idea of the possibility to use both single operators and codeboxes to build similar circuits. I think it will help a lot people to make the jump from regular visual max programming to text programming.
FWIW, there is a limitation where dynamic execution of code in if/then/else is codebox only. In the above and other scenarios when visual patching all of the code is executed. So if you have really expensive calculations in your different cases, you may wish to use codebox for that scenario.