Forums > Max For Live

M4L.api Device abstractions

August 11, 2012 | 5:49 am

Hi. I want to select a device parameter and then set its values (using M4L.api.DeviceParameter). It appears that I should be using the abstractions M4L.api.SelectDevice and M4L.api.SelectParameter. However, these should be put in a bpatcher and I’m having trouble seeing how to make this work. Can someone show me how to create a menu of devices and parameters so I can use the menu output to set device parameter values please? Thanks, David.


August 11, 2012 | 12:52 pm

More exactly, Can someone show me how to create a menu of devices and parameters so I can use the menu output to set the path for a M4L.api.DeviceParameter? Is there an example patch that shows how to do this? I find it quite hard to navigate the M4L help system so I might have missed this. David


August 11, 2012 | 1:40 pm

If I get what you want, all the API devices use this menu system to map a controller to a parameter in your set. You should have a look at them.



August 11, 2012 | 10:47 pm

Thanks for your replies, but I mustn’t have made myself sufficiently clear. I knew that the abstractions provided a way to access devices and parameters through menus, but I had difficulty seeing how to use these. The bpatcher tutorial said that you embed gui abstractions in a bpatcher but it didn’t explain exactly how to do this. After some thrashing about I found that you have to select"Embed patcher in parent" in the bpatcher inspector in order to make the gui element visible. This allowed me to use the abstractions to access devices and device parameters via menus. I have copied this below in case someone else has the same problem. David

– Pasted Max Patch, click to expand. –

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