question: LineFO 1.11 from maxforlive.com

marlon brando's icon

Hi,

How is the device and parameter names written into umenu in this lfo ?

S4racen's icon

apend is the call for putting things into a umenu, you need to navigate to them using the live object model....

my patch on the same site (COntrol Surface Master 8x8) uses this to populate a umenu that's inside the patch so that i can then select the parameter i want using a live tab.....

Cheers
D

Olivier Sebillotte's icon

By the way S4racen, did you find a way to save the selected item made in umenu inside preset ?
As it takes some time to populate the umenu, I can't use pattr directly because it sends the value before the umenu is ready.
I couldn't find a place to insert a delay between umenu and pattr, it is an invisble link.

thanks

Olivier

steff3's icon

Well, one way to save the selections would be to save them in another module (maybe a js) and send them to the umenu when it is ready. (do not know if you can save them in an int/i-module which you bang when the menus are setup).

At the moment I think I deactivate the umenu after reload and just save the path to the selected device or param, but still then - I have problems here with Live crashing when I try to set up the API path directly after pattrstorage restores the saved values (js) and even at the time of the loadbang I do not get LiveAPI access (at least it seems like that, as I do get no output. If I call the loadbang function in the js manually, all is fine).

Anyone else experiencing that?

Thanks

best

t3mpuser's icon

That's my device (I own maxforlive.com and post there as synnack).

I am using 2 bpatchers. One just loads M4L.api.SelectParameter.maxpat which comes with maxforlive and automatically populates the umenu with all possible parameters for the selected device.

JuanSOLO's icon

Is there a way to automatically load the "select device" and "select parameter" menus. I want to modify it to load the same device and parameter each time without having to use the drop down menus.

I'm totally new to Max via M4L, any points in the right direction would be greatly appreciated.

t3mpuser's icon

you could attempt to replace those umenu objects with live.menu objects. That way you could save your selected devices and parameters as live presets in the browser which should get saved with your set.

Maybe I'll mess with that for you.

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

couldn't you just do it with "M4L.api.SaveInteger"? that would only work in continuously same live set though i guess... hm, a problem. try finding "symbol" of all devices and query that way? by the way, live.menu is useless - you cannot fill it with etc like you can the max umenu object. real shame.