how to convert text from message to identical binary number
i've tried very hard (and yes i looked throug all the posts):
could not manage this: need to transport a symbol to a binary number
with the same value. how can i manage this. found no way (needs to be
done without any external)

---------------------------------
rens veltman@mac.com
++43 650 7603596
---------------------------------
Do you mean a symbol containing an integer value, or you want the binary equivalents of the ascii numbers? There's always this sort of thing ... example for positive values 0-255:
On Apr 30, 2007, at 6:47 AM, John Pitcairn wrote:
>
> Do you mean a symbol containing an integer value, or you want the
> binary equivalents of the ascii numbers? There's always this sort
> of thing ... example for positive values 0-255:
>
> #P window setfont "Sans Serif" 9.;
> #P window linecount 1;
> #P newex 57 292 29 196617 >> 7;
> #P newex 101 292 29 196617 >> 6;
> #P newex 57 268 39 196617 & 128;
> #P newex 101 268 33 196617 & 64;
> #P newex 236 112 40 196617 unpack;
> #P newex 236 91 52 196617 listfunnel;
> #P newex 236 70 40 196617 atoi;
> #P message 236 46 77 196617 "this is a test";
> #P newex 55 118 64 196617 fromsymbol;
> #P newex 55 71 51 196617 tosymbol;
> #P user hslider 55 46 18 128 256 1 0 0;
> #P newex 138 292 29 196617 >> 5;
> #P newex 175 292 29 196617 >> 4;
> #P newex 215 292 29 196617 >> 3;
> #P newex 250 292 29 196617 >> 2;
> #P newex 286 292 29 196617 >> 1;
> #P newex 57 421 27 196617 i;
> #P newex 57 399 64 196617 fromsymbol;
> #P newex 57 447 32 196617 print;
> #P newex 75 351 98 196617 loadmess separator;
> #P number 138 207 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P newex 138 268 33 196617 & 32;
> #P newex 57 323 277 196617 sprintf %ld %ld %ld %ld %ld %ld %ld %ld;
> #P newex 175 268 33 196617 & 16;
> #P newex 215 268 27 196617 & 8;
> #P newex 323 268 27 196617 & 1;
> #P newex 250 268 27 196617 & 4;
> #P newex 57 376 51 196617 tosymbol;
> #P newex 286 268 27 196617 & 2;
> #P connect 26 0 28 0;
> #P connect 28 0 6 0;
> #P connect 25 0 27 0;
> #P connect 27 0 6 1;
> #P connect 24 1 8 0;
> #P connect 8 0 26 0;
> #P connect 8 0 25 0;
> #P connect 8 0 7 0;
> #P connect 8 0 5 0;
> #P connect 8 0 4 0;
> #P connect 8 0 2 0;
> #P connect 8 0 0 0;
> #P connect 8 0 3 0;
> #P connect 3 0 6 7;
> #P connect 13 0 6 6;
> #P connect 14 0 6 5;
> #P connect 15 0 6 4;
> #P connect 16 0 6 3;
> #P connect 17 0 6 2;
> #P connect 6 0 1 0;
> #P connect 22 0 23 0;
> #P connect 23 0 24 0;
> #P connect 21 0 22 0;
> #P connect 20 0 8 0;
> #P connect 19 0 20 0;
> #P connect 18 0 19 0;
> #P connect 12 0 10 0;
> #P connect 7 0 17 0;
> #P connect 5 0 16 0;
> #P connect 4 0 15 0;
> #P connect 2 0 14 0;
> #P connect 0 0 13 0;
> #P connect 11 0 12 0;
> #P connect 1 0 11 0;
> #P connect 9 0 1 0;
> #P window clipboard copycount 29;
>
On Apr 30, 2007, at 6:47 AM, John Pitcairn wrote:
Do you mean a symbol containing an integer value, or you want the
binary equivalents of the ascii numbers? There's always this sort of
thing ... example for positive values 0-255:
hi john,
thanks for replying.
parsing a row from a jit.cellblock (like: 0 0 0 255 255 255 255 255
255 0 0 0 0 0 0 1 1 1 1 1 1
0 0 0 in a textedit box). i need to bring the same value (without
spaces) into a number box of type binary, so that i can change it
easily into its hex.
sort of green, i can not find out how this can be done with your
example batch. could you please explain.
---------------------------------
rens.veltman@mac.com
++43 650 7603596
---------------------------------
---------------------------------
rens.veltman@mac.com
++43 650 7603596
---------------------------------
Hello, this may be helpful... though I don’t use Jitter. Connect your symbol to the top t-object (trigger). The number box at the bottom is set to binary, but you can easily set it to hexadecimal in its info window (select it and press command-i).
— Ludwig Sears
Quote: rens.veltman wrote on Tue, 01 May 2007 02:47
----------------------------------------------------
> i can not find out how this can be done with your
> example batch.
It can't - I misunderstood what you were asking. You didn't mention that you were working with a list of RGB values...
On May 1, 2007, at 3:52 AM, John Pitcairn wrote:
>
> Quote: rens.veltman wrote on Tue, 01 May 2007 02:47
> ----------------------------------------------------
>> i can not find out how this can be done with your
>> example batch.
>
> It can't - I misunderstood what you were asking. You didn't mention
> that you were working with a list of RGB values...
sorry for not being more specific. but you showed me the direction
with your patch already (if there is one..) my problem seems to be
that max is cutting the leading zeroes from my binary parsing. have
to find a way around.
---------------------------------
rens.veltman@mac.com
++43 650 7603596
---------------------------------
Hello, this may be helpful... though I don’t use Jitter.
Connect your symbol to the top t-object (trigger). The number box at
the bottom is set to binary, but you can easily set it to hexadecimal
in its info window (select it and press command-i).
— Ludwig Sears
hello and thank you for the example.
maybe i should name my goal in more detail. i already have parsed my
(12bit) binary number into a textedit box looks like 0011000000110.
now i need to transfer it into a hex number.
---------------------------------
rens.veltman@mac.com
++43 650 7603596
---------------------------------
But that's the simplest part of the problem, unless I misunderstand you. Number boxes will automatically convert any input number into any one of six Display Styles you choose in the info window. Just select 'Hex' from the Display Style menu and you're good to go.
Oops, my bad.
I just tried connecting that Hex number box to a print object... and it was printed in decimal format. Sorry, I never had reason to notice that before! I guess that's the gist of your question there.
Hmm... gimmee a while to work on this, though someone smarter will probably beat me to it.
El Searso
On May 1, 2007, at 11:14 PM, David Wright wrote:
> I just tried connecting that Hex number box to a print object...
> and it was printed in decimal format. Sorry, I never had reason to
> notice that before!
> Hmm... gimmee a while to work on this, though someone smarter will
> probably beat me to it.
thats my problem.
---------------------------------
rens.veltman@mac.com
++43 650 7603596
---------------------------------
At 8:09 PM +0200 5/1/07, rens veltman wrote:
>maybe i should name my goal in more detail. i already have parsed my (12bit) binary number into a textedit box looks like 0011000000110. now i need to transfer it into a hex number.
Could you post the relevant portion of your patch?
-C
--
Chris Muir | "There are many futures and only one status quo.
cbm@well.com | This is why conservatives mostly agree,
http://www.xfade.com | and radicals always argue." - Brian Eno
>> I just tried connecting that Hex number box to a print object...
>> and it was printed in decimal format.
sprintf %x converts ints to hex symbolics
hth,
a
I'm still not sure I completely understand your problem, but here's a
brute force method of doing something:
--
Chris Muir | "There are many futures and only one status quo.
cbm@well.com | This is why conservatives mostly agree,
http://www.xfade.com | and radicals always argue." - Brian Eno
rens veltman schrieb:
> sorry for not being more specific. but you showed me the direction with
> your patch already (if there is one..) my problem seems to be that max
> is cutting the leading zeroes from my binary parsing. have to find a way
> around.
cutting the leading zeros should be no problem, they mean nothing. My
patch below will accept whatever length you give it (up to 256 bit)...
but beware, in a 32- bit world it would not make sense to go beyond 32
(though if the first bits are all set to zero, still no problem... ;-)
--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com
At 11:10 AM +0200 5/2/07, Stefan Tiedje wrote:
>My patch below will accept whatever length you give it (up to 256 bit)...
Lovely solution.
-C
--
Chris Muir | "There are many futures and only one status quo.
cbm@well.com | This is why conservatives mostly agree,
http://www.xfade.com | and radicals always argue." - Brian Eno
On May 2, 2007, at 2:03 AM, Chris Muir wrote:
> Could you post the relevant portion of your patch?
just want to web in all your helpfull suggestion. coming out then.
---------------------------------
rens.veltman@mac.com
++43 650 7603596
---------------------------------
On May 2, 2007, at 3:19 AM, Chris Muir wrote:
> I'm still not sure I completely understand your problem, but here's
> a brute force method of doing something:
thanks chris (and all). helpfull indeed (so many ways to rome...).
but my problem persists, because native handling of the number box
(here as binary box) in max truncate the leading zeros, chanching btw
a 12bit num into a 10bit num. that means i have to substitute the
lost 0's, because i have to deal with the originally
value. never declared why, i think.
i' will be posting a patch (hopefully soon) to show what i want to
reach. still at the beginning (struggling with my skills).
what if done so far.
step 1:
reading an black and white images (24 by 32 pixels, representing
letters from a-z from a whole font, at least the meaningfull signs)
into jit.op. -> eliminating all halftonesof a plane -> unpacking the
values (at that time only 0's and 255's are left) after having them
parsed into a bitlist, row by row into a jit.cellblock, with
corresponding (to the imagesize) cells and rows. now i can see a
picture of my fontletter in the cellblock. now with the help of all
of you i am able to convert my binary rows (one row for example looks
like "0 1 1 0 0 0 0 0 0 1 1 0", the top row of my "H") to a table of
hexadecimal values. has to be portable to a microcontroller (sort of
led-display, so called "pov - persistance of vision".
projects on the web).
so far so good. but my (faraway, i know) goal is to simulate this pov
- phenomenon via jitter. for better understanding how a pov can be
done in reality and testing purposes and to learn some math and
maxmspjitter.
yours rv
---------------------------------
rens.veltman@mac.com
++43 650 7603596
---------------------------------
---------------------------------
rens.veltman@mac.com
++43 650 7603596
---------------------------------
>but my problem persists, because native handling of the
>number box (here as binary box) in max truncate the leading
>zeros, chanching btw a 12bit num into a 10bit num.
>that means i have to substitute the lost 0's, because i
>have to deal with the originally value.
It's really hard to help without actually seeing your problem. Please post the part of your patch that you're having trouble with.
-C
Hi
I'm trying to read coll list into textedit, problem is that it
doesn't recognise commas & semi colons. Can anyone shed some light on
this?
My use is pretty simple as i want to edit the coll object while
running in the main patch, without having to open the coll window.
best
denniz
i'm on OS 10.4.10, mac 4.6.3
Sonic Kooking schrieb:
> My use is pretty simple as i want to edit the coll object while running
> in the main patch, without having to open the coll window.
I would do this with jit.cellblock, you can link it to a coll...
Stefan
--
Stefan Tiedje------------x-------
--_____-----------|--------------
--(_|_ ----|-----|-----()-------
-- _|_)----|-----()--------------
----------()--------www.ccmix.com
ah. i could do it this way as well.
thanks
dennis
Am 18.01.2008 um 11:02 schrieb Stefan Tiedje:
> Sonic Kooking schrieb:
>> My use is pretty simple as i want to edit the coll object while
>> running in the main patch, without having to open the coll window.
>
> I would do this with jit.cellblock, you can link it to a coll...
>
> Stefan
>
> --
> Stefan Tiedje------------x-------
> --_____-----------|--------------
> --(_|_ ----|-----|-----()-------
> -- _|_)----|-----()--------------
> ----------()--------www.ccmix.com
>
>
On 20 janv. 08, at 17:43, Werner Funk wrote:
> Am 18.01.2008 um 02:01 schrieb Sonic Kooking:
>>
>> I'm trying to read coll list into textedit, problem is that it
>> doesn't recognise commas & semi colons. Can anyone shed some light
>> on this?
>>
>> My use is pretty simple as i want to edit the coll object while
>> running in the main patch, without having to open the coll window.
>
> If you have any spreadsheet such as iWork, AppleWorks, OpenOffice,
> MS Works or Exsel etc, you easily edit colls by using columns and
> 'copy downward' etc., even with functions to calculate entries.
It's just too bad that [coll]'s readagain message doesn't work since
Max 4.3 when the file is changed in an external editor. Now you have
to use "read mycoll.txt" instead, which is not so nice.
_____________________________
Patrick Delges
Centre de Recherches et de Formation Musicales de Wallonie asbl
http://www.crfmw.be/max