dear list,
find attached a really simple abstraction to convert a single byte value into 8 bit outputs. it handles higher values gracefully (it just outputs the lower 8 bits)
i use it to restore saved boolean values on an atmega eeprom to puredata (the values are saved into bytes on the arduino to save space). since it is really handy for me i thought i’d share.
you may want to put some additional characters after the name when you create the abstraction to see all outlets :-) (e.g. bytetobit ……..)
cheers
simon
and here is a help patch :-)
On 03 Jul 2016, at 21:41, Simon Iten itensimon@gmail.com wrote:
dear list,
find attached a really simple abstraction to convert a single byte value into 8 bit outputs. it handles higher values gracefully (it just outputs the lower 8 bits)
i use it to restore saved boolean values on an atmega eeprom to puredata (the values are saved into bytes on the arduino to save space). since it is really handy for me i thought i’d share.
you may want to put some additional characters after the name when you create the abstraction to see all outlets :-) (e.g. bytetobit ……..)
cheers
simon <bytetobit.pd>
On 07/03/2016 09:41 PM, Simon Iten wrote:
dear list,
find attached a really simple abstraction to convert a single byte value into 8 bit outputs.
thanks for sharing.
it handles higher values gracefully (it just outputs the lower 8 bits)
unfortunately it outputs the bits in a really weird order: 1 3 4 5 2 6 7 8
with "8" being the MSB (and leftmost outlet) and "1" being the LSB (and right-most outlet). i would have expected the output to be like virtually any multi-outlet object to be from right to left: 1 2 3 4 5 6 7 8
or to cut it short: why aren't you using [trigger]?
you may want to put some additional characters after the name when you create the abstraction to see all outlets :-) (e.g. bytetobit ……..)
or just drag the right-hand edge to whatever width you like: [bytetobit ]
gsdr IOhannes