Floating Window?

JuanSOLO's icon

How do you make a floating window with thing you'd like to see from the presentation?

Can it be done so it's always above Ableton, so if I click on Ableton the window will stay on top?

David Butler's icon
Max Patch
Copy patch and select New From Clipboard in Max.

You need the 'thispatcher' object. Here's an example. Remember if you make changes to a window to always leave yourself a button in edit view that will make the window normal again.

JuanSOLO's icon

THANKS!

I'm not real clear on how the thispatcher works. I have been reading about it but I am still unsure. I pasted the patch you provided into my patch, it does not open my presentation view. Do I need to put what I want in the floating window, some place specific? Should I connect the this patcher to something?

pid's icon
Max Patch
Copy patch and select New From Clipboard in Max.

[thispatcher] must reside in the window you want to affect. the logic can reside anywhere.

the thispatcher help file is... helpful.

amounra's icon

That's all well and good, but we need a way to do this in a fashion that is comparable to the way that AU's and VST's work. i.e., when the Live track with the plugin is selected, it floats; when it isn't, it disappears. I was able to do this with pluggo....why not m4l?

pid's icon

hi amounra,

do you mean something like this?

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

(copy and paste into an empty maxforlive audio effect template; save; close; use):

caveats: 1-- i did this pretty quickly, it might not be the best - you could certainly make it tidier / more efficient. 2-- fair enough, i would not use this myself - dynamically changing windows etc whilst the live transport is running is remarkably unreliable at times.

hope that helps,
.

amounra's icon

caveats: 1-- i did this pretty quickly, it might not be the best - you could certainly make it tidier / more efficient

looks pretty nice, actually.

2-- fair enough, i would not use this myself - dynamically changing windows etc whilst the live transport is running is remarkably unreliable at times.

yeah, same here. I have enough problems just clicking on m4l patches and waiting for their native window to show up in the GUI. I tend to use floating windows for stuff I need to see a lot just so I don't have to deal with the delay when I want to look at something.

The patch you posted is a very nice workaround to something that should be natively handled by m4l without all the trouble. Thanks for sharing :)

KrisW's icon

hello guys !

is there a way to make "main device" floating outside ableton ?

KrisW's icon

i still did not found anything :/ anyone has some ideas ?

double_UG's icon

put the main patcher in a bpatcher, and make the bpatcher float

KrisW's icon

Hi UG ... are you sure ? i cant make it to work with thispatcher nor with pcontrol :/

double_UG's icon
Max Patch
Copy patch and select New From Clipboard in Max.

works here

KrisW's icon

it works in your M4L device UG ?

4536.UntitledDevice6.amxd
amxd
double_UG's icon

it opens the same window in the middle of the screen. It doesnt stay on top, when i click on Live.
so your right, "Windows flags float" seems not to work

KrisW's icon

i would be happy if it could open the window in the middle :D i cant see anything actually . i can live without float ,but i cant see any window .
is that possible ? am i doing something wrong ? did you checked my attachment if it work in your environment ?

double_UG's icon

i checked your patch, when pressing the "show" button the window opens.

KrisW's icon

thanks :(

amounra's icon

Window flags float definitely works in m4l/Max5/Max6....I use it all the time. Maybe there's some specific problem with the patch....or maybe you need to put the bpatcher in another patcher, and float that (sorry, unfortunately I can't look at your patch atm).

a

synnack's icon

I use floating windows all the time as described above and it works great. One question though, how do you make that window "always on top" in Live? As soon as I click somewhere else, my window goes behind Live. Less useful...

11OLSEN's icon

send "topmost 1" / "topmost 0" to thispatcher object to make a window really "always on top". i'm not sure if that works for floating windows..O.

synnack's icon

Hrm. Nope "topmost 1" didn't do anything. Hrm.

11OLSEN's icon

topmost message works for me, with non floating window, win7. window stays on top even while working with other software..O.

amounra's icon

You need to actually make it float. It sounds like you're just opening it, but not setting the float flag. Are you using the "window flags float 1", then "window exec" messages to [thispatcher]?

synnack's icon

Here's what worked.

"window flags nomenu, window flags float, window exec, front, presentation 1"

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

Roman Smirnov's icon

How at the same time to set floating window title to channel name?
I tried to use code from exaples above but could not manage it. Help please.

Venetian's icon

as far as I can tell, even if the window is successfully floated, when some other track in Live is activated, the Max gui for our window is no longer updated, although the patch does run unseen. So the floating window is frozen when other Live activity is taking place.

is there a way to have a permanently active M4L floating window?

Strophe's icon

PID : 6 years after, thanks a lot !! your floatfuck windows made my days, my weeks... exactly what I searched to do since a lot of time... very brillant.

Brodie Matthews's icon

Really hope this is working, would love to be able to edit a dummy adsr while adjusting instruments on separate tracks..plz

I did try a few of the examples without success and also thought about purchasing pro session but isn't quite it.

mothergarage's icon

Here's a snippet I made. Maybe it helps.

You have to move the part you want to float to the "p window" subpatch and edit the window size to the size of your patch.

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

Brodie Matthews's icon

Thanks MOTHERGARAGE, into the arguments section?

mothergarage's icon

No, in the message box with all the window parameters.

james d's icon

Is there a way to call these "window flags nomenu, window flags float, window exec" in javascript? I was trying this:

this.patcher.message('script', 'send', 'window', 'flags', 'nomenu');
this.patcher.message('script', 'send', 'window', 'flags', 'float');
this.patcher.message('script', 'send', 'window', 'exec');
this.patcher.front();

But when I click on the ableton window, the max window is no longer on top.

asms's icon

Bump: I'm also struggling with this question. Any solutions? I have 4 sequencer windows floating, but only the selected track allows its corresponding window to be updated. This defeats the purpose of using floating windows IMO. halp?

"as far as I can tell, even if the window is successfully floated, when some other track in Live is activated, the Max gui for our window is no longer updated, although the patch does run unseen. So the floating window is frozen when other Live activity is taking place.

is there a way to have a permanently active M4L floating window?"

I'm on a Mac, OS Catalina