[jitter] warp a 1 dim matrix to 20x20
Andrew Benson
andrewb at cycling74.com
Wed Sep 19 10:04:34 MDT 2007
- Previous message: [jitter] warp a 1 dim matrix to 20x20
- Next message: [jitter] Two New Recipes!!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The "jump" attribute in jit.unpack defines how many planes are to be included in each output. The "offset" attribute defines which plane from the input matrix will be the first plane of the output. This works similarly in jit.pack, with @jump defining how many planes to accept from each input and @offset defining what plane of the input to start with. In the following patch, all three on the right are equivalent. There are probably way more ways to do it, but that should give you the idea. #P window setfont "Sans Serif" 9.; #P window linecount 1; #P newex 391 245 55 196617 jit.matrix; #P newex 241 296 160 196617 jit.pack 2 @jump 3 2 @offset 0 3; #P newex 241 245 55 196617 jit.matrix; #P newex 336 183 134 196617 jit.matrix 2 @planemap 3 4; #P newex 242 215 104 196617 jit.pack 2 @jump 3 2; #P newex 242 164 143 196617 jit.matrix 3 @planemap 0 1 2; #P newex 349 75 152 196617 jit.unpack 1 @offset 3 @jump 2; #P newex 242 132 104 196617 jit.pack 2 @jump 3 2; #P newex 242 75 105 196617 jit.unpack 1 @jump 3; #P newex 126 70 81 196617 jit.unpack 5; #P newex 41 131 66 196617 jit.pack 5; #P newex 41 70 81 196617 jit.unpack 5; #P connect 9 0 10 0; #P connect 11 0 10 1; #P connect 8 0 7 1; #P connect 6 0 7 0; #P connect 5 0 4 1; #P connect 3 0 4 0; #P connect 0 0 1 0; #P connect 0 1 1 1; #P connect 0 2 1 2; #P connect 2 4 1 4; #P connect 2 3 1 3; #P window clipboard copycount 12; best, Andrew B.
- Previous message: [jitter] warp a 1 dim matrix to 20x20
- Next message: [jitter] Two New Recipes!!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
