<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2715.400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#c0c0c0>
<DIV><FONT face=Arial size=2>(i assume that this code is ok)</FONT></DIV>
<DIV><FONT face=Arial size=2>i found something usefull for lingo
[director]</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2>(copy as
movie/global script)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>*****************************</FONT></DIV>
<DIV><FONT face=Arial size=2>on i2bi num, divisor<BR> set hiNum = num /
divisor<BR> set loNum = num mod divisor<BR> set divisor = sqrt
(divisor)<BR> set opStr = EMPTY<BR> if (divisor > 1)
then<BR> set opStr = opStr & i2bi (hiNum,
divisor)<BR> set opStr = opStr & i2bi (loNum,
divisor)<BR> else<BR> return (string (hiNum) &
string (loNum))<BR> end if<BR> return
opStr<BR>end<BR>******************************</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>an by typing "put i2bi(65535,256)" in the message
window you get "1111111111111111"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>so i was wondering how do i do this on pd
?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>or if any1 with c skills&time to make a small
extern ;)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>thnx</FONT></DIV>
<DIV><FONT face=Arial size=2>-andre</DIV></FONT>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=andre@vju.info href="mailto:andre@vju.info">Andre Schmidt</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=pd-list@iem.kug.ac.at
href="mailto:pd-list@iem.kug.ac.at">PD-LiST</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, July 30, 2002 11:54
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [PD] bytes2bits?</DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><FONT
face=Arial size=2></FONT><BR></DIV>
<DIV><FONT face=Arial size=2>heh, it was too easy when you got simple
info...</FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.goshen.edu/compsci/mis200/decbinary.htm">http://www.goshen.edu/compsci/mis200/decbinary.htm</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>+good ref.table for tae...</FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.celticrover.com/bgtt/binary.asp">http://www.celticrover.com/bgtt/binary.asp</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>ok, the patch is simple and has the result output
reversed, so if some1 knows how do i revert the output elegantly... (not
pack/unpack)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>"bytes2bits4_xgui.pd" is a test using
"byte2bits.pd" (+ "remap.pd") for xgui (you need zexy)...</FONT></DIV>
<DIV><FONT face=Arial size=2>(it remaps adc~dfreq~snapshot~ to 0-255 and
displays the 8bits as lines x2)...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>"8bit-gem004c.pd" is the same, only for gem so
rotating&scaling in 3d... (VERY messy)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>cheers</FONT></DIV>
<DIV><FONT face=Arial size=2>-andre</FONT></DIV>
<DIV><FONT face=Arial size=2>ps. can i pan/rotate the gem camera arount the
center of view ?</FONT></DIV>
<DIV><FONT face=Arial size=2>pss. can i force the gemwin to "stay on top"
?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>----- Original Message ----- </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=andre@vju.info href="mailto:andre@vju.info">Andre Schmidt</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=pd-list@iem.kug.ac.at
href="mailto:pd-list@iem.kug.ac.at">PD-LiST</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, July 30, 2002 8:08
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [PD] bytes2bits?</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>that bits2bytes was easy, but i cant get
bytes2bits to work properly...</FONT></DIV>
<DIV><FONT face=Arial size=2>i remember doing this (WAY) back with pascal
but cant figure out how to do it in pd...</FONT></DIV>
<DIV><FONT face=Arial size=2>would be very nice if some1 could show me how
to convert bytes (0-255) to a list of "0" & "1"...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>the attachment is how far i got...</FONT></DIV>
<DIV><FONT face=Arial size=2>hope i'm even on the right path :)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>thnx</FONT></DIV>
<DIV><FONT face=Arial
size=2>-andre</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>