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

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/modulo/#post-59895</guid>
					<title><![CDATA[[modulo] ?]]></title>
					<link>http://cycling74.com/forums/topic/modulo/#post-59895</link>
					<pubDate>Tue, 08 Nov 2011 12:42:02 +0000</pubDate>
					<dc:creator>stfn</dc:creator>

					<description>
						<![CDATA[
						<p>hello </p>
<p>I am looking for an equivalent of the [modulo] object (of puredata) in maxmsp</p>
<p>the modulo is a math operator a bit equivalent to % instead that with negative value it doesn&#8217;t output the same thing:</p>
<p>(e.g. if I want [modulo 33]  of -1 give 0  and [modulo 33] of -2 give 32  [modulo 33] of -33 give 1)</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/modulo/#post-215637</guid>
					<title><![CDATA[Re: [modulo] ?]]></title>
					<link>http://cycling74.com/forums/topic/modulo/#post-215637</link>
					<pubDate>Tue, 08 Nov 2011 14:18:51 +0000</pubDate>
					<dc:creator>broc</dc:creator>

					<description>
						<![CDATA[
						<p>As far as I know puredata has a [mod] operator equivalent to % in Max.</p>
<p>Can you point to some definition/documentation of your [modulo] object?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/modulo/#post-215638</guid>
					<title><![CDATA[Re: [modulo] ?]]></title>
					<link>http://cycling74.com/forums/topic/modulo/#post-215638</link>
					<pubDate>Tue, 08 Nov 2011 15:00:27 +0000</pubDate>
					<dc:creator>stfn</dc:creator>

					<description>
						<![CDATA[
						<p>sorry I mean the [mod] object<br />
and [%] doesn&#8217;t handle negatives value in the same way [mod] does</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/modulo/#post-215639</guid>
					<title><![CDATA[Re: [modulo] ?]]></title>
					<link>http://cycling74.com/forums/topic/modulo/#post-215639</link>
					<pubDate>Tue, 08 Nov 2011 15:12:25 +0000</pubDate>
					<dc:creator>broc</dc:creator>

					<description>
						<![CDATA[
						<p>But there should be a proper documentation how [mod] handles negative values.<br />
What you describe looks rather strange to me..</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/modulo/#post-215640</guid>
					<title><![CDATA[Re: [modulo] ?]]></title>
					<link>http://cycling74.com/forums/topic/modulo/#post-215640</link>
					<pubDate>Tue, 08 Nov 2011 15:16:59 +0000</pubDate>
					<dc:creator>stfn</dc:creator>

					<description>
						<![CDATA[
						<p>from pd documentation :<br />
[mod] takes a number in its left inlet and will divide that number by either the creation argument or the number given at its left inlet and will produce the value of the remainder at its outlet. If no creation argument is given, then the default value is 1</p>
<p>(nothing about negative values)</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/modulo/#post-215641</guid>
					<title><![CDATA[Re: [modulo] ?]]></title>
					<link>http://cycling74.com/forums/topic/modulo/#post-215641</link>
					<pubDate>Tue, 08 Nov 2011 15:21:18 +0000</pubDate>
					<dc:creator>Roman Thilenius</dc:creator>

					<description>
						<![CDATA[
						<p>use expr?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/modulo/#post-215642</guid>
					<title><![CDATA[Re: [modulo] ?]]></title>
					<link>http://cycling74.com/forums/topic/modulo/#post-215642</link>
					<pubDate>Tue, 08 Nov 2011 15:57:02 +0000</pubDate>
					<dc:creator>stfn</dc:creator>

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

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/modulo/#post-215643</guid>
					<title><![CDATA[Re: [modulo] ?]]></title>
					<link>http://cycling74.com/forums/topic/modulo/#post-215643</link>
					<pubDate>Tue, 08 Nov 2011 16:17:12 +0000</pubDate>
					<dc:creator>Peter Castine</dc:creator>

					<description>
						<![CDATA[
						<p>The Max [%] object handles modulo exactly the way most C implementations do, which is mathematically incorrect.</p>
<p>[expr] may do the trick, otherwise hang a [if $i1 >= 0 then $i1 else out2 $i1] after the [mod] object. Hang a [+] object after the if&#8217;s second outlet, make sure the [+] operand is set to your modulo. Et voilà!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/modulo/#post-215644</guid>
					<title><![CDATA[Re: [modulo] ?]]></title>
					<link>http://cycling74.com/forums/topic/modulo/#post-215644</link>
					<pubDate>Tue, 08 Nov 2011 18:19:22 +0000</pubDate>
					<dc:creator>broc</dc:creator>

					<description>
						<![CDATA[
						<p>Interesting. So does pd have a mathematically correct implementation of modulo?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/modulo/#post-215645</guid>
					<title><![CDATA[Re: [modulo] ?]]></title>
					<link>http://cycling74.com/forums/topic/modulo/#post-215645</link>
					<pubDate>Tue, 08 Nov 2011 20:01:40 +0000</pubDate>
					<dc:creator>jvkr</dc:creator>

					<description>
						<![CDATA[
						<p>&#8220;Boute argues that Euclidean division is superior to the other ones in terms of regularity and useful mathematical properties, although floored division, promoted by Knuth, is also a good definition. Despite its widespread use, truncated division is shown to be inferior to the other definitions.&#8221;</p>
<p>pd (apparently) uses Euclidean, max truncated division.</p>
<p><a href="http://legacy.cs.uu.nl/daan/download/papers/divmodnote.pdf" rel="nofollow">http://legacy.cs.uu.nl/daan/download/papers/divmodnote.pdf</a></p>
<p>Time for an attribute?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/modulo/#post-215646</guid>
					<title><![CDATA[Re: [modulo] ?]]></title>
					<link>http://cycling74.com/forums/topic/modulo/#post-215646</link>
					<pubDate>Wed, 09 Nov 2011 11:26:24 +0000</pubDate>
					<dc:creator>broc</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks for the link. Euclidean modulo seems useful in practice (eg. result is always positive).<br />
So based on the article I&#8217;ve made an abstraction for usage in Max.</p>
<div><span id="toggle215646-0" class="patchtoggle" onmousedown="toggleMaxPatch('post215646-0', 'er215646-0');">&#8211; Pasted Max <span id="maxversion215646-0"></span> Patch, click to <span id="er215646-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----------%0A565.3ocyV9sjSBCEF%2BZ3oHSF8Fsamj.zVbFcFczK8IvYGGVRVabfjNkfVcm8%0AcWxev15R2FnsXuAJmbZ422WN8CdHL.dmbCqBBdC3KfffGBCBLkzEBbWG.Ky1%0AjWjUYZClKKKYBEbhcMEaixT%2BS04EbJKS7YIstP1tdAWvxk0BSSDWw6kBUE%2B2%0ALcMLZJxUdUlJeIW7sutlkqrLsPuJHBGoOkLSejjNEAt08UD0kbQASYXC6Jxo%0AFhj288avyfa6TVqZaEsCIhrRCIv2ulmU.9frfB0q9XXn9vjSzX9H%2BG7J4ZXu%0A0NIJ1nZ7VsiWzGsmbUncJSP6u3WX2wQCU6wil1Ere1bGehz42CdAG%2BNDPsjI%0A.X.qnhAtA21mkI0uVwr5EB%2Bq15wDR7biyDQLmv396Sjt8I7n4Su5fNBWGZL.%0ASw4FoolnCxzjmySHc3In%2B2dxqO6dh1.lzZMCvSRGMKw9qCOVx.Yt8gAIsG8d%0Aj%2BHOQnMJS294ON3st7flOaSDZHfnu5v4BSFV1f0lvyrYmIw8NZ3.Injy%2BVtA%0ACOBF67O6FYNegOCCnmJxnmet9TGFNAkY2%2B7aJuCgQtrB6.S4u7bGb4lhGbtE%0A9jysL2Jyqw9OulrgVc88soJY857VU6P.rEXJqRwEYJtTrSOw60yRNs4kl1ci%0AsjSWIarPGBfa6bKyWhz2M7QHJcTIR%2BH2iZRo6g8EGIhGHY3d7XxKjF0MtHeH%0Ahb8gD55CoQcRJ1ChlMpdT5ElnlKdL7O.Yio2AC%0A-----------end_max5_patcher-----------&#038;copied=copied!&#038;;copyto=copy to clipboard"  bgcolor="#ffffff"  wmode="opaque" /> </object></div>
<div id="post215646-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="pastedcode215646-0">----------begin_max5_patcher----------
565.3ocyV9sjSBCEF+Z3oHSF8Fsamj.zVbFcFczK8IvYGGVRVabfjNkfVcm8
cWxev15R2FnsXuAJmbZ422WN8CdHL.dmbCqBBdC3KfffGBCBLkzEBbWG.Ky1
jWjUYZClKKKYBEbhcMEaixT+S04EbJKS7YIstP1tdAWvxk0BSSDWw6kBUE+2
LcMLZJxUdUlJeIW7sutlkqrLsPuJHBGoOkLSejjNEAt08UD0kbQASYXC6Jxo
Fhj288avyfa6TVqZaEsCIhrRCIv2ulmU.9frfB0q9XXn9vjSzX9H+G7J4ZXu
0NIJ1nZ7VsiWzGsmbUncJSP6u3WX2wQCU6wil1Ere1bGehz42CdAG+NDPsjI
.X.qnhAtA21mkI0uVwr5EB+q15wDR7biyDQLmv396Sjt8I7n4Su5fNBWGZL.
Sw4FoolnCxzjmySHc3In+2dxqO6dh1.lzZMCvSRGMKw9qCOVx.Yt8gAIsG8d
j+HOQnMJS294ON3st7flOaSDZHfnu5v4BSFV1f0lvyrYmIw8NZ3.Injy+VtA
COBF67O6FYNegOCCnmJxnmet9TGFNAkY2+7aJuCgQtrB6.S4u7bGb4lhGbtE
9jysL2Jyqw9OulrgVc88soJY857VU6P.rEXJqRwEYJtTrSOw60yRNs4kl1ci
sjSWIarPGBfa6bKyWhz2M7QHJcTIR+H2iZRo6g8EGIhGHY3d7XxKjF0MtHeH
hb8gD55CoQcRJ1ChlMpdT5ElnlKdL7O.Yio2AC
-----------end_max5_patcher-----------</code></pre></div>
</div>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

