Hi guys, just learnt how to play with c++ and how to make plugins

Some little operator that CC didn't have yet.

Well... I warn you, it might be difficult to find a good practical use for these but heh... Better too much tools than not enough

Here is the plugin

And a Demo cap to see what it's about

This object as one condition and 11 expressions

Conditions :

- "Is bit set to One" check if a given bit in the bit field is set to 1, you can invert it to check for 0

Expression :

- AND :

1 AND 1 = 1

1 AND 0 = 0

0 AND 1 = 0

0 AND 0 = 0

- OR

1 OR 1 = 1

1 OR 0 = 1

0 OR 1 = 1

0 OR 0 = 0

- XOR (eXclusisve OR)

1 XOR 1 = 0

1 XOR 0 = 1

0 XOR 1 = 1

0 XOR 0 = 0

- NOT

NOT 1 = 0

NOT 0 = 1

- LEFT SHIFT

45(101101) << 2 = 180(10110100)

- RIGHT SHIFT

45(101101) >> 2 = 11(1011)

- set to 1

you can set any bit of a given bitfield to 1

- set to 0

you can set any bit of a given bitfield to 0

- toggle

you can toggle any bit of a given bitfield

- decimal to binary

convert decimal number to binary number (works only with positive number)

- binary to decimal

convert binary number to decimal number (works only with positive number)

Have fun with it, and if you find some ways to use it, please tell me (:Yann2011-11-06 00:30:17