[function] not aligning with [jit.pwindow]'s contents?

Nov 3, 2011 at 10:06pm

[function] not aligning with [jit.pwindow]'s contents?

Hi everyone,

I am sure I am missing something indecently simple here.

I am aligning a [function] with a [jit.pwindow] in order to see whether my pattern detection patcher works, and in order to use [function] to manually correct the results after the fact. The [jit.pwindow] gets a 2000×10 matrix.

Now, here is the weird thing. What [function] is showing me seems to be kind of correct, but the line seems to be compressed. I checked by looking at the coordinates of the breakpoints and coloring the corresponding cell in jit.matrix with a setcell message; at the beginning of the image (left side) the colored cell appears _before_ the breakpoint, while near the end it appears _after_ the breakpoint.

I have attached a screenshot for a better understanding – sorry the red cell is so badly visible.

I am SURE that I am missing something essential here – but what is it? :)

[attachment=175160,2821]

Attachments:
  1. whatthehell.jpg
#59781
Nov 3, 2011 at 10:57pm

Please post a demo patch. It’s hard to tell just from the image what might be going wrong.
thanks!

#215157
Nov 4, 2011 at 12:28am

I’m sorry! I have built a small example patch now that mirrors the problem I am running into:

– Pasted Max Patch, click to expand. –
#215158
Nov 4, 2011 at 12:38am

Argh. I figured it out. Seems like [function] has a “frame” by default, which can easily be seen when you prepend “0 y” to the lists in the upper message. So now I guess my question would be whether this can be changed – else I would just guess it’s 5 pixels (seems so) and adjust the rectangle… Sorry about the noise. :)

#215159

You must be logged in to reply to this topic.