Float values to control live elements

Tyler McIntosh's icon

Hi guys, I've just started with Max for Live and I'm having some teething problems. I want to have a float value in my max patch control the gain or volume of an instrument channel outside of max. So, for example, I can have a piano instrument in Live controlled by an independent float value generated by my Max patch. All I've found on this so far is how to in and output audio signals - nothing for independent channel or instrument control. Am I missing something or is this a simple thing to do?

Many thanks,
Tyler

Tyler McIntosh's icon

Note: I am using a Max for Live console from the Live "Max for Live" dropdown

vichug's icon

look at the docs, chapter live api and live object model (lom). basically you have to use a specific syntax and set of objects, to communicate from within m4l into Live interface elements. What you are trying to do here isnt very complex once you understood the basis of how it all works, but you do have to take the time to understand that basis first :)

vichug's icon

Also there are a lot of abstractions inside Max already to acomplish various tasks, the name begins with « M4L. ». In your case you will need to find the id sof devices present in your current track then find the accessible elements inside the right device, then find their ids, then send value to that id.