<?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[Karplus strong and strange issues with fexpr~]]></title><description><![CDATA[<p>Hello! I have noticed something a little bit weird trying to implement a karplus strong algorithm with fexpr~</p>
<p>I was previously using delwrite and delread with feedback and this worked fine up until delays of 1 milisecond. When i try to use fexpr~ for a per sample delay however the resonance of the karplus strong dies down as delay times get lower. interestingly the lowest pitch i am able to produce with this algorithm is about 660 hz which is roughly the same as the highest frequency with delwrite~ and delread~.</p>
<p>I have written in my fexpr~ object $x[0] + ($y1[0 - $x2] * 0.95)</p>
<p>I can't see why this would function any differently and yet it does?</p>
<p>I understand that it is possible to implement samplewise delay with subpatches and order forcing but i've never been able to get this to work properly.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14541/karplus-strong-and-strange-issues-with-fexpr</link><generator>RSS for Node</generator><lastBuildDate>Fri, 11 Sep 2026 05:36:40 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/14541.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 03 Dec 2023 20:43:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Karplus strong and strange issues with fexpr~ on Sun, 03 Dec 2023 20:43:32 GMT]]></title><description><![CDATA[<p>Hello! I have noticed something a little bit weird trying to implement a karplus strong algorithm with fexpr~</p>
<p>I was previously using delwrite and delread with feedback and this worked fine up until delays of 1 milisecond. When i try to use fexpr~ for a per sample delay however the resonance of the karplus strong dies down as delay times get lower. interestingly the lowest pitch i am able to produce with this algorithm is about 660 hz which is roughly the same as the highest frequency with delwrite~ and delread~.</p>
<p>I have written in my fexpr~ object $x[0] + ($y1[0 - $x2] * 0.95)</p>
<p>I can't see why this would function any differently and yet it does?</p>
<p>I understand that it is possible to implement samplewise delay with subpatches and order forcing but i've never been able to get this to work properly.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14541/karplus-strong-and-strange-issues-with-fexpr</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14541/karplus-strong-and-strange-issues-with-fexpr</guid><dc:creator><![CDATA[reubenm]]></dc:creator><pubDate>Sun, 03 Dec 2023 20:43:32 GMT</pubDate></item><item><title><![CDATA[Reply to Karplus strong and strange issues with fexpr~ on Sun, 03 Dec 2023 20:47:10 GMT]]></title><description><![CDATA[<p>Another aspect to the weirdness is that the drop off in resonance happens when the second input of fexpr~ is at around 64 which i guess is the same number of samples delread will process at once when delread is given a message of 1?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14541/karplus-strong-and-strange-issues-with-fexpr/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14541/karplus-strong-and-strange-issues-with-fexpr/2</guid><dc:creator><![CDATA[reubenm]]></dc:creator><pubDate>Sun, 03 Dec 2023 20:47:10 GMT</pubDate></item><item><title><![CDATA[Reply to Karplus strong and strange issues with fexpr~ on Sun, 03 Dec 2023 21:12:42 GMT]]></title><description><![CDATA[<p>these are some pictures with the pd patch and below a spectrogram so you can see what I mean<br />
<img src="/uploads/files/1701637871353-4.png" alt="4.png" class="img-responsive img-markdown" /> <img src="/uploads/files/1701637871353-3.png" alt="3.png" class="img-responsive img-markdown" /> <img src="/uploads/files/1701637871353-2.png" alt="2.png" class="img-responsive img-markdown" /> <img src="/uploads/files/1701637871349-1.png" alt="1.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14541/karplus-strong-and-strange-issues-with-fexpr/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14541/karplus-strong-and-strange-issues-with-fexpr/3</guid><dc:creator><![CDATA[reubenm]]></dc:creator><pubDate>Sun, 03 Dec 2023 21:12:42 GMT</pubDate></item><item><title><![CDATA[Reply to Karplus strong and strange issues with fexpr~ on Sun, 03 Dec 2023 21:45:33 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/reubenm">@reubenm</a> It sort of works for me, but I have the opposite problem in that I can only get frequencies above 689 hz, which makes sense to me because fexpr~ only buffers the last block of audio (I mean, right?  There's got to be <em>some</em> limit!).<br />
<a href="/uploads/files/1701638071689-ks-in-fexpr.pd">KS in fexpr.pd</a><br />
<img src="/uploads/files/1701638095134-screenshot-2023-12-03-160757.png" alt="Screenshot 2023-12-03 160757.png" class="img-responsive img-markdown" /><br />
I'd be surprised if [fexpr~] is the way to go for this application.  I think you have to sit down and work out how to make Pd's delay line go to zero.  Give a look at Help-&gt;Browser...-&gt;Pure Data/-&gt;3.audio.examples/-&gt;G05.execution.order.pd</p>
<p>Edit:  Wait, maybe you're saying the same thing as I am.  You wrote &quot;as delay times get lower&quot; but maybe you meant &quot;as delay times get longer&quot; in which case my observation about the maximum fexpr~ lookback is the answer.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14541/karplus-strong-and-strange-issues-with-fexpr/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14541/karplus-strong-and-strange-issues-with-fexpr/4</guid><dc:creator><![CDATA[jameslo]]></dc:creator><pubDate>Sun, 03 Dec 2023 21:45:33 GMT</pubDate></item><item><title><![CDATA[Reply to Karplus strong and strange issues with fexpr~ on Sun, 03 Dec 2023 21:50:59 GMT]]></title><description><![CDATA[<p>ahh I see that does make sense! I've just tried putting the fexpr~ in a subpatch with a larger block size and now i can get lower frequencies! I wonder what the difference in computational expense is with this method and the order forced delay line? I am quite new to all this stuff so I'm pretty ignorant when it comes to computer science.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14541/karplus-strong-and-strange-issues-with-fexpr/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14541/karplus-strong-and-strange-issues-with-fexpr/5</guid><dc:creator><![CDATA[reubenm]]></dc:creator><pubDate>Sun, 03 Dec 2023 21:50:59 GMT</pubDate></item><item><title><![CDATA[Reply to Karplus strong and strange issues with fexpr~ on Mon, 04 Dec 2023 12:58:20 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/reubenm">@reubenm</a> I never care about computational expense until it's a problem, and even then it sometimes generates some cool stuttering that I would never have thought of.  But if that fexpr~ way of doing things speaks to you, then maybe you should look into supercollider <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" />  And I'm not trying to be a jerk because as a former java/c# programmer I'd probably prefer it!</p>
<p>Edit:  Ouch!  I think I'm confused about the delay line and forced order of execution.  In KS you're feeding back the output of the delay line into the input, so either you have to have the delay line read upstream of the write (and so you have a min 1 block delay) or you have to send the delay line read signal back up to the delay line write (which also incurs a 1 block delay).  So either way I think you have to reduce the block size to get frequencies above 689hz.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14541/karplus-strong-and-strange-issues-with-fexpr/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14541/karplus-strong-and-strange-issues-with-fexpr/6</guid><dc:creator><![CDATA[jameslo]]></dc:creator><pubDate>Mon, 04 Dec 2023 12:58:20 GMT</pubDate></item></channel></rss>