## evaluating equation using bitwise operators at sample rate?

Jun 08 2020 | 7:31 pm

I'd like to evaluate c-like bytebeat equations. They use bitwise operators.
for example t<<(t>>8&(t/(t>>10&t)))
where t increments by 1 at sample rate.

I can use expr to evaluate a buffer~ by substituting $i1 for t and using poke~, but I'd like to be able to change the equation dynamically by typing it in or choosing one from a menu, and I'd like to add other parameters to the equation (like X,Y-input) so I can change the output of the equation in real time

I thought I could use gen~ but it looks like it can't process bitwise operators. Is there any way in Max to evaluate an equation with bitwise operators at sample rate? Or to dynamically change that equation?