<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[filtering jittering numbers - avoiding floats]]></title><description><![CDATA[<p>Hi,<br />
I copy a max version patch that should filter jittering numbers:</p>
<p><img src="/uploads/files/1671620160899-jitter.png" alt="jitter.png" class="img-responsive img-markdown" /></p>
<p><a href="/uploads/files/1671620184481-jittering.pd">jittering.pd</a></p>
<p>Why it output floats? I don't want it to output float rather same numbers (integers) as input</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14193/filtering-jittering-numbers-avoiding-floats</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 02:39:46 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/14193.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Dec 2022 10:56:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to filtering jittering numbers - avoiding floats on Wed, 21 Dec 2022 10:56:51 GMT]]></title><description><![CDATA[<p>Hi,<br />
I copy a max version patch that should filter jittering numbers:</p>
<p><img src="/uploads/files/1671620160899-jitter.png" alt="jitter.png" class="img-responsive img-markdown" /></p>
<p><a href="/uploads/files/1671620184481-jittering.pd">jittering.pd</a></p>
<p>Why it output floats? I don't want it to output float rather same numbers (integers) as input</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14193/filtering-jittering-numbers-avoiding-floats</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14193/filtering-jittering-numbers-avoiding-floats</guid><dc:creator><![CDATA[KMETE]]></dc:creator><pubDate>Wed, 21 Dec 2022 10:56:51 GMT</pubDate></item><item><title><![CDATA[Reply to filtering jittering numbers - avoiding floats on Wed, 21 Dec 2022 12:29:36 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/kmete">@KMETE</a> The average/mean of 1 and 2 is 1.5. Put an <code>[i]</code> after the change and it will round to the nearest integer.</p>
<p>Edit: actually <code>[i]</code> does not round, it just strips the decimal so 1.5 becomes 1. <code>[expr round($f1)]</code> will round.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14193/filtering-jittering-numbers-avoiding-floats/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14193/filtering-jittering-numbers-avoiding-floats/2</guid><dc:creator><![CDATA[oid]]></dc:creator><pubDate>Wed, 21 Dec 2022 12:29:36 GMT</pubDate></item><item><title><![CDATA[Reply to filtering jittering numbers - avoiding floats on Thu, 22 Dec 2022 01:03:57 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/kmete">@KMETE</a> said:</p>
<blockquote>
<p>I copy a max version patch...</p>
</blockquote>
<p>A hidden source of trouble with this approach is that Max has integer-only operators while Pd only has floats.</p>
<p>In Max (IIRC), 3.1 --&gt; [+ 2] produces 5, not 5.1. 3.1 --&gt; [+ 2.] (with a decimal point) produces 5.1.</p>
<p>In Pd, the &quot;dot&quot; thing doesn't exist. If you're copying a Max patch that depends on integer-math behavior, you can't just copy it directly -- you need to handle the integer conversion explicitly.</p>
<p>I've gotten bitten by this multiple times when going the other direction (building something in Max and expecting float ops).</p>
<p>hjh</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14193/filtering-jittering-numbers-avoiding-floats/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14193/filtering-jittering-numbers-avoiding-floats/3</guid><dc:creator><![CDATA[ddw_music]]></dc:creator><pubDate>Thu, 22 Dec 2022 01:03:57 GMT</pubDate></item></channel></rss>