Forums > Jitter

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

November 3, 2011 | 10:06 pm

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

November 3, 2011 | 10:57 pm

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


November 4, 2011 | 12:28 am

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. –

November 4, 2011 | 12:38 am

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. :)


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