glue + repos bugs

Oct 25, 2006 at 2:44pm

glue + repos bugs

Hi, I converted a patch to js, and encountered 2 problems.

1. jit.glue doesn’t seem to work
2. jit.repos “offset_x” seems to be off by 1

The patch works fine, problems occur when converting to js. See the attached
patch to reproduce.

-thijs

#28352
Oct 25, 2006 at 3:52pm

> 1. jit.glue doesn’t seem to work

Use jit.matrix src/dst dim. It’s the way to go in scripting.

> 2. jit.repos “offset_x” seems to be off by 1

Not sure about this one.

wes

#86915
Oct 25, 2006 at 3:57pm

Thanks Wesley, I’ll try it out. That means jit.glue is not supported at all?
Anyways there is patch on the way, but it has to be approved first by the
moderator because it was too big. The off by one error will be obvious in my
patch.

best, -thijs

On 10/25/06, Wesley Smith wrote:
>
> > 1. jit.glue doesn’t seem to work
>
> Use jit.matrix src/dst dim. It’s the way to go in scripting.
>
>
> > 2. jit.repos “offset_x” seems to be off by 1
>
> Not sure about this one.
>
> wes
>

#86916
Oct 25, 2006 at 4:21pm

Seems fine to me.

#P window setfont “Sans Serif” 9.;
#P number 13 124 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P message 13 144 64 196617 offset_x $1;
#P user jit.cellblock 327 214 574 319 3 9 5 5 45 17 0 1 1 0 0 0 1 1 1
0 0 0 255 255 255 0 0 0 0 0 0 191 191 191 0 0 0 215 215 240 1 1 1 0 4
0 0 0;
#P user jit.cellblock 81 214 325 319 3 9 5 5 45 17 0 1 1 0 0 0 1 1 1 0
0 0 255 255 255 0 0 0 0 0 0 191 191 191 0 0 0 215 215 240 1 1 1 0 4 0
0 0;
#P newex 97 101 27 196617 t l b;
#P message 179 126 80 196617 setall 1 1 , bang;
#P button 97 36 15 0;
#P newex 179 145 103 196617 jit.matrix 2 long 5 5;
#P newex 97 79 163 196617 jit.expr @expr “cell[0]” “cell[1]“;
#P newex 97 57 118 196617 jit.matrix 2 float32 5 5;
#P newex 97 168 151 196617 jit.repos @mode 1 @offset_x 1;
#P fasten 6 0 7 0 102 129 86 129;
#P connect 6 0 0 0;
#P fasten 9 0 0 0 18 163 102 163;
#P fasten 0 0 8 0 102 191 332 191;
#P fasten 3 0 0 1 184 165 243 165;
#P connect 10 0 9 0;
#P fasten 6 1 5 0 119 122 184 122;
#P connect 2 0 6 0;
#P connect 5 0 3 0;
#P connect 4 0 1 0;
#P connect 1 0 2 0;
#P window clipboard copycount 11;

wes

On 10/25/06, Thijs Koerselman

wrote:
> Thanks Wesley, I’ll try it out. That means jit.glue is not supported at all?
> Anyways there is patch on the way, but it has to be approved first by the
> moderator because it was too big. The off by one error will be obvious in my
> patch.
>
> best, -thijs
>
>
>
> On 10/25/06, Wesley Smith wrote:
> >
> > > 1. jit.glue doesn’t seem to work
> >
> > Use jit.matrix src/dst dim. It’s the way to go in scripting.
> >
> >
> > > 2. jit.repos “offset_x” seems to be off by 1
> >
> > Not sure about this one.
> >
> > wes
> >
>
>
>
>
>

#86917
Oct 25, 2006 at 6:11pm

On 10/25/06, Wesley Smith wrote:
>
> Seems fine to me.

yes in a regular max patcher it is. My patch just shows a difference of 1
between a regular jit.repos patch and a js instantiated version.

-thijs

#86918
Oct 25, 2006 at 6:20pm

That would be mighty strange because the JS and patcher versions of
all jitter objects use the exact same code ujnder the hood. Do you
have a small JS example?

wes

On 10/25/06, Thijs Koerselman

wrote:
>
> On 10/25/06, Wesley Smith wrote:
> > Seems fine to me.
>
> yes in a regular max patcher it is. My patch just shows a difference of 1
> between a regular jit.repos patch and a js instantiated version.
>
> -thijs
>
>
>
>
>
>

#86919
Oct 25, 2006 at 7:36pm

On 10/25/06, Wesley Smith wrote:
>
> That would be mighty strange because the JS and patcher versions of
> all jitter objects use the exact same code ujnder the hood. Do you
> have a small JS example?

hmm I guess it must be something else then… will cook up an example
tomorrow, maybe the original attachment will arrive before.

best, -thijs

#86920

You must be logged in to reply to this topic.