Bitwise Fun

Discuss Lemur and share techniques.
Post Reply
ForestCat
Regular
Posts: 59
Joined: 02 Mar 2012 21:00

Bitwise Fun

Post by ForestCat »

I don't know if any of you guys are doing much w/ Arduino, etc. If so this might be fun/useful.
In some mcu environments (Teensy2, for example), RAM is at a premium, and it really helps to use bitmaps wherever you're dealing w/ on off values, since one byte can store 8 parameters. On the mcu side, (C++/C, etc) you have a rich set of bitwise operators like NOT, XOR, etc.
Little more of a pain in Lemur to read/set/clear individual bits in an 8-bit word.
I use Lemur as the frontend/GUI for the Teensy that controls my pedalboard among other things, this little tool came out of my learning process of trying to get my head around bitmaps and Lemur. Hope someone finds it useful.

If nothing else, it's WAY cool to watch how the binary changes when you move the slider, lol
BitMath-01a.jzml
(20.51 KiB) Downloaded 124 times
Post Reply