Increasing Window Size?

Learn about building and using Max for Live devices.
Post Reply
justanametouse
Posts: 109
Joined: Mon Feb 26, 2018 11:54 pm

Increasing Window Size?

Post by justanametouse » Sun Jun 26, 2022 2:15 am

Hi all,

Just wondering if there's a way to increase the pop out window size of a M4L device? Specifically, I have Pulsor 1 & 2 and boy is the window small on my monitor. Would appreciate any insight on if/how I could make this change since I don't know much beyond the basics of Max.

Rivanni
Posts: 409
Joined: Sat Nov 26, 2016 12:30 pm

Re: Increasing Window Size?

Post by Rivanni » Sun Jun 26, 2022 9:54 am

Yes, it's a shame the pop-up windows of Max devices scale according to the zoom level set in Live's preferences. Because of this I cannot use many of the beautiful devices.

Enable resizing won't help you because it would only enlarge the window, not the contents.
Some devices offer a custom zoom option, like the instruments Bengal and Pallas. The increase the window size as well as the size contents. You could like inside these devices to see how the zooming is done.

A great first start to learn manipulating windows is the help of the [thispatcher] object. It contains various sub patchers at the bottom with many examples.

Don't get fooled by the 'window zoom' message because that name is misleading. It only maximizes and restores the window, which has nothing to do with zooming.
'window size' message is another misleading one as the values are actually coordinates (XY top left and XY bottom right) indicating the position on the screen; the size can be calculated though (width=left-right height=bottom-top).

Rivanni
Posts: 409
Joined: Sat Nov 26, 2016 12:30 pm

Re: Increasing Window Size?

Post by Rivanni » Sun Jun 26, 2022 12:37 pm

After some puzzling, I managed to add a zoom function to Pulsor2 using some code from Bengal.
Now I need to find a good way to explain clearly how I did this.

justanametouse
Posts: 109
Joined: Mon Feb 26, 2018 11:54 pm

Re: Increasing Window Size?

Post by justanametouse » Sun Jun 26, 2022 6:04 pm

Rivanni wrote:
Sun Jun 26, 2022 12:37 pm
After some puzzling, I managed to add a zoom function to Pulsor2 using some code from Bengal.
Now I need to find a good way to explain clearly how I did this.

That would be really helpful! Unfortunately, I don't have Bengal or any of the other Max for Cats devices (though I'd like to pick them up!). I'll take a look at the stuff you mentioned in your other post today!

Rivanni
Posts: 409
Joined: Sat Nov 26, 2016 12:30 pm

Re: Increasing Window Size?

Post by Rivanni » Sun Jun 26, 2022 7:33 pm

Here you can download a zip file containing a short explanation with some supporting images. I hope it helps.

chapelier fou
Posts: 6012
Joined: Mon May 15, 2006 12:15 pm

Re: Increasing Window Size?

Post by chapelier fou » Sun Jun 26, 2022 7:47 pm

Rivanni wrote:
Sun Jun 26, 2022 7:33 pm
Here you can download a zip file containing a short explanation with some supporting images. I hope it helps.
Damn, I just had a look, and I just wanted to say how sweet it is from you.
(And by the way, what does wind.scroll do and why isn't it doable from play Max ?)
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1

Rivanni
Posts: 409
Joined: Sat Nov 26, 2016 12:30 pm

Re: Increasing Window Size?

Post by Rivanni » Sun Jun 26, 2022 8:19 pm

Yanks.

'scrollto' scrolls the contents of the window so that x and y are at the top-left corner. In the zoom patch the values 0,0 are used, so most top left.

After a change in zoom level the contents in the window shifts position, similar to what happens when you're zooming in a normal patch. So 'scrollto' repositions everything. Maybe there are other solutions but this is the one I know.

Paste the following in an empty patch and slowly change the value. You'll see that the content moves around. If the patch window is not to big, you'll also see the scrollbars moving.

Code: Select all

<pre><code>
----------begin_max5_patcher----------
458.3ocmT1raiCBEEdsiTdGPzYoqk+Il5z4cXjl0ippH12jRkAr.blzVMu6C
+XZRaSacqWXBGNjC2O.+zxEI3MxCfFitF8GTRxSVkDulSIIJjf4zCs8Ts2Hd
auTLxwoSiY+sbzzCF+nkQYVm2rby8W17r2fQyCCPHRLNEg2PE6vnahdFnl16
Xhc2pfVSvVAoNKOEUVSbM049NkY4GmzVohS8tIQINSv310oUKOqI8XkDUs+A
GyTQ4fAT2BB5ld+pK+jBjIh0WwIpcPKiS6G5osAFV4G6eKW3ZsMoyloB3uVR
8LmLvAewfM2wzdf.pu.vq+XfOKXWUUjUYeJuhTWjWV0PpSQWcFzed7no6iQd
wubg9hJAg+o60E+18FDcAEzMea9wAsltCdK.eTJ4aosFoB8ih2AgEmAgjO.g
y5r550Yk1mhlUUqxKpWWtNE0z7I3q7U.HXC2yDu4RpOZ2.uBKZ4npMtTmt8g
NIuNPaXBpgIEmXhDL897e1wQlSb0mMtopkNLrGT5oYDRxtaeuT45GtI6tcG5
WE5qf8r3TB6mXpxt2XraLiJ+BDefrBOMaYGnDiLuaqhqVcQ6OPIreJvdTMTU
9CdKWXM7eLVfpnI
-----------end_max5_patcher-----------
</code></pre>

I don't know why it cannot be created as an object. All I know is that it is written on top of this page.
https://docs.cycling74.com/max8/vignettes/jswindobj

justanametouse
Posts: 109
Joined: Mon Feb 26, 2018 11:54 pm

Re: Increasing Window Size?

Post by justanametouse » Thu Jul 28, 2022 1:14 am

Rivanni wrote:
Sun Jun 26, 2022 7:33 pm
Here you can download a zip file containing a short explanation with some supporting images. I hope it helps.
I'm insanely late on this, but thank you for the help! Unfortunately, like you mentioned before, it just expands the window size, but not the actual contents (dials, sliders, etc...). Not sure if I missed a step or if that's just the way it is. Either way, a neat little learning experience since I haven't actually toyed with Max for quite some time!

Rivanni
Posts: 409
Joined: Sat Nov 26, 2016 12:30 pm

Re: Increasing Window Size?

Post by Rivanni » Thu Jul 28, 2022 3:42 am

I think you missed the download link to a file with an explanation on how to zoom in on the controls.
If you didn't miss it, you probably missed a step.

Post Reply