Forums > Jitter

jit.repos boundmode 0 bug?

November 4, 2008 | 8:48 pm

Dear all

I try to map 50 random numbers into a 200 point matrix. I want the
rest of the points to be out of bound, therefore static to 0, so I
preset all the points of my map matrix to a number higher than the
largest boundary, and was hoping that boundmode 0 would ignore them,
but I get a lot of strange behaviour from jit.repos when in
boundmode 0 or 1. A quick look at the following patch should point
out what I mean.

Any ideas of what I do wrong, or if it is a real bug?

thanks

pa

============

#P window setfont "Sans Serif" 9.;
#P number 146 284 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 105 288 15 0;
#P window linecount 1;
#P newex 106 311 63 196617 qmetro 150;
#P newex 106 366 116 196617 jit.noise 1 float32 50 1;
#P newex 570 254 140 196617 sprintf setcell %ld 0 val %ld;
#P newex 569 227 46 196617 urn 200;
#P newex 578 189 27 196617 t b i;
#P newex 578 170 27 196617 – 1;
#P newex 548 145 40 196617 uzi 50;
#P button 581 97 15 0;
#P newex 581 120 63 196617 t b 55 clear;
#P newex 533 361 115 196617 jit.matrix 1 long 200 1;
#P user jit.pwindow 9 529 1440 25 0 1 0 0 1 0;
#P newex 97 488 395 196617 jit.repos @adapt 0 @type float32 @dim 200
1 @planecount 1 @mode 0 @boundmode 0;
#P user jit.pwindow 7 443 1440 25 0 1 0 0 1 0;
#P connect 11 0 0 0;
#P connect 11 0 1 0;
#P connect 1 0 2 0;
#P connect 3 0 1 1;
#P connect 12 0 11 0;
#P connect 14 0 12 1;
#P connect 13 0 12 0;
#P connect 8 1 10 1;
#P connect 5 0 4 0;
#P connect 7 0 8 0;
#P connect 6 2 7 0;
#P connect 9 0 10 0;
#P connect 8 0 9 0;
#P connect 4 2 3 0;
#P connect 4 2 9 0;
#P connect 4 0 6 0;
#P connect 10 0 3 0;
#P connect 6 1 3 0;
#P connect 4 1 3 0;
#P window clipboard copycount 15;


November 5, 2008 | 4:02 pm

Dear all

Any help or bug confirmation is welcome, as I have tried on Max5 and I get the same behavior

thanks

pa


November 6, 2008 | 5:41 pm


November 6, 2008 | 5:57 pm

Note that jit.repos *requires* 2d coordinates as mentioned in the help
file and documentation. Just because you are working with a 1D input
matrix does not mean that it accepts 1D coordinates. Sorry that this
object is specialized for 2D. When I added a zero y coordinate to your
setcell sprintf, and a second plane to your long lookup matrix, the
results seemed more appropriate, however I wasn’t certain if there
were remaining boundmode issues. Looked correct to me, but please let
us know if you find any actual bugs. Revised example at bottom.

Hope this helps,
Joshua

#P window setfont "Sans Serif" 9.;
#P number 206 344 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 165 348 15 0;
#P window linecount 1;
#P newex 166 371 63 196617 qmetro 150;
#P newex 166 426 116 196617 jit.noise 1 float32 50 1;
#P newex 630 314 149 196617 sprintf setcell %ld 0 val %ld 0;
#P newex 629 287 46 196617 urn 200;
#P newex 638 249 27 196617 t b i;
#P newex 638 230 27 196617 – 1;
#P newex 608 205 40 196617 uzi 50;
#P button 641 157 15 0;
#P newex 641 180 63 196617 t b 55 clear;
#P newex 593 421 115 196617 jit.matrix 2 long 200 1;
#P user jit.pwindow 69 589 1440 25 0 1 0 0 1 0;
#P newex 157 548 395 196617 jit.repos @adapt 0 @type float32 @dim 200
1 @planecount 1 @mode 0 @boundmode 0;
#P user jit.pwindow 67 503 1440 25 0 1 0 0 1 0;
#P connect 8 1 10 1;
#P connect 9 0 10 0;
#P connect 10 0 3 0;
#P connect 4 2 3 0;
#P connect 4 2 9 0;
#P connect 3 0 1 1;
#P connect 6 1 3 0;
#P connect 4 1 3 0;
#P connect 4 0 6 0;
#P connect 8 0 9 0;
#P connect 6 2 7 0;
#P connect 7 0 8 0;
#P connect 5 0 4 0;
#P connect 13 0 12 0;
#P connect 14 0 12 1;
#P connect 12 0 11 0;
#P connect 1 0 2 0;
#P connect 11 0 1 0;
#P connect 11 0 0 0;
#P window clipboard copycount 15;


November 6, 2008 | 9:46 pm

Dear Joshua

>
> Note that jit.repos *requires* 2d coordinates as mentioned in the
> help file and documentation. Just because you are working with a 1D
> input matrix does not mean that it accepts 1D coordinates.

I am so sorry for the lost of bandwidth! It worked with all the
other boudmodes so I never thought it was a ‘requierment’

Thanks again for your help

pa


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