<?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: Help me with list calculation!</title>
		<atom:link href="http://cycling74.com/forums/topic/help-me-with-list-calculation/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/help-me-with-list-calculation/feed</link>
		<description></description>
		<pubDate>Tue, 18 Jun 2013 20:13:53 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/help-me-with-list-calculation/#post-58282</guid>
					<title><![CDATA[Help me with list calculation!]]></title>
					<link>http://cycling74.com/forums/topic/help-me-with-list-calculation/#post-58282</link>
					<pubDate>Mon, 01 Aug 2011 05:46:52 +0000</pubDate>
					<dc:creator>benj3737</dc:creator>

					<description>
						<![CDATA[
						<p>Hello everyone.<br />
I&#8217;m totally stuck on this one. Can one of you fine scholars help?<br />
Basically, I have a list with a length of 16, consisting of 0s and 1s.<br />
It&#8217;s hard to explain, but for every 1 in the list, I want to replace it with the total of all subsequent 1s, until I hit a 0.<br />
I know that sounds confusing. Here&#8217;s an example:</p>
<p>If I have the list<br />
1 1 1 0 0 1 1 0 1 0 0 0 1 1 1 0 </p>
<p>it would look at the first digit, see that it&#8217;s a 1, then look at the 2nd digit, see that it&#8217;s a 1, then look at the 3rd digit, see that it&#8217;s a 1, then look at the 4th digit, see that it&#8217;s a 0.<br />
Once it finds a 0 it stops looking, totals up the 1s, and replaces the first item it the list with that number.</p>
<p>Then it repeats for each subsequent digit in the list</p>
<p>Sounds ridiculous, right? </p>
<p>The resulting list would be:<br />
3 2 1 0 0 2 1 0 1 0 0 0 3 2 1 0</p>
<p>I&#8217;ve tried for the last couple hours, but I have no idea how to do this. Recursive stuff like this doesn&#8217;t seem to be Max&#8217;s forte.<br />
Any help would be greatly appreciated!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/help-me-with-list-calculation/#post-209375</guid>
					<title><![CDATA[Re: Help me with list calculation!]]></title>
					<link>http://cycling74.com/forums/topic/help-me-with-list-calculation/#post-209375</link>
					<pubDate>Mon, 01 Aug 2011 06:42:11 +0000</pubDate>
					<dc:creator>MIB</dc:creator>

					<description>
						<![CDATA[
						<p>here is one way of doing it. it&#8217;s not very well tested yet, but should get you started into the right direction.</p>
<div><span id="toggle209375-0" class="patchtoggle" onmousedown="toggleMaxPatch('post209375-0', 'er209375-0');">&#8211; Pasted Max <span id="maxversion209375-0"></span> Patch, click to <span id="er209375-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----------%0A905.3oc0XtsbZCCDF9Z3oXGeMsij7AL8t9bzISGgsBnFaIFaQSZxj28pC1gC%0AAC1DPCLL1FKjYW%2BocW8K813QAykuvpCfe.%2BBFM5swiFYaxzvnl6GETReIqfV%0Aa6VPlrrjITASb%2Blh8hx1dE6urpZFnVRUPAu9idHVWxEELk8wwMMthpxVxEK9%0AcEKS4LONY12QS.Rbn4BNFYuj9cD7PyCwysVRN%2BOeKLr8u%2BQoPInkL6O8yJNs%0AXKCKWqZsLZq9Wye01erwFMNTEqV%2BZQUboXGmJw4TQlKnlSvClG58wiMml7EA%0AmfwxAkDlSEKzziAuV.KpjqWA5WTsiTCbAjQsnkUw.p9.WCZJa5LSjCxGseca%0AnWvErL4Zg0DICbjfXGHRwlySSsmi6XXfboFFNCfVxpqoKXeBnHv7AaOZ%2Bff1%0AVwGLtjzMMRcQ.VZfibWR5.Gnghi1QAWSp%2Bsh4LZPvG%2B%2BCKfcl0AIjub3pf8r%0A9U5SvUAy0eJFbxMZpMNxFYEkbrTaxrgBwvtfnIkJXxlqcC0KX9rh9zVUAAZd%0AtM6DUOXlkZGEIoQ8nfHYpmJHNMzUPDe0JHtZsszVottmtrH87lLwAMRHtOrK%0AwSraGm5pvNaMeP6ryYUl4Ev1YOnPk74ghPB1UJA0qvuX%2BfvccpqCBWxxdB3O%0ABbEv0yypm0PV0wzFmNBDSl1G7E40HPLI8pguBo7Ii3DFMaIvJXlNcHEJ8mit%0ATXTejERBuo0iDCQPHP1ROBYSf0NR1HCTjBFYmSMD6FewtYNldXJgm4AYJWNI%0AGs5gGpvMbnqbqS.2wEcfG7zmjNQxDugE8ZtNWn3Vkk6lNgRxcGTLxSQv7AWj%0AIJ0UcgziPk3Kt9TtoNZys2AITgndPon6tXGawWsrI8ZDmdPzDeZzfhsKyI7n%0AnYvKZNpKzzD3zdXt0CfplUXlBavIYgaK93DgO36iEA1cFF2FJcloXXm91niG%0AGgtcSw5RKzlciA2rCMeruLcFRcLb41ppvY8XyY7rnGaerh51a6UsuFl12Ee0%0Ax0UYsVncePzLo0T4rZEWXEzuUmLkYgMutK444Lw15ZK44qj55BMNQGR8GjOQ%0ANkOg7pOMaGqcXWhLy%2BX5T9jYRFO5SgnaONYpxeZNQ7qOQ5iO42zNijy9wIhe%0A8I7sUL9dlqCeZ25pdgSjar3IbeF6h8qOkb6UybugkN7oD%2B5S8oN9dEVGlOou%0A48w%2BGb65sCA%0A-----------end_max5_patcher-----------&#038;copied=copied!&#038;;copyto=copy to clipboard"  bgcolor="#ffffff"  wmode="opaque" /> </object></div>
<div id="post209375-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="pastedcode209375-0">----------begin_max5_patcher----------
905.3oc0XtsbZCCDF9Z3oXGeMsij7AL8t9bzISGgsBnFaIFaQSZxj28pC1gC
AC1DPCLL1FKjYW+ocW8K813QAykuvpCfe.+BFM5swiFYaxzvnl6GETReIqfV
a6VPlrrjITASb+lh8hx1dE6urpZFnVRUPAu9idHVWxEELk8wwMMthpxVxEK9
cEKS4LONY12QS.Rbn4BNFYuj9cD7PyCwysVRN+OeKLr8u+QoPInkL6O8yJNs
XKCKWqZsLZq9Wye01erwFMNTEqV+ZQUboXGmJw4TQlKnlSvClG58wiMml7EA
mfwxAkDlSEKzziAuV.KpjqWA5WTsiTCbAjQsnkUw.p9.WCZJa5LSjCxGseca
nWvErL4Zg0DICbjfXGHRwlySSsmi6XXfboFFNCfVxpqoKXeBnHv7AaOZ+ff1
VwGLtjzMMRcQ.VZfibWR5.Gnghi1QAWSp+sh4LZPvG++CKfcl0AIjub3pf8r
9U5SvUAy0eJFbxMZpMNxFYEkbrTaxrgBwvtfnIkJXxlqcC0KX9rh9zVUAAZd
tM6DUOXlkZGEIoQ8nfHYpmJHNMzUPDe0JHtZsszVottmtrH87lLwAMRHtOrK
wSraGm5pvNaMeP6ryYUl4Ev1YOnPk74ghPB1UJA0qvuX+fvccpqCBWxxdB3O
BbEv0yypm0PV0wzFmNBDSl1G7E40HPLI8pguBo7Ii3DFMaIvJXlNcHEJ8mit
TXTejERBuo0iDCQPHP1ROBYSf0NR1HCTjBFYmSMD6FewtYNldXJgm4AYJWNI
Gs5gGpvMbnqbqS.2wEcfG7zmjNQxDugE8ZtNWn3Vkk6lNgRxcGTLxSQv7AWj
IJ0UcgziPk3Kt9TtoNZys2AITgndPon6tXGawWsrI8ZDmdPzDeZzfhsKyI7n
nYvKZNpKzzD3zdXt0CfplUXlBavIYgaK93DgO36iEA1cFF2FJcloXXm91niG
GgtcSw5RKzlciA2rCMeruLcFRcLb41ppvY8XyY7rnGaerh51a6UsuFl12Ee0
x0UYsVncePzLo0T4rZEWXEzuUmLkYgMutK444Lw15ZK44qj55BMNQGR8GjOQ
NkOg7pOMaGqcXWhLy+X5T9jYRFO5SgnaONYpxeZNQ7qOQ5iO42zNijy9wIhe
8I7sUL9dlqCeZ25pdgSjar3IbeF6h8qOkb6UybugkN7oD+5S8oN9dEVGlOou
48w+Gb65sCA
-----------end_max5_patcher-----------</code></pre></div>
</div>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/help-me-with-list-calculation/#post-209376</guid>
					<title><![CDATA[Re: Help me with list calculation!]]></title>
					<link>http://cycling74.com/forums/topic/help-me-with-list-calculation/#post-209376</link>
					<pubDate>Mon, 01 Aug 2011 06:53:52 +0000</pubDate>
					<dc:creator>benj3737</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks MIB for being so prompt. I figured out a way to avoid the whole thing altogether, but I really appreciate your help!</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

