Re: [PD] Binary - integer conversion

2007-03-19 Thread Steffen Leve Poulsen
list of any length or ints of any size. Here is xor.pd and help-xor.pd (already a classic). You should tjek out how xor.pd is constructed. I think this is the way to go when its bitwise. You can easily change the int size (list length). God Luck Steffen Leve Poulsen David Powers skrev: Ah

Re: [PD] Binary - integer conversion

2007-03-19 Thread Steffen Leve Poulsen
Just a small correction Stffn Steffen Leve Poulsen skrev: list of any length or ints of any size. Here is xor.pd and help-xor.pd (already a classic). You should tjek out how xor.pd is constructed. I think this is the way to go when its bitwise. You can easily change the int size (list

Re: [PD] Binary - integer conversion

2007-03-18 Thread Martin Peach
IOhannes m zmoelnig wrote: Martin Peach wrote: IOhannes m zmoelnig wrote: Martin Peach wrote: Also if my string patch is applied to pd, you can use [str drip 1 0 1 0 1 0 0 0 1 0 1 1] to output that sequence one at a time. Since the floats then why the hell do you need

Re: [PD] Binary - integer conversion

2007-03-18 Thread David Powers
On 3/18/07, Steffen Leve Poulsen [EMAIL PROTECTED] wrote: Hi David I sometimes use constructs like attached patch. Its just a bitmask. Quite effektive for eventfiltering, beatcuts and patterncreation. more xor! Ah this is interesting - and proof that it's really time I learn dynamic

Re: [PD] Binary - integer conversion

2007-03-17 Thread IOhannes m zmoelnig
David Powers wrote: Hello, Is it possible to somehow convert back and forth between integer and binary in PD? My idea, is to represent simple drum machine style rhythms as binary numbers. [101010001011]. Ok, so if this were a float, it would be trivial to do a common task and shift the

Re: [PD] Binary - integer conversion

2007-03-17 Thread IOhannes m zmoelnig
Martin Peach wrote: Also if my string patch is applied to pd, you can use [str drip 1 0 1 0 1 0 0 0 1 0 1 1] to output that sequence one at a time. Since the floats are always 1 or 0 there won't be any problems with long strings. in theory this is correct. nevertheless, when saving a

Re: [PD] Binary - integer conversion

2007-03-17 Thread David Powers
I have some abstractions now all together with help - both for conversions and for rhythm manipulation. Will post later when I get home, I don't have my laptop right now... ~David ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -

Re: [PD] Binary - integer conversion

2007-03-17 Thread Chris McCormick
On Fri, Mar 16, 2007 at 11:44:54AM -0600, David Powers wrote: Is it possible to somehow convert back and forth between integer and binary in PD? Hi David, I know this isn't exactly what you want, but it is along the same lines. I used to enjoy writing beats on graph paper before transcribing

Re: [PD] Binary - integer conversion

2007-03-16 Thread Kyle Klipowicz
You might want to look at the bitwise operators , , etc. I tried to play with them after some summer flirtation I had with the RK C manual, but never got far with that concept. ~Kyle On 3/16/07, David Powers [EMAIL PROTECTED] wrote: Hello, Is it possible to somehow convert back and forth

Re: [PD] Binary - integer conversion

2007-03-16 Thread Steffen
On 16/03/2007, at 18.44, David Powers wrote: Hello, Is it possible to somehow convert back and forth between integer and binary in PD? My idea, is to represent simple drum machine style rhythms as binary numbers. [101010001011]. Ok, so if this were a float, it would be trivial to do a

Re: [PD] Binary - integer conversion

2007-03-16 Thread Kyle Klipowicz
You must implement the algorithm shown in this link: http://en.wikipedia.org/wiki/Binary_numeral_system#Decimal I did that in C during that earlier mentioned summer of my KR C binge. I'm not sure how tricky it would be to do in Pd. ~Kyle On 3/16/07, David Powers [EMAIL PROTECTED] wrote: Hi,

Re: [PD] Binary - integer conversion

2007-03-16 Thread padawan12
binary to decimal, just raise the nth bit 2^^n, decimal to binary see attached (done from Kyles link) - problem: the list is a variable length and you probably want to pad it with zeros for whatever word length you have. On Fri, 16 Mar 2007 12:17:02 -0600 David Powers [EMAIL PROTECTED] wrote:

Re: [PD] Binary - integer conversion

2007-03-16 Thread David Powers
Wow I thought for sure this would be built in ... or at least a common external. It kind of defeats the point of using bitwise operations, if I have to do a conversion with some PD list algorithm, because the whole point was to avoid list operations in PD, in order to speed things up! It would be

Re: [PD] Binary - integer conversion

2007-03-16 Thread padawan12
On Fri, 16 Mar 2007 13:18:12 -0600 David Powers [EMAIL PROTECTED] wrote: Wow I thought for sure this would be built in ... or at least a common external. It possibly is. I'm just showing you how to do it from scratch in a way that directly follows the algorithm Kyle pointed you at. You could

Re: [PD] Binary - integer conversion

2007-03-16 Thread Kyle Klipowicz
I'll try to dig up my c code and give it to you, in exchange for GPL. ~Kyle On 3/17/07, padawan12 [EMAIL PROTECTED] wrote: On Fri, 16 Mar 2007 13:18:12 -0600 David Powers [EMAIL PROTECTED] wrote: Wow I thought for sure this would be built in ... or at least a common external. It

Re: [PD] Binary - integer conversion

2007-03-16 Thread martin.peach
in cvs soon. Martin From: David Powers [EMAIL PROTECTED] Date: 2007/03/16 Fri PM 01:44:54 EDT To: PD List pd-list@iem.at Subject: [PD] Binary - integer conversion Hello, Is it possible to somehow convert back and forth between integer and binary in PD? My idea, is to represent simple