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

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/accum/#post-30423</guid>
					<title><![CDATA[Accum]]></title>
					<link>http://cycling74.com/forums/topic/accum/#post-30423</link>
					<pubDate>Thu, 22 Feb 2007 23:31:06 +0000</pubDate>
					<dc:creator>Gary Lee Nelson</dc:creator>

					<description>
						<![CDATA[
						<p>Does anyone use accum?  One of my students found it and used in his first<br />
patch.  It doesn&#8217;t seem to do what I expected and the help and manual don&#8217;t<br />
help or man&#8230;Is it me or is funky?</p>
<p>Cheers<br />
Gary Lee Nelson<br />
Oberlin College<br />
<a href="http://www.timara.oberlin.edu/GaryLeeNelson" rel="nofollow">http://www.timara.oberlin.edu/GaryLeeNelson</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/accum/#post-97302</guid>
					<title><![CDATA[Re: Accum]]></title>
					<link>http://cycling74.com/forums/topic/accum/#post-97302</link>
					<pubDate>Thu, 22 Feb 2007 23:49:05 +0000</pubDate>
					<dc:creator>swieser1</dc:creator>

					<description>
						<![CDATA[
						<p>it&#8217;s a pretty basic object.  it&#8217;s cleaner than using a bunch of [int] and [+] and [*] objects.  </p>
<p>try opening the help patch on it.  send a value into the left inlet, and that will set (and output) the &#8220;initial value&#8221; stored in the accum object.  then, send a value into the middle inlet.  that value will be added to the &#8220;initial value&#8221;, and then that sum will be stored as the &#8220;current value&#8221;.  however, nothing is output until it receives a bang in its left inlet.  similarly, values sent into the right inlet will multiply the current value.</p>
<p>if your confusion comes from the fact that nothing is output when the object&#8217;s value changes, then try using a [t b i] object to trigger a bang to the left inlet whenever a value is sent to the middle or right inlets.</p>
<p>-scott</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/accum/#post-97303</guid>
					<title><![CDATA[Re: Accum]]></title>
					<link>http://cycling74.com/forums/topic/accum/#post-97303</link>
					<pubDate>Thu, 22 Feb 2007 23:59:49 +0000</pubDate>
					<dc:creator>David Beaudry</dc:creator>

					<description>
						<![CDATA[
						<p>I&#8217;ve used it a few times. It&#8217;s like a very odd counter. The trick is  <br />
you have to always send a value to the center inlet (the amount you  <br />
want to add to the &#8220;accumulation&#8221;, then bang the left inlet to get  <br />
the result. e.g.</p>
<p>max v2;<br />
#N vpatcher 10 59 610 459;<br />
#P button 157 208 15 0;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 1;<br />
#P message 177 253 14 196617 2;<br />
#P newex 157 232 30 196617 t b b;<br />
#P number 157 313 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 157 288 50 196617 accum;<br />
#P connect 4 0 2 0;<br />
#P connect 2 0 0 0;<br />
#P connect 0 0 1 0;<br />
#P connect 2 1 3 0;<br />
#P connect 3 0 0 1;<br />
#P pop;</p>
<p>
David</p>
<p>
On Feb 22, 2007, at 3:31 PM, Gary Lee Nelson wrote:</p>
<p>> Does anyone use accum?  One of my students found it and used in his  <br />
> first<br />
> patch.  It doesn&#8217;t seem to do what I expected and the help and  <br />
> manual don&#8217;t<br />
> help or man&#8230;Is it me or is funky?<br />
><br />
> Cheers<br />
> Gary Lee Nelson<br />
> Oberlin College<br />
> <a href="http://www.timara.oberlin.edu/GaryLeeNelson" rel="nofollow">http://www.timara.oberlin.edu/GaryLeeNelson</a><br />
><br />
></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/accum/#post-97304</guid>
					<title><![CDATA[Re: Accum]]></title>
					<link>http://cycling74.com/forums/topic/accum/#post-97304</link>
					<pubDate>Fri, 23 Feb 2007 00:02:37 +0000</pubDate>
					<dc:creator>Gary Lee Nelson</dc:creator>

					<description>
						<![CDATA[
						<p>Ah, then it IS funky!  The manual should say in big red letters that, unlike<br />
all other max objects inputs to the right must happen before action at the<br />
left-most inlet causes output.  I learn once again that blind faith is<br />
dangerous.  :-)</p>
<p>
On 2/22/07 6:49 PM, &#8220;swieser1&#8243; <swieser1 @comcast.net> wrote:</swieser1></p>
<p>> <br />
> it&#8217;s a pretty basic object.  it&#8217;s cleaner than using a bunch of [int] and [+]<br />
> and [*] objects. <br />
> <br />
> try opening the help patch on it.  send a value into the left inlet, and that<br />
> will set (and output) the &#8220;initial value&#8221; stored in the accum object.  then,<br />
> send a value into the middle inlet.  that value will be added to the &#8220;initial<br />
> value&#8221;, and then that sum will be stored as the &#8220;current value&#8221;.  however,<br />
> nothing is output until it receives a bang in its left inlet.  similarly,<br />
> values sent into the right inlet will multiply the current value.<br />
> <br />
> if your confusion comes from the fact that nothing is output when the object&#8217;s<br />
> value changes, then try using a [t b i] object to trigger a bang to the left<br />
> inlet whenever a value is sent to the middle or right inlets.<br />
> <br />
> -scott</p>
<p>
Cheers<br />
Gary Lee Nelson<br />
Oberlin College<br />
<a href="http://www.timara.oberlin.edu/GaryLeeNelson" rel="nofollow">http://www.timara.oberlin.edu/GaryLeeNelson</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/accum/#post-97305</guid>
					<title><![CDATA[Re: Accum]]></title>
					<link>http://cycling74.com/forums/topic/accum/#post-97305</link>
					<pubDate>Sun, 01 Apr 2007 18:21:23 +0000</pubDate>
					<dc:creator>raphaelseguin</dc:creator>

					<description>
						<![CDATA[
						<p>gimmee back my patchcords you thiefs !!!</p>
<p>OK OK there must have been some copypaste mistake from me ;-)</p>
<p>Thanks for your answers anyway.</p>
<p>Here is the real thing (makes more sense) :</p>
<p>max v2;<br />
#N vpatcher 142 125 1016 663;<br />
#P origin 0 257;<br />
#P window setfont &#8220;Sans Serif&#8221; 20.;<br />
#P window linecount 1;<br />
#P comment 359 116 314 9109524 &#8230;this is not !!??;<br />
#P button 184 156 15 0;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P newex 184 177 40 9109513 t b b 0;<br />
#P newex 199 215 40 9109513 uzi 32;<br />
#P newex 199 250 62 9109513 random 8081;<br />
#P number 143 407 67 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 266 291 27 9109513 t i b;<br />
#B color 5;<br />
#P newex 266 352 27 9109513 +;<br />
#B color 5;<br />
#P newex 283 322 27 9109513 0;<br />
#B color 5;<br />
#P number 143 391 74 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 143 358 40 9109513 accum;<br />
#B color 5;<br />
#P number 443 454 67 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 526 334 27 9109513 t i b;<br />
#B color 5;<br />
#P newex 526 398 27 9109513 +;<br />
#B color 5;<br />
#P newex 543 368 27 9109513 0;<br />
#B color 5;<br />
#P newex 525 273 27 9109513 !- 32;<br />
#P number 443 437 74 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 443 403 40 9109513 accum;<br />
#B color 5;<br />
#P newex 368 167 40 9109513 t b b 0;<br />
#P newex 475 302 93 9109513 expr $i1*pow(2\, $i2);<br />
#P button 368 145 15 0;<br />
#P message 475 249 261 9109513 0 0 0 1 1 0 1 0 0 0 0 0 1 1 1 0 0 1 0 0 0 1 0<br />
0 0 0 0 0 0 0 1 1;<br />
#P newex 383 197 40 9109513 uzi 32;<br />
#P newex 475 273 38 9109513 zl nth 0;<br />
#P window setfont &#8220;Sans Serif&#8221; 20.;<br />
#P comment 104 116 244 9109524 why is this working while&#8230;;<br />
#P fasten 22 2 14 0 219 211 148 211;<br />
#P fasten 22 0 14 0 189 207 148 207;<br />
#P connect 14 0 15 0;<br />
#P fasten 17 0 19 0 271 407 148 407;<br />
#P connect 20 0 14 1;<br />
#P connect 23 0 22 0;<br />
#P connect 22 1 21 0;<br />
#P connect 21 0 20 0;<br />
#P connect 20 0 18 0;<br />
#P connect 18 0 17 0;<br />
#P connect 18 1 16 0;<br />
#P connect 16 0 17 1;<br />
#P fasten 17 0 16 1 271 379 323 379 323 315 305 315;<br />
#P fasten 22 2 16 1 219 202 305 202;<br />
#P connect 4 0 6 0;<br />
#P connect 6 1 2 0;<br />
#P fasten 6 2 7 0 403 192 448 192;<br />
#P fasten 6 0 7 0 373 395 448 395;<br />
#P connect 7 0 8 0;<br />
#P fasten 11 0 13 0 531 452 448 452;<br />
#P connect 5 0 7 1;<br />
#P fasten 2 0 3 0 388 238 480 238;<br />
#P connect 3 0 1 0;<br />
#P connect 1 0 5 0;<br />
#P fasten 2 2 1 1 418 228 508 228;<br />
#P fasten 2 2 9 0 418 222 530 222;<br />
#P connect 5 0 12 0;<br />
#P connect 12 0 11 0;<br />
#P connect 12 1 10 0;<br />
#P connect 10 0 11 1;<br />
#P connect 9 0 5 1;<br />
#P fasten 11 0 10 1 531 425 583 425 583 361 565 361;<br />
#P fasten 6 2 10 1 403 192 565 192;<br />
#P pop;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/accum/#post-97306</guid>
					<title><![CDATA[Re: Accum]]></title>
					<link>http://cycling74.com/forums/topic/accum/#post-97306</link>
					<pubDate>Sun, 01 Apr 2007 19:59:00 +0000</pubDate>
					<dc:creator>Chris Muir</dc:creator>

					<description>
						<![CDATA[
						<p>At 8:21 PM +0200 4/1/07, raphael seguin wrote:<br />
>gimmee back my patchcords you thiefs !!!</p>
<p>OK, that _is_ strange. It seems like accum, after a certain point, refuses to acknowledge any number less than 16. (in your example it comes after processing step 31)</p>
<p>Here&#8217;s your patch set up for single stepping with a bunch of debugging stuff scattered around. This version runs until the accum number and the + number are different. You notice that once it breaks (at step 31) accum is a little wacky. You can bang in numbers < 17 with no output, but numbers >= 17 cause output, as normal.</p>
<p>#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 1;<br />
#P message 239 216 35 196617 break;<br />
#P user gswitch 239 180 41 32 0 0;<br />
#P hidden message 276 366 14 196617 0;<br />
#P hidden newex 276 346 38 196617 sel 32;<br />
#P message 373 246 20 196617 17;<br />
#P message 348 246 20 196617 16;<br />
#P toggle 318 399 32 0;<br />
#P newex 318 435 32 196617 sel 1;<br />
#P newex 318 376 27 196617 !=;<br />
#P number 354 267 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P button 381 337 15 0;<br />
#P number 445 308 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 422 287 27 196617 int;<br />
#P button 411 259 15 0;<br />
#P number 434 258 79 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P number 572 235 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P toggle 411 226 15 0;<br />
#P newex 414 308 27 196617 t b i;<br />
#P number 372 183 32 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P window setfont &#8220;Sans Serif&#8221; 14.;<br />
#P message 260 132 61 196622 resume;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P message 282 415 35 196617 break;<br />
#P window setfont &#8220;Sans Serif&#8221; 20.;<br />
#P comment 317 44 314 196628 &#8230;this is not !!??;<br />
#P button 52 92 15 0;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P newex 52 113 40 196617 t b b 0;<br />
#P newex 67 151 40 196617 uzi 32;<br />
#P newex 67 186 76 196617 random 8081;<br />
#P number 11 343 67 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 134 227 27 196617 t i b;<br />
#B color 5;<br />
#P newex 134 288 27 196617 +;<br />
#B color 5;<br />
#P newex 151 258 27 196617 0;<br />
#B color 5;<br />
#P number 11 327 74 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 11 294 40 196617 accum;<br />
#B color 5;<br />
#P number 402 390 75 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 485 288 27 196617 t i b;<br />
#B color 5;<br />
#P newex 485 334 27 196617 +;<br />
#B color 5;<br />
#P newex 502 311 27 196617 0;<br />
#B color 5;<br />
#P newex 546 209 41 196617 !- 32;<br />
#P number 402 373 80 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 402 339 40 196617 accum;<br />
#B color 5;<br />
#P newex 327 103 40 196617 t b b 0;<br />
#P newex 434 238 122 196617 expr $i1*pow(2\, $i2);<br />
#P button 327 81 15 0;<br />
#P message 434 185 300 196617 0 0 0 1 1 0 1 0 0 0 0 0 1 1 1 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 1 1;<br />
#P newex 342 133 40 196617 uzi 32;<br />
#P newex 434 212 52 196617 zl nth 0;<br />
#P window setfont &#8220;Sans Serif&#8221; 20.;<br />
#P comment 62 44 268 196628 why is this working while&#8230;;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 2;<br />
#P comment 282 183 37 196617 single step;<br />
#P connect 34 0 29 0;<br />
#P connect 34 0 35 0;<br />
#P connect 32 0 34 0;<br />
#P connect 32 0 13 0;<br />
#P fasten 23 2 15 0 87 147 16 147;<br />
#P fasten 23 2 17 1 87 138 173 138;<br />
#P connect 21 0 15 1;<br />
#P connect 21 0 19 0;<br />
#P fasten 18 0 20 0 139 343 16 343;<br />
#P fasten 18 0 17 1 139 315 191 315 191 251 173 251;<br />
#P fasten 12 0 14 0 490 388 407 388;<br />
#P fasten 12 0 11 1 490 361 542 361 542 303 524 303;<br />
#P connect 10 0 6 1;<br />
#P connect 10 0 31 0;<br />
#P hidden connect 7 2 40 0;<br />
#P fasten 7 2 8 0 362 128 407 128;<br />
#P fasten 7 2 11 1 362 128 524 128;<br />
#P connect 3 2 28 0;<br />
#P fasten 3 2 2 1 377 164 481 164;<br />
#P fasten 3 2 10 0 377 158 551 158;<br />
#P connect 3 0 45 2;<br />
#P fasten 3 0 4 0 347 174 439 174;<br />
#P connect 2 0 30 0;<br />
#P connect 2 0 6 0;<br />
#P connect 46 0 3 0;<br />
#P connect 45 0 46 0;<br />
#P hidden connect 44 0 40 0;<br />
#P hidden connect 43 0 44 0;<br />
#P hidden connect 28 0 43 0;<br />
#P connect 41 0 37 0;<br />
#P connect 42 0 37 0;<br />
#P connect 38 0 40 0;<br />
#P fasten 26 0 3 0 287 438 262 438 262 389 309 389 309 198;<br />
#P fasten 39 0 26 0 323 455 278 455 278 404 287 404;<br />
#P connect 40 0 39 0;<br />
#P connect 9 0 38 0;<br />
#P connect 14 0 38 1;<br />
#P connect 37 0 34 0;<br />
#P connect 36 0 8 0;<br />
#P connect 33 0 34 0;<br />
#P connect 29 1 8 1;<br />
#P connect 6 0 32 0;<br />
#P connect 29 0 8 0;<br />
#P connect 27 0 3 0;<br />
#P connect 11 0 12 1;<br />
#P connect 13 1 11 0;<br />
#P connect 13 0 12 0;<br />
#P connect 4 0 2 0;<br />
#P connect 8 0 9 0;<br />
#P fasten 7 0 8 0 332 331 407 331;<br />
#P connect 7 1 3 0;<br />
#P connect 5 0 7 0;<br />
#P connect 17 0 18 1;<br />
#P connect 19 1 17 0;<br />
#P connect 19 0 18 0;<br />
#P connect 22 0 21 0;<br />
#P connect 23 1 22 0;<br />
#P connect 24 0 23 0;<br />
#P connect 15 0 16 0;<br />
#P fasten 23 0 15 0 57 143 16 143;<br />
#P window clipboard copycount 47;</p>
<p>
&#8211; <br />
Chris Muir           | &#8220;There are many futures and only one status quo.<br />
<a href="mailto:cbm@well.com">cbm@well.com</a>         |  This is why conservatives mostly agree,<br />
<a href="http://www.xfade.com" rel="nofollow">http://www.xfade.com</a> |  and radicals always argue.&#8221; &#8211; Brian Eno</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/accum/#post-97307</guid>
					<title><![CDATA[Re: Accum]]></title>
					<link>http://cycling74.com/forums/topic/accum/#post-97307</link>
					<pubDate>Sun, 01 Apr 2007 20:58:02 +0000</pubDate>
					<dc:creator>raphaelseguin</dc:creator>

					<description>
						<![CDATA[
						<p></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/accum/#post-97308</guid>
					<title><![CDATA[Re: Accum]]></title>
					<link>http://cycling74.com/forums/topic/accum/#post-97308</link>
					<pubDate>Sun, 01 Apr 2007 21:50:49 +0000</pubDate>
					<dc:creator>_j</dc:creator>

					<description>
						<![CDATA[
						<p>I use accum all the time&#8230; &lt;3 accum.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

