<?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: coll question</title>
		<atom:link href="http://cycling74.com/forums/topic/coll-question/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/coll-question/feed</link>
		<description></description>
		<pubDate>Tue, 18 Jun 2013 16:38:23 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/coll-question/#post-48778</guid>
					<title><![CDATA[coll question]]></title>
					<link>http://cycling74.com/forums/topic/coll-question/#post-48778</link>
					<pubDate>Thu, 25 Feb 2010 18:17:59 +0000</pubDate>
					<dc:creator>Davide Favargiotti</dc:creator>

					<description>
						<![CDATA[
						<p>hi<br />
is there a simple way to sort data inside a coll object using more than one data position?<br />
ex:<br />
i have this kind of list:<br />
1, A B C D      (where A,B,C,D are numbers)<br />
and i would like to order the data in ascending order first for A, than for B, than C and D. </p>
<p>at the end i would like to have a list ordered like this one:<br />
1, 1 0 41 8<br />
2, 1 0 59 3<br />
3, 1 1 40 7<br />
4, 1 1 57 1<br />
5, 2 0 0 0</p>
<p>i cannot find an easy way to do that, and searching in the forum didn&#8217;t help.</p>
<p>thank you in advance</p>
<p>davide</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/coll-question/#post-175310</guid>
					<title><![CDATA[Re: coll question]]></title>
					<link>http://cycling74.com/forums/topic/coll-question/#post-175310</link>
					<pubDate>Fri, 26 Feb 2010 16:22:16 +0000</pubDate>
					<dc:creator>Davide Favargiotti</dc:creator>

					<description>
						<![CDATA[
						<p>this is the solution i came up:</p>
<p>
<div><span id="toggle175310-0" class="patchtoggle" onmousedown="toggleMaxPatch('post175310-0', 'er175310-0');">&#8211; Pasted Max <span id="maxversion175310-0"></span> Patch, click to <span id="er175310-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----------%0A1422.3oc0ZskbihCE8a7pfhucmBIP7X1.yOyNnqtRI.EGMgGt.4zomt589.R%0ABLxFLBGiMoREaKgPbzQ2W5x82aLrhJ9fTYY9Wle2zv32aLL3c0zggrsgUF9i%0A3TbEeXVYjpJ7Nh0Vw0XjOX79iSI3x1dyOjUbfkRX76AH68khbVE8%2BHM8E9js%0ArWw.Y%2BZOQ.CKKyeHuzdLK9UZ9tmKIwLwUA.656zLf%2BoC7IzVS.5I6taglvQS%0AQz%2B9sPeqdO3bbF%2BAX8OGhoIXy%2BtDmmP5AXZdKdgM88mMaZ9XqlzRN4m0OyyX%0AElYjYzvrBbdrRDNem0V42ZvP.TeJxeDJBckTD31QQ6MiKRSetpnjs7hO9BtQ%0AH9f73MFgaBtVwGm9OdRojQjTR8rQSIuSJqnE48VcFVGAYfayxyDB4nDFBZ9x%0A0tGNqo5coEwuQ3v0tsyDxKyaVJ1SxOdG7Ap7g5Ho46KIUjbFlIAe%2BmL9PJ64%0AA2iTu7K3Xxn26EoYCqckzjh7FrnLCMc29TqU.D6wJvmOhb79AtYVQQZDt7cZ%0AEMJknrkTKOiyoYXFgQE3BZ2cezr8kzblxbQxw0ywqUwk0hzJSk3JuOvURHuS%0AiI%2BjlvdkOWGYMEay8DgT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xLqtywpK3dEqyhWWmxTt5cZk4njmUziupf4uziLb4ajQpXZ2YRMC8pNtP4uJ%0ApjIYt3Go7Wct1JCddZOm71LTD83vRM%2BsBR%2BTiPRp%2B7HoTroLhgGEKtmayYXu%0AbmIGnKjb5Gx1XINwWYP2CHYqCjturjyDPJDcWgTHRictvYRS.46cz24ITXXn%0AuWicqw5xC8jussM.17Z04N8554Vr1zRD.d236Sj3tI5t9hPEB4AGfDgHnz.v%0AccHGFnKPgqmXWfEgbuGX62Cq19mf05F%2BYy%2BiEdt4.%0A-----------end_max5_patcher-----------&#038;copied=copied!&#038;;copyto=copy to clipboard"  bgcolor="#ffffff"  wmode="opaque" /> </object></div>
<div id="post175310-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="pastedcode175310-0">----------begin_max5_patcher----------
1422.3oc0ZskbihCE8a7pfhucmBIP7X1.yOyNnqtRI.EGMgGt.4zomt589.R
BLxFLBGiMoREaKgPbzQ2W5x82aLrhJ9fTYY9Wle2zv32aLL3c0zggrsgUF9i
3TbEeXVYjpJ7Nh0Vw0XjOX79iSI3x1dyOjUbfkRX76AH68khbVE8+HM8E9js
rWw.Y+ZOQ.CKKyeHuzdLK9UZ9tmKIwLwUA.656zLf+oC7IzVS.5I6taglvQS
Qz+9sPeqdO3bbF+AX8OGhoIXy+tDmmP5AXZdKdgM88mMaZ9XqlzRN4m0OyyX
ElYjYzvrBbdrRDNem0V42ZvP.TeJxeDJBckTD31QQ6MiKRSetpnjs7hO9BtQ
H9f73MFgaBtVwGm9OdRojQjTR8rQSIuSJqnE48VcFVGAYfayxyDB4nDFBZ9x
0tGNqo5coEwuQ3v0tsyDxKyaVJ1SxOdG7Ap7g5Ho46KIUjbFlIAe+mL9PJ64
A2iTu7K3Xxn26EoYCqckzjh7FrnLCMc29TqU.D6wJvmOhb79AtYVQQZDt7cZ
EMJknr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Byvlib
xLqtywpK3dEqyhWWmxTt5cZk4njmUziupf4uziLb4ajQpXZ2YRMC8pNtP4uJ
pjIYt3Go7Wct1JCddZOm71LTD83vRM+sBR+TiPRp+7HoTroLhgGEKtmayYXu
bmIGnKjb5Gx1XINwWYP2CHYqCjturjyDPJDcWgTHRictvYRS.46cz24ITXXn
uWicqw5xC8jussM.17Z04N8554Vr1zRD.d236Sj3tI5t9hPEB4AGfDgHnz.v
ccHGFnKPgqmXWfEgbuGX62Cq19mf05F+Yy+iEdt4.
-----------end_max5_patcher-----------</code></pre></div>
</div>
</p><p>the list of number are converted to symbol and then a second coll object sort these symbol; then everything is converted back to list of number and substituted in the original coll.<br />
any better ideas??<br />
thank you<br />
davide</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/coll-question/#post-175311</guid>
					<title><![CDATA[Re: coll question]]></title>
					<link>http://cycling74.com/forums/topic/coll-question/#post-175311</link>
					<pubDate>Sat, 27 Feb 2010 12:50:36 +0000</pubDate>
					<dc:creator>Hans Höglund</dc:creator>

					<description>
						<![CDATA[
						<p>If the sort algorithm used in <code>coll</code> had been stable <code>sort 4, sort 3, sort 1</code> etc. would have done it.</p>
<p>It would be nice if a <code>stablesort</code> message could be added to future versions.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/coll-question/#post-175312</guid>
					<title><![CDATA[Re: coll question]]></title>
					<link>http://cycling74.com/forums/topic/coll-question/#post-175312</link>
					<pubDate>Wed, 12 May 2010 15:14:04 +0000</pubDate>
					<dc:creator>Davide Favargiotti</dc:creator>

					<description>
						<![CDATA[
						<p>hi. back to work on this patch after some weeks, and found out that my solution posted above is not working properly.<br />
2 is sorted after 12, not before (max see it as a symbol and so 2 is &#8220;bigger&#8221; the 1 in 12).<br />
any ideas?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/coll-question/#post-175313</guid>
					<title><![CDATA[Re: coll question]]></title>
					<link>http://cycling74.com/forums/topic/coll-question/#post-175313</link>
					<pubDate>Wed, 12 May 2010 15:59:31 +0000</pubDate>
					<dc:creator>Bas van der Graaff</dc:creator>

					<description>
						<![CDATA[
						<p>Hans, do you have experience with the sort message crashing Max or not working properly? Then i&#8217;d like to find out more about that&#8230;I do use &#8216;sort -1 -1&#8242; occasionally. Generally not in a metro or loop, but I&#8217;d like to know if are any problems with it. I can&#8217;t recall ever having problems with coll, except for the obviously not working linkedlist functionality of the thing. Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/coll-question/#post-175314</guid>
					<title><![CDATA[Re: coll question]]></title>
					<link>http://cycling74.com/forums/topic/coll-question/#post-175314</link>
					<pubDate>Wed, 12 May 2010 16:19:13 +0000</pubDate>
					<dc:creator>andrea agostini</dc:creator>

					<description>
						<![CDATA[
						<p>if instead than [tosymbol] you use something like [sprintf symout %04d %04d %04d %04d] that should do the trick.</p>
<p>but beware:<br />
it only works with integers > -1000 and < 10000 (that is, up to 4 characters). to allow for a greater range, change %04d into %05d or more. If you want to do it with floats, besides changing the other relevant objects in the patch, you should substitute %04d with something like %010.05f</p>
</p><p>moreover, if you use it a real lot it will end up clogging the Max&#8217;s symbol table (poor performance, high memory usage&#8230;)</p>
<p>hope it helps, though<br />
aa</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/coll-question/#post-175315</guid>
					<title><![CDATA[Re: coll question]]></title>
					<link>http://cycling74.com/forums/topic/coll-question/#post-175315</link>
					<pubDate>Wed, 12 May 2010 16:20:36 +0000</pubDate>
					<dc:creator>andrea agostini</dc:creator>

					<description>
						<![CDATA[
						<p>(it was @davide, of course!)</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/coll-question/#post-175316</guid>
					<title><![CDATA[Re: coll question]]></title>
					<link>http://cycling74.com/forums/topic/coll-question/#post-175316</link>
					<pubDate>Wed, 12 May 2010 16:25:31 +0000</pubDate>
					<dc:creator>Davide Favargiotti</dc:creator>

					<description>
						<![CDATA[
						<p>thank you andrea, i think that should do the work&#8230; i&#8217;ll try and let you know. i use it only for sort timecode data inside a coll, so it shouldn&#8217;t be to much data (and only 2 characters).<br />
if i clean the &#8220;sorting coll&#8221; at the end of every sorting process, will the max symbol table be cleaned to?<br />
thanks</p>
<p>davide</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/coll-question/#post-175317</guid>
					<title><![CDATA[Re: coll question]]></title>
					<link>http://cycling74.com/forums/topic/coll-question/#post-175317</link>
					<pubDate>Wed, 12 May 2010 17:23:43 +0000</pubDate>
					<dc:creator>andrea agostini</dc:creator>

					<description>
						<![CDATA[
						<p>no, there is no way to clean up the symbol table. every new symbol you create stays there until you quit Max.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/coll-question/#post-175318</guid>
					<title><![CDATA[Re: coll question]]></title>
					<link>http://cycling74.com/forums/topic/coll-question/#post-175318</link>
					<pubDate>Wed, 12 May 2010 22:25:32 +0000</pubDate>
					<dc:creator>Davide Favargiotti</dc:creator>

					<description>
						<![CDATA[
						<p>mmm&#8230; how does this symbol table things work? every new symbol will eat some memory, or only symbol that doesn&#8217;t exist before: ie &#8220;5&#8243; count only one, even if I convert the integer to symbol every second (but it&#8217;s always &#8220;5&#8243;) or every time I ask a conversion into symbol max will eat some resources?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/coll-question/#post-175319</guid>
					<title><![CDATA[Re: coll question]]></title>
					<link>http://cycling74.com/forums/topic/coll-question/#post-175319</link>
					<pubDate>Thu, 13 May 2010 08:31:54 +0000</pubDate>
					<dc:creator>Bas van der Graaff</dc:creator>

					<description>
						<![CDATA[
						<p>What you said first&#8230;if you convert the same thing to symbol every second it will use the same symbol from the symbol table (that is, the pointer to the same string). This speeds things up quite a lot, since you&#8217;re generally using the same strings a lot.</p>
<p>But that&#8217;s also why converting lists from a coll to string every frame will start to take up a lot of memory, because they will generally be different every time.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

