Forums > MaxMSP

generating bit lists based on positional values?


July 9, 2013 | 12:23 am

I need to convert pitch class sets to bit lists and I am having trouble getting my head around the conversion of positional values to bits. Given a set of list positions how do I get 1’s in each named position and 0’s in all of the unnamed positions using standard Max objects?

— Pasted Max Patch, click to expand. —
July 9, 2013 | 12:29 am

This seems to work:

<code>

— Pasted Max Patch, click to expand. —

</code>

July 9, 2013 | 12:41 am

God damn that is beautiful.

July 9, 2013 | 2:08 am

…Just found a zero bug in that solution. This should take care of it..

— Pasted Max Patch, click to expand. —
July 9, 2013 | 5:18 am

ah yeah, didn’t really take the time to check it through hehe. Whoops.

Viewing 5 posts - 1 through 5 (of 5 total)

Forums > MaxMSP