ilteris kaplan blog

Jitter Tutorials Start

February 11, 2006

At last…
jit.qt.movie’s primary job is open a movie and read each frame one after other into RAM for easy access by other jitter objects.

jit.window gets that data in the RAM and shows it as colored pixels on the screen. (external window)
jit.pwindow does the same thing in the workspace.
**
mousestate** gives mouse coordinates of the screen with its outlets.
**scale **scales a input range of values to output range.
scale 0 600 -1 1

rate is the playing speed of the movie. 1 is the default. -1 is reverses the movie.

we can map our mouse coordinates as the playing speed of the movie by sending this value by rate $1 to the inlet of the jit.qt.movie.

so we have setcell object where we can set the exact point of the matrix data and display it on the pjit.pwindow.

it works like this: setcell x y val 0-255.

pack object gets number to be packed and spits them as a pack.
pak is similar to pack but all inlets cause outputs.

here is a small snippet that uses pak and allows you to change the matrix data instantly which you can see on the jit.pwindow plus max window.-

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 288 67 60 196617 clear \, bang;
#P comment 111 108 100 196617 value;
#P comment 60 108 100 196617 y;
#P newex 35 173 52 196617 pak 0 0 0;
#P number 110 129 35 9 0 255 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 63 129 36 9 0 12 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 20 129 35 9 0 15 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 268 112 129 196617 setcell \$1 \$2 val \$3 \, bang;
#P user jit.pwindow 267 238 162 122 0 1 0 0 1 0;
#P newex 269 192 117 196617 jit.matrix 1 char 16 12;
#P comment 22 108 100 196617 x;
#P newex 191 229 46 196617 jit.print;
#P fasten 2 0 0 0 196 210;
#P connect 2 0 3 0;
#P connect 7 0 8 2;
#P connect 6 0 8 1;
#P connect 5 0 8 0;
#P fasten 8 0 4 0 40 200 167 200 167 108 273 108;
#P fasten 11 0 2 0 293 142 274 142;
#P connect 4 0 2 0;
#P window clipboard copycount 12;

Written by Ilteris Kaplan who still lives and works in New York. Twitter