I want object that can interpret binary code and bang to each number composing!
Hi, My names Ritz Koh who make a media art piece using Max6 , Arduino & vvvv in Korea.
In Korea, there aren’t enough education center that teach this program so I write question on
this page. My english sentence can have a many problems, But If you try to understand my
intends, I’ll be very thankful to you. so… First, Let me explain what I want to make.
I’m making digital media instrument using Arduino & Max. It has 6 touch sensors and 6 sounds.
so If you a specific touch sensor, It plays a each sound source. But I’m low level user so It has some
programming problem in Max6. You know that If you connect the Arduino & Max, Arduino can
only send a one data and that is Ascii code. So although I want to make a chord[harmony] playing
two sound sources or more, I can’t do that using only way of Ascii.
then I found a Binary code’s data processing principle. So I appoint each sensor numbers to
1,2,4,8,16 & 32 in regular sequence. and If I touch sensor1 & sensor3 at same time, that can
pretend it [1+4=5]. (or sensor 2& 4, It can be [2+8=10]. right?)
But this code generate so many number of cases. (1&2,1&2&4,1&2&4&8… bulabula)
So I want to ‘object’ (Max) that can pretend code that sent from Arduino and detect
binary numbers composing (like 13=1+4+8) , and send a bang to each six numbers.
(1,2,4,6,16 & 32.) But I can’t find this object or way to solve this problem…
so project is discontinued now and I want to get your advice. please help me.
I fail to understand the problem. Its a relative simple math based problem, so instead of trying to look for pre-made objects, why not simply write a solution yourself?
If you know the, what I like to call, "prime" numbers (1, 2, 4, 8, 16) you’re basically set. Say 21 is pressed. Well, first you can subtract 16 from it and then you keep 5. SO 16 was part of it. Then you can extract 4 from it (so it was part of the sequence) and you’re left with 1. Which was also part of it.
So 1, 4, 16. Pure mathematics, even wikipedia will have formulas online which you can use to solve this. So all that’s left is to build a patch.
ShelLuser’s right – there’s no single object that’ll do what you’re talking about, and it’s kind of simple to make one that kicks out all the nice ones and zeros. Of course, there are lots of ways to do it – I guess I’d use this one.
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 629.3oc4XtsaaBCF.9Z3ofxE6prJehSSZWrmiooIBwq0cDCBb5xVUe2GXGZZ 1VQ+L2ZABEEP9Pr+7W9swlG78B2Vcj2FF7gfOG348fummNq9L7Nk1Kbe9whx 7Vc0B2yaayugGtwTlheToyGEfBvm+NTd0AUIWo9YM2zIggAe4TQ04phaExa9 ZCuPYJEihtFsIfDk1eixP82vcId5GI1o6sps28dxScx2pjJY9dcWD9oFQd4y KoU7KcIXRWqYxVdXuP1wkdHQNmogVct39Lez2u+xFKcCiXkNRzWojqidYYfy laxPx+QGX+kKpyK9d.5xO1Erf0QITJSmB8B9I40wOou094pONhODR0nJgQNM iwnjrQMR7BIhwJiPMSdfYjnUgQnSHFgsFLBIcBwHzUgQXSHFgrFLBNaBwH3U gQhlPLBZUXDD7Xjkx10dWWWmZsQLgJL5XFIcwXjXl0SZL2noiIjjEiPnDqWW EhPhWNyYhs9QuPDRzhQHoVu4LH9fsX7Ay5suCwGzEiOHVe.OH9frbV.w5WA. De3r8op67vRg7OeWi5APe9WJo1pCMECi3gWuUv4wvNdqRHyUhJ4ypT5E04Vw tcbcwCPuSzlusjqG+n+4+Vup3jLuvIddgSz7BG17BG57BGx7BGr6vIAhc5Nx X.1I7jB.mLmYGHxo+n+NBmXH33tXmHH33tYVLH33t0cnPvwcqJSffiCelEDb b3SzAM0pe4fD2vSDTdhcCOLn7D4FdnP4g4FdHP4g5FdvP4g3FdPP4wMayHCJ N+OK+XNLXdc887l1SsoljtyFeWUSex3M5jBoIotECa32KFpeheeq8n+uAD84 PaJ -----------end_max5_patcher-----------
You might find bit and byte in Lobjects from Peter Elsea helpful. ftp://arts.ucsc.edu/pub/ems/Lobjects/
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 781.3oc0XssaiBCD8YxWAhmyFguBruseGqppfDuItBLQfS2dQ8eew1Pa51BX p.KphBQdvY74b73gY34MdAYkOvpC7+o+u887ddimm1jxfW6XufhzG1mmVqmV PAqtN8HKXq4dR1CRscHgzY6bpb+It33sUr8RiuAH7tvs9HBP8CITcEDuKz+l 1+i3RAWjyj5EA1ZjeP65xr69AD048+TJj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