<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: How to get track number from inside the track.</title>
		<atom:link href="http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/feed</link>
		<description></description>
		<pubDate>Tue, 18 Jun 2013 15:40:07 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/#post-57039</guid>
					<title><![CDATA[How to get track number from inside the track.]]></title>
					<link>http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/#post-57039</link>
					<pubDate>Tue, 10 May 2011 15:23:45 +0000</pubDate>
					<dc:creator>Polynomial_B</dc:creator>

					<description>
						<![CDATA[
						<p>I have many tracks with the same max4live device in them. I need to know for each device the id of the proper track. Each device must send the number of his track to a message &#8220;path live_set tracks $1&#8243;. Does exist a message witch give the number of the track where it belong? For example: can I ask to live.path something like &#8220;this track?&#8221; and receive back the track number?<br />
I need it to build a device that can be placed in every tracks but it must knows the number of its track.<br />
Could anybody help me?<br />
thx in advance..</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/#post-204409</guid>
					<title><![CDATA[Re: How to get track number from inside the track.]]></title>
					<link>http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/#post-204409</link>
					<pubDate>Tue, 10 May 2011 17:16:23 +0000</pubDate>
					<dc:creator>Ben Bracken</dc:creator>

					<description>
						<![CDATA[
						<p>You can use &#8216;path this_device&#8217; to figure out the track that the device is on.  Here is one way to do it:</p>
<div><span id="toggle204409-0" class="patchtoggle" onmousedown="toggleMaxPatch('post204409-0', 'er204409-0');">&#8211; Pasted Max <span id="maxversion204409-0"></span> Patch, click to <span id="er204409-0">expand</span>. &#8211;</span> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  width="110" height="14" class="clippy" ><param name="allowScriptAccess" value="always" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param NAME="FlashVars" value="copied=copied!&#038;copyto=copy to clipboard"/><param name="bgcolor" value="#FFFFFF"/><param name="wmode" value="opaque"/><embed src="/wp-content/plugins/bbpress-copy-compressed/clippy.swf"  width="110" height="14"   name="clippy"  quality="high"  allowScriptAccess="always"  type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer"  FlashVars="text=----------begin_max5_patcher----------%0A647.3ocyVFsjZBCEF9Z7oHCWiNjfnXuoS6c8InWryNLQHUSKDbHAqs6ru6Mb%0AB5xtJZDXb5EDkS.x%2B4K%2B4j7xDG20EGXRWzmPOgbbdYhiCDpNfSy8Nt4zCIYT%0AI7XtB1uKV%2BSWOSWJ1AEDVhlNcpZKWFqJoI%2B5X%2B%2BnPnDzbF7LeojSyPesHKsc%0A2R9egtw9yvMgEU4bQFSAiXqfEUpiQ8ahtipR1xEahKYIJSdP7il46gHgKp%2BY%0AIbCV2hdt4c3ofbzowTbnacrWmLotwyRFjTjmyDpyfv22RUHH%2BQzbz2PEhO2O%0APbJ6JYR8.QU7BQ6LDC4DAZ8WbVBNP9Y.GInyueaY0dHZA1k8gqc3sTnMLkVn%0AaQYVhSShp9yNlIkbc8zWmze%2Bscjtw1xU.mlC3ZQ30bcqBGQ5TI1Ua3L7gumE%0AKYMlPIhOHd0bw0N8Q.cyuE5H9yAnE5eU1EMhrKqfltlJ1zWLAu6HvF7UXCT%2B%0AZIvjvEWkLq5EYpxWyJ6K.p8FdVxgNJlgIlJzvj%2BEl6G1pxiaFXJlcgOuE0xv%0A9jwzyoWiNS2QsD66py6xxQtaKmoRVj%2Bsqjg8CNpRIcOKM1jXwTkpjutRYNag%0AyIB43FuiUJ4RESj.p1GhCn8dAbNSJoaXmQXnTHbVjT1ddB6%2BZLuJ.ZM6nunK%0AJOerMf0LZvaNLBU9BtoMjXV4hutM7c6nBOhNOEe7nsvnTG%2B8TSVTUlbL6Z1j%0AwCEbZjRYREWbpDwSuUVvC8ld1xSSYh1GtJmmtqPWhrQEnmu3jnshp1Ezd75R%0AUgOTUo20wFQM%2B9DUzxYgdnHn1sts4%2BCFfgVn0UOX9EZE%2BBd7hBaknvOP%2BefM%0ASeQO3EkDal%2BFhmReyqS9Gb8%2BkFA%0A-----------end_max5_patcher-----------&#038;copied=copied!&#038;;copyto=copy to clipboard"  bgcolor="#ffffff"  wmode="opaque" /> </object></div>
<div id="post204409-0" style="display:none;visibility:hidden;" >
<div class="patchtoggleInfo"><small>Copy <b>all</b> of the following text.Then, in Max, select <em>New From Clipboard</em>.</small></div>
<div class="patchtogglediv">
<pre><code id="pastedcode204409-0">----------begin_max5_patcher----------
647.3ocyVFsjZBCEF9Z7oHCWiNjfnXuoS6c8InWryNLQHUSKDbHAqs6ru6Mb
B5xtJZDXb5EDkS.x+4K+4j7xDG20EGXRWzmPOgbbdYhiCDpNfSy8Nt4zCIYT
I7XtB1uKV+SWOSWJ1AEDVhlNcpZKWFqJoI+5X++nPnDzbF7LeojSyPesHKsc
2R9egtw9yvMgEU4bQFSAiXqfEUpiQ8ahtipR1xEahKYIJSdP7il46gHgKp+Y
IbCV2hdt4c3ofbzowTbnacrWmLotwyRFjTjmyDpyfv22RUHH+Qzbz2PEhO2O
PbJ6JYR8.QU7BQ6LDC4DAZ8WbVBNP9Y.GInyueaY0dHZA1k8gqc3sTnMLkVn
aQYVhSShp9yNlIkbc8zWmze+scjtw1xU.mlC3ZQ30bcqBGQ5TI1Ua3L7gumE
KYMlPIhOHd0bw0N8Q.cyuE5H9yAnE5eU1EMhrKqfltlJ1zWLAu6HvF7UXCT+
ZIvjvEWkLq5EYpxWyJ6K.p8FdVxgNJlgIlJzvj+El6G1pxiaFXJlcgOuE0xv
9jwzyoWiNS2QsD66py6xxQtaKmoRVj+sqjg8CNpRIcOKM1jXwTkpjutRYNag
yIB43FuiUJ4RESj.p1GhCn8dAbNSJoaXmQXnTHbVjT1ddB6+ZLuJ.ZM6nunK
JOerMf0LZvaNLBU9BtoMjXV4hutM7c6nBOhNOEe7nsvnTG+8TSVTUlbL6Z1j
wCEbZjRYREWbpDwSuUVvC8ld1xSSYh1GtJmmtqPWhrQEnmu3jnshp1Ezd75R
UgOTUo20wFQM+9DUzxYgdnHn1sts4+CFfgVn0UOX9EZE+Bd7hBaknvOP+efM
SeQO3EkDal+FhmReyqS9Gb8+kFA
-----------end_max5_patcher-----------</code></pre></div>
</div>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/#post-204410</guid>
					<title><![CDATA[Re: How to get track number from inside the track.]]></title>
					<link>http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/#post-204410</link>
					<pubDate>Tue, 10 May 2011 18:11:25 +0000</pubDate>
					<dc:creator>Spip</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks a lot ! I was looking for the same thing…</p>
<p>Is there a place where we can find all the attributes, messages and other needed informations for the API objects ?<br />
A sort of thesaurus or are the LOM reference page and M4L tutorials the only ones ?<br />
For example, in another thread, I was asking something related to midi channel of a live track. The secret (thanks to broc for the answer) was the &#8220;Ch.&#8221; to put in the message box. I can&#8217;t find it in the two pages mentioned above.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/#post-204411</guid>
					<title><![CDATA[Re: How to get track number from inside the track.]]></title>
					<link>http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/#post-204411</link>
					<pubDate>Tue, 10 May 2011 18:33:47 +0000</pubDate>
					<dc:creator>Ben Bracken</dc:creator>

					<description>
						<![CDATA[
						<p>Everything should be in either the LOM ref or the individual object ref entries.  In Max, just go to Help->Max For Live.  You can get to all the objects under Reference->Objects A-Z. </p>
<p>Let us know if you aren&#8217;t finding what you are looking for.</p>
<p>-Ben</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/#post-204412</guid>
					<title><![CDATA[Re: How to get track number from inside the track.]]></title>
					<link>http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/#post-204412</link>
					<pubDate>Tue, 10 May 2011 19:38:31 +0000</pubDate>
					<dc:creator>Spip</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks for your answer. </p>
<p>Here is what I can not find : the upper part of the patch. How is it possible to know that &#8220;prepend Ch.&#8221; was needed. (particularly Ch.)</p>
<p> [attachment=161939,2233]</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/#post-204413</guid>
					<title><![CDATA[Re: How to get track number from inside the track.]]></title>
					<link>http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/#post-204413</link>
					<pubDate>Tue, 10 May 2011 20:18:12 +0000</pubDate>
					<dc:creator>Ben Bracken</dc:creator>

					<description>
						<![CDATA[
						<p>This will just depend on what the available routings are.  I believe that &#8220;Ch.&#8221; convention is used for midi channel input/output, as it appears in the channel strip.</p>
<p>-Ben</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/#post-204414</guid>
					<title><![CDATA[Re: How to get track number from inside the track.]]></title>
					<link>http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/#post-204414</link>
					<pubDate>Wed, 11 May 2011 00:30:06 +0000</pubDate>
					<dc:creator>Polynomial_B</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks you very much. I&#8217;m not lucky today: live.object: get path: error calculating the path. This is the error that the live.object in your patch gives to me and I can&#8217;t understand the why.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/#post-204415</guid>
					<title><![CDATA[Re: How to get track number from inside the track.]]></title>
					<link>http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/#post-204415</link>
					<pubDate>Wed, 11 May 2011 00:38:19 +0000</pubDate>
					<dc:creator>Polynomial_B</dc:creator>

					<description>
						<![CDATA[
						<p>The problem was that my device was inside a drum rack. If I put it outside it works.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/#post-204416</guid>
					<title><![CDATA[Re: How to get track number from inside the track.]]></title>
					<link>http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/#post-204416</link>
					<pubDate>Wed, 11 May 2011 15:11:55 +0000</pubDate>
					<dc:creator>ShelLuser</dc:creator>

					<description>
						<![CDATA[
						<p>The easiest solution for your problem is the &#8220;this_device&#8221; root object (as mentioned above) but in comparison with the &#8220;canonical_parent&#8221; path. This child will always point to the previous (parent) class in the hierarchy.</p>
<p>So when looking at the <a href="http://cycling74.com/docs/max5/refpages/m4l-ref/m4l_live_object_model.html">LOM</a> you&#8217;ll notice that the parent of a device is a track.</p>
<p>As such simply use: &#8220;path this_device canonical_parent&#8221; which will point at the track the device is on.</p>
<p>As you noticed yourself things change when you&#8217;re inside a rack; that&#8217;s because the physical location of the device is now no longer the track, but instead a Chain within the rack.</p>
<p>To get out of a chain you could use: &#8220;path this_device canonical_parent canonical_parent canonical_parent&#8221;. You actually need 3 &#8220;hops&#8221;: one to go to the Chain class, one to go to the Device class (the Rack device itself) and finally one to go to the Track class.</p>
<p>To answer your other question&#8230; Stuff like &#8220;canonical_parent&#8221; is explained in the <a href="http://cycling74.com/docs/max5/refpages/m4l-ref/m4l_live_api_overview.html">Live API overview</a>.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/#post-204417</guid>
					<title><![CDATA[Re: How to get track number from inside the track.]]></title>
					<link>http://cycling74.com/forums/topic/how-to-get-track-number-from-inside-the-track/#post-204417</link>
					<pubDate>Fri, 21 Dec 2012 12:43:26 +0000</pubDate>
					<dc:creator>4trax</dc:creator>

					<description>
						<![CDATA[
						<p>Great thanks for this &#8211; I am working on a similar problem.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

