Ok, folks. I figured it out. I'll give you the short answer. Then, if you want, you can keep reading and check out how i troubleshot this...
You have an APC and you want to observe the footswitch activity using the Live API. The control value for footswitch 1 is 61 and the control value for footswitch 2 is 60 (see image).
How I know this (you can stop reading now)...
Ok. So, from what I can tell, foot-switches have no name as they relate to the API. So, the "get control path by name" Live API object won't help you. However, my first step was in generating a list of controls available to me BY NAME
like so (see image).
FYI: The umenu from which your control surface is selected is part of a bpatcher. Open the "M4L.api.SelectControlSurface.maxpat" in a bpatcher to select your control surface. This file is in your "Max 5" folder. The path is probably something like this: max 5 > patches > m4l-patches > LiveAPI resources > M4L.api.SelectControlSurface.maxpat. Also, make sure "click through" is enabled within the bpatcher's inspector, under the "behavior" tab.
That being done, your coll object should be filled. You can double-click it to see your list of controls. You will notice that items 60 and 61 are unrelated to footswitches. They're probably something like: 60, 0_Volume_Control; 61, 0_Arm_Button. This is because the numeric order in which these items have been placed in the coll do not reflect their control value as it relates to a live.path object. In fact, the control value for "0_Arm_Button" (Channel Strip 1's Record Arm Button) is 63. I am also unsure of how to observe any of the APC's faders. Any help on that would be great. Moving on.
In seeing how the numeric location of each CONTROL NAME
within the coll did not match its respective CONTROL VALUE
, I set up a tedious, trial and error patch to observe as many control values as I wanted (see image).
Luckily, I only had to count to 61 to get what I wanted. If this hasn't been completely revealing of how I spent my Saturday afternoon, I hope it's been helpful. Cheers guys.