jit.pwindow: doesn't understand "float"

Omer Haber's icon

Hi,

Please see attached photo and patch.

I've created a subpatch connected to jit.pwindow.

My aim is for the pwindow to appear in the correct location as well as the right dimensions, when loading different movies into the patch that feed into those pwindows...

I get a error - jit.pwindow: doesn't understand "float"

Thanks!

Max Patch
Copy patch and select New From Clipboard in Max.

Source Audio's icon

that looks very simple :

it does not want floats, don't send floats to it.

if you can't force whatever you use to generate ints

instead of floats, then use expr to convert to int.

or vexpr in case of lists.

what to use would depend on rounding that you prefer.

see expr help file to pick

int, round, floor ...

Rivanni's icon

The outcomes of round, floor, and ceil are floats, not ints, as the image suggests, and still need to be converted to integers.

However, floats are not the problem here. The message sent is missing an attribute.

Source Audio's icon

what needs to be converted again to ints ?

it is about snapping to integer part one or the other way ...

Rob Ramirez's icon

likely you just need prepend patching_rect after the pattr object.

Nodanoma's icon

jit.pwindow doesn't understand float, yet, it doesn't udnerstand int either. It needs to interpret those numbers; as Rob said, likely its patching_rect or presentation_rect as messagename is required.


Roman Thilenius's icon

it understands floats, but not messages of datatype float. :)
like most non-math objects do...

Rivanni's icon

what needs to be converted again to ints ?

it is about snapping to integer part one or the other way ..."

Exactly. That's what I wrote. The outcomes of round, floor, and ceil are floats and need to be converted to int. Something you show in your last example with vexpr, but not in the first one I responded to.

Wil's icon

Haha. I just like making demo vids!

Who said jit.pwindow doesn't understand floats?

Probably what Rob or Roman or Source Audio or Nodanoma or Ravinni said is correct--

Untitled.mp4


No errors float.

Omer Haber's icon

Thank you all for your answer.

Prepend patching rect solved it!

<3