Keep getting lost with the LOM
Posted: Sat Jan 09, 2010 7:56 pm
I feel like I keep going around in circles while following the LOM documentation.
For a project I am trying to implement the following:
Whenever I play a clip by clicking on it in Live, its color gets changed after it finishes playing.
I think one thing I am confused by is the fact that there are several different ways to get to the same path location. In this example I am using path live_set view selected_track and then using the middle outlet of live.path so that it follows wherever I am in the live set. This path gets me to a specific track (but without using the canonical path). Now that I am at a track I can access track properties and call track functions.
So now I am at a track and a live.observer is feeding me clip slot numbers of fired tracks. I then want to use this info to get the object id of any clip in that slot so that I can set its color. This is where I am stuck.
I think I am not getting relative paths... e.g. I am now at a specific track (although I do not know the track number) how do I now navigate from this path start point (i.e. a track id) and then go to a clip_slot and then clip so that I can change its color?
Here is my starting point:
<pre><code>
----------begin_max5_patcher----------
419.3ocyUFrbBBCDF9L7TjgypSBHJ1asuFcbXPXUSKjvjDUrN9tWR.r0VrR0
VGuPl7ua1r4K7C6rsblwK.oC5AzyHKqc1VVFIsfU8bKmrnh3zHoIMmLPJiV.
N8phofBkQuOoQhlXD3ydoOg31nNmyTrnLvD6QAMJE8DOMoILaUFkkBJyl39g
HekpQk7oJIouYpDAO.WKWkoZaNTcbbbPSqCkGohWRYKBEPrpJ5P7nxUhbCzE
.4adRJkPS0KYuss9QuNxDFro7z9MjjRWCC3yjfXMHZiNX++N539aoSuyPHu.
eCg7LCicMDJ3efPk68xVoC9RnCoU53cIz4bDZHoBJUC9jqhPmxWooCRyoPIn
PqovFjDRK6AHITIhhesEzMYxcpqyarw046UY2BtJW2IIlfmCB0VzbpnDRxTt
JjxRfhVeIaz8JppseXy.wizJqLUnzFw95GwMUTqeL.k7Uh3l8+..P3CcRBHU
TVjhxYGkk+QYsjlj.lDZNbYzjbNkopaiSbg18txuKck9uKHxMqqz1pNfJ7MF
U3ifvOcAdonpbxd62MXLnGF
-----------end_max5_patcher-----------
</code></pre>
For a project I am trying to implement the following:
Whenever I play a clip by clicking on it in Live, its color gets changed after it finishes playing.
I think one thing I am confused by is the fact that there are several different ways to get to the same path location. In this example I am using path live_set view selected_track and then using the middle outlet of live.path so that it follows wherever I am in the live set. This path gets me to a specific track (but without using the canonical path). Now that I am at a track I can access track properties and call track functions.
So now I am at a track and a live.observer is feeding me clip slot numbers of fired tracks. I then want to use this info to get the object id of any clip in that slot so that I can set its color. This is where I am stuck.
I think I am not getting relative paths... e.g. I am now at a specific track (although I do not know the track number) how do I now navigate from this path start point (i.e. a track id) and then go to a clip_slot and then clip so that I can change its color?
Here is my starting point:
<pre><code>
----------begin_max5_patcher----------
419.3ocyUFrbBBCDF9L7TjgypSBHJ1asuFcbXPXUSKjvjDUrN9tWR.r0VrR0
VGuPl7ua1r4K7C6rsblwK.oC5AzyHKqc1VVFIsfU8bKmrnh3zHoIMmLPJiV.
N8phofBkQuOoQhlXD3ydoOg31nNmyTrnLvD6QAMJE8DOMoILaUFkkBJyl39g
HekpQk7oJIouYpDAO.WKWkoZaNTcbbbPSqCkGohWRYKBEPrpJ5P7nxUhbCzE
.4adRJkPS0KYuss9QuNxDFro7z9MjjRWCC3yjfXMHZiNX++N539aoSuyPHu.
eCg7LCicMDJ3efPk68xVoC9RnCoU53cIz4bDZHoBJUC9jqhPmxWooCRyoPIn
PqovFjDRK6AHITIhhesEzMYxcpqyarw046UY2BtJW2IIlfmCB0VzbpnDRxTt
JjxRfhVeIaz8JppseXy.wizJqLUnzFw95GwMUTqeL.k7Uh3l8+..P3CcRBHU
TVjhxYGkk+QYsjlj.lDZNbYzjbNkopaiSbg18txuKck9uKHxMqqz1pNfJ7MF
U3ifvOcAdonpbxd62MXLnGF
-----------end_max5_patcher-----------
</code></pre>