Forums > Jitter

question on characters display&manipulation

October 3, 2006 | 5:16 pm

being more an msp person , i need a little advice on which way to go .
i am trying to display a list of letters ( around 676 caracters ) in a grid format.
my question is what would be the best way to go if i wanted to be able to change each letter individually.

jit.lcd ?
jit.gl.videoplane ( with importing jpegs of individual letters on each videoplane, doing a poly~ videoplane 676 … maybe a little crazy , will try it out though ) ?
jit.gl.text3d ( or 2d ) ?

its very easy to get it done with jit.cellblock, but i would like have more manipulation freedom ( in terms of aesthetics ).
i guess it would b an easy job for jsui but i am not yet javascript fluent …

any suggestion would be appreciated.
here is a little example of what i am trying to achieve, using jit.cellblock.

max/msp4.5.5
jitter 1.5.1
powerbook ppc 1.33ghz
osx10.4.4
( i know i know its time to update…)

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 693 238 27 196617 – 1;
#P newex 663 182 20 196617 t b;
#P newex 614 62 40 196617 t b 1 b;
#P newex 614 40 48 196617 loadbang;
#P message 585 244 14 196617 0;
#P message 569 244 14 196617 1;
#P newex 569 272 29 196617 gate;
#P newex 564 327 38 196617 sel 26;
#N counter 0 0 26;
#X flags 0 0;
#P newobj 569 298 77 196617 counter 0 0 26;
#P newex 663 297 40 196617 t i b i;
#P message 21 27 47 196617 clear all;
#P newex 678 347 35 196617 zl nth;
#P newex 663 204 40 196617 uzi 27;
#P newex 612 439 68 196617 pak set 1 0 s;
#P message 747 268 220 196617 a b c d e f g h i j k l m n o p q r s t u v w x y z;
#P user jit.cellblock 21 47 488 492 3 9 26 26 18 17 0 1 0 0 0 0 0 0 0 255 255 255 0 9 34 0 0 0 0 0 0 191 191 191 0 0 0 215 215 240 1 1 1 0 4 0 0 0;
#P hidden connect 2 0 0 0;
#P connect 5 0 0 0;
#P connect 7 0 8 0;
#P fasten 13 1 10 0 634 161 574 161;
#P connect 11 0 9 0;
#P connect 10 0 9 0;
#P connect 9 0 7 0;
#P fasten 8 0 11 0 569 349 545 349 545 235 590 235;
#P fasten 3 1 9 1 683 261 593 261;
#P connect 12 0 13 0;
#P fasten 6 0 2 1 668 405 636 405;
#P connect 7 0 2 2;
#P connect 8 1 14 0;
#P connect 13 0 14 0;
#P connect 14 0 3 0;
#P fasten 15 0 6 0 698 276 668 276;
#P fasten 4 0 2 3 683 419 674 419;
#P connect 6 1 4 0;
#P fasten 1 0 4 0 752 325 683 325;
#P connect 3 2 15 0;
#P connect 6 2 4 1;
#P fasten 13 2 1 0 649 153 752 153;
#P window clipboard copycount 16;


October 3, 2006 | 8:38 pm

double -click the [loadbang] if you dont see any characters appearing in the patch previously posted….


October 3, 2006 | 8:48 pm

use the jit.str objects, as you can use a matrix of char data as a
‘textfile’, and you could use the setcell message to set the value of
a cell.

v a d e //

http://www.vade.info
abstrakt.vade.info

On Oct 3, 2006, at 1:16 PM, karl-otto von wrote:

>
> being more an msp person , i need a little advice on which way to go .
> i am trying to display a list of letters ( around 676 caracters )
> in a grid format.
> my question is what would be the best way to go if i wanted to be
> able to change each letter individually.
>
> jit.lcd ?
> jit.gl.videoplane ( with importing jpegs of individual letters on
> each videoplane, doing a poly~ videoplane 676 … maybe a little
> crazy , will try it out though ) ?
> jit.gl.text3d ( or 2d ) ?
>
> its very easy to get it done with jit.cellblock, but i would like
> have more manipulation freedom ( in terms of aesthetics ).
> i guess it would b an easy job for jsui but i am not yet javascript
> fluent …
>
> any suggestion would be appreciated.
> here is a little example of what i am trying to achieve, using
> jit.cellblock.
>
> max/msp4.5.5
> jitter 1.5.1
> powerbook ppc 1.33ghz
> osx10.4.4
> ( i know i know its time to update…)
>
> #P window setfont "Sans Serif" 9.;
> #P window linecount 1;
> #P newex 693 238 27 196617 – 1;
> #P newex 663 182 20 196617 t b;
> #P newex 614 62 40 196617 t b 1 b;
> #P newex 614 40 48 196617 loadbang;
> #P message 585 244 14 196617 0;
> #P message 569 244 14 196617 1;
> #P newex 569 272 29 196617 gate;
> #P newex 564 327 38 196617 sel 26;
> #N counter 0 0 26;
> #X flags 0 0;
> #P newobj 569 298 77 196617 counter 0 0 26;
> #P newex 663 297 40 196617 t i b i;
> #P message 21 27 47 196617 clear all;
> #P newex 678 347 35 196617 zl nth;
> #P newex 663 204 40 196617 uzi 27;
> #P newex 612 439 68 196617 pak set 1 0 s;
> #P message 747 268 220 196617 a b c d e f g h i j k l m n o p q r s
> t u v w x y z;
> #P user jit.cellblock 21 47 488 492 3 9 26 26 18 17 0 1 0 0 0 0 0 0
> 0 255 255 255 0 9 34 0 0 0 0 0 0 191 191 191 0 0 0 215 215 240 1 1
> 1 0 4 0 0 0;
> #P hidden connect 2 0 0 0;
> #P connect 5 0 0 0;
> #P connect 7 0 8 0;
> #P fasten 13 1 10 0 634 161 574 161;
> #P connect 11 0 9 0;
> #P connect 10 0 9 0;
> #P connect 9 0 7 0;
> #P fasten 8 0 11 0 569 349 545 349 545 235 590 235;
> #P fasten 3 1 9 1 683 261 593 261;
> #P connect 12 0 13 0;
> #P fasten 6 0 2 1 668 405 636 405;
> #P connect 7 0 2 2;
> #P connect 8 1 14 0;
> #P connect 13 0 14 0;
> #P connect 14 0 3 0;
> #P fasten 15 0 6 0 698 276 668 276;
> #P fasten 4 0 2 3 683 419 674 419;
> #P connect 6 1 4 0;
> #P fasten 1 0 4 0 752 325 683 325;
> #P connect 3 2 15 0;
> #P connect 6 2 4 1;
> #P fasten 13 2 1 0 649 153 752 153;
> #P window clipboard copycount 16;
>
>
>
> –
> karrrlo
> http://www.marswalkers.org
> http://www.fleeingbirds.org


October 3, 2006 | 8:50 pm

You can use jit.text2d/3d in @automtic 0 mode. This will probably be
easiest done in a Javascript. There are a number of ways to organize
the position/character data in JS. Probably the simplest is to create
an array that holds the coordinates of all of the letters and another
array that hold the corresponding characters. Then, you just loop
through the arrays calling

text2d.position(pos[i])
text2d.text(letter[i])

where tex3d is a jit.gl.text2d object.

wes

On 10/3/06, karl-otto von oertzen wrote:
>
> double -click the [loadbang] if you dont see any characters appearing in the patch previously posted….
> –
> karrrlo
> http://www.marswalkers.org
> http://www.fleeingbirds.org
>


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