I can see here that SuperCollider has some bitwise operators, but NOT does not seem to be one of them.
How would I flip all the bits for a number in SuperCollider?
I don’t have a computer science background, so maybe this is trivial to do with other bitwise operators - be patient with me!
sum is an integer:
sum &= 0xff; sum = (~sum) + 1; sum &= 0x7f;