<?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[adaptation of max&#x27;s phasor~ behaviour for puredata]]></title><description><![CDATA[<p>Another adaptation I'm struggling with:</p>
<p><img src="/uploads/files/1778234295549-screenshot-2026-05-08-at-11.57.04.png" alt="Screenshot 2026-05-08 at 11.57.04.png" class="img-responsive img-markdown" /></p>
<p>Here &quot;phasor~&quot;'s phase is reset when receiving a non zero signal.<br />
The use case is resetting a sample counter.</p>
<p>Phasor~in puredata doesn't act the same,<br />
Does anyone have a clue how to make a vanilla  adaptation ?</p>
<p>Cheers</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15878/adaptation-of-max-s-phasor-behaviour-for-puredata</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 05:34:44 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/15878.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 May 2026 10:02:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to adaptation of max&#x27;s phasor~ behaviour for puredata on Fri, 08 May 2026 10:05:33 GMT]]></title><description><![CDATA[<p>Another adaptation I'm struggling with:</p>
<p><img src="/uploads/files/1778234295549-screenshot-2026-05-08-at-11.57.04.png" alt="Screenshot 2026-05-08 at 11.57.04.png" class="img-responsive img-markdown" /></p>
<p>Here &quot;phasor~&quot;'s phase is reset when receiving a non zero signal.<br />
The use case is resetting a sample counter.</p>
<p>Phasor~in puredata doesn't act the same,<br />
Does anyone have a clue how to make a vanilla  adaptation ?</p>
<p>Cheers</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15878/adaptation-of-max-s-phasor-behaviour-for-puredata</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15878/adaptation-of-max-s-phasor-behaviour-for-puredata</guid><dc:creator><![CDATA[y0g1]]></dc:creator><pubDate>Fri, 08 May 2026 10:05:33 GMT</pubDate></item><item><title><![CDATA[Reply to adaptation of max&#x27;s phasor~ behaviour for puredata on Fri, 08 May 2026 16:24:46 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/y0g1">@y0g1</a> Assuming the sample frequency is 44.1khz, the phasor frequency is fixed at 1, and you don't need to support any other feature than what you mentioned above, try <code>[fexpr~ if($x != 0, 0, ($y + 1) % 44100)]</code> to replace both the phasor and following multiplication.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15878/adaptation-of-max-s-phasor-behaviour-for-puredata/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15878/adaptation-of-max-s-phasor-behaviour-for-puredata/3</guid><dc:creator><![CDATA[jameslo]]></dc:creator><pubDate>Fri, 08 May 2026 16:24:46 GMT</pubDate></item><item><title><![CDATA[Reply to adaptation of max&#x27;s phasor~ behaviour for puredata on Fri, 08 May 2026 17:29:19 GMT]]></title><description><![CDATA[<p>Thanks a lot, again!</p>
<p>I just had to invert things:</p>
<p>fexpr~ if($x != 0, <strong>($y + 1) % 44100, 0</strong>)</p>
<p>beautiful.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15878/adaptation-of-max-s-phasor-behaviour-for-puredata/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15878/adaptation-of-max-s-phasor-behaviour-for-puredata/4</guid><dc:creator><![CDATA[y0g1]]></dc:creator><pubDate>Fri, 08 May 2026 17:29:19 GMT</pubDate></item><item><title><![CDATA[Reply to adaptation of max&#x27;s phasor~ behaviour for puredata on Fri, 08 May 2026 17:46:09 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/y0g1">@y0g1</a> said:</p>
<blockquote>
<p>&quot;phasor~&quot;'s phase is reset when receiving a non zero signal.</p>
</blockquote>
<p>If this was a test in college I'd be there during office hours arguing that the question was misleading <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15878/adaptation-of-max-s-phasor-behaviour-for-puredata/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15878/adaptation-of-max-s-phasor-behaviour-for-puredata/5</guid><dc:creator><![CDATA[jameslo]]></dc:creator><pubDate>Fri, 08 May 2026 17:46:09 GMT</pubDate></item><item><title><![CDATA[Reply to adaptation of max&#x27;s phasor~ behaviour for puredata on Fri, 08 May 2026 18:06:40 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/jameslo">@jameslo</a> <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/laughing.png" title="laughing" alt=":laughing:" /></p>
<p>I try to be precise when asking for things, but when I post I've been struggling for a long time, smoke is coming out of my ears, I end up with confusing messages....</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15878/adaptation-of-max-s-phasor-behaviour-for-puredata/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15878/adaptation-of-max-s-phasor-behaviour-for-puredata/6</guid><dc:creator><![CDATA[y0g1]]></dc:creator><pubDate>Fri, 08 May 2026 18:06:40 GMT</pubDate></item><item><title><![CDATA[Reply to adaptation of max&#x27;s phasor~ behaviour for puredata on Fri, 08 May 2026 22:28:26 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/y0g1">@y0g1</a> said:</p>
<blockquote>
<p>Here &quot;phasor~&quot;'s phase is reset when receiving a non zero signal.<br />
The use case is resetting a sample counter.</p>
<p>Phasor~in puredata doesn't act the same,<br />
Does anyone have a clue how to make a vanilla  adaptation ?</p>
</blockquote>
<p>I forget who is the pd forum user who taught me this trick, but, here's a neat way to have a signal reset a phasor:</p>
<pre><code>[phasor~]
|  \
|  [samphold~]
|  |
[-~]
|
[wrap~]
</code></pre>
<p>Then the reset trigger goes into the right inlet of samphold~ (but IIRC it should be inverted, because samphold samples its input signal when its trigger signal <em>decreases</em>, see its help file).</p>
<p>Always works (think about it a minute, and it becomes clear why).</p>
<p>Btw phasor * sample rate is not safe as a sample counter, due to floating point rounding error. (Maybe ok for one second.) In pd vanilla, [rpole~ 1] can serve as an accumulator but resetting it at signal rate is a bit trickier. I'm not at the computer now but I could track that down later. Or use cyclone's count~.</p>
<p>hjh</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15878/adaptation-of-max-s-phasor-behaviour-for-puredata/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15878/adaptation-of-max-s-phasor-behaviour-for-puredata/7</guid><dc:creator><![CDATA[ddw_music]]></dc:creator><pubDate>Fri, 08 May 2026 22:28:26 GMT</pubDate></item></channel></rss>