<?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[Coming from max&#x2F;msp&#x2F;gen~: how to single-sample]]></title><description><![CDATA[<p>Hello community!</p>
<p>I am considering moving to pd my performative instrument coded in max/msp, for the sake of mantainability and the joy of open and free software. I face a major challenge. Most of my code is written in gen~, which allows single-sample operations, and I don’t know how to port this to pd, whether pd has something similar to gen~ or what could be other approaches to operate on a sample level within pd. Could you please advice me? Thank you!</p>
<p>Ardore</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15801/coming-from-max-msp-gen-how-to-single-sample</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 18:10:49 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/15801.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 26 Jan 2026 00:08:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Coming from max&#x2F;msp&#x2F;gen~: how to single-sample on Mon, 26 Jan 2026 00:08:59 GMT]]></title><description><![CDATA[<p>Hello community!</p>
<p>I am considering moving to pd my performative instrument coded in max/msp, for the sake of mantainability and the joy of open and free software. I face a major challenge. Most of my code is written in gen~, which allows single-sample operations, and I don’t know how to port this to pd, whether pd has something similar to gen~ or what could be other approaches to operate on a sample level within pd. Could you please advice me? Thank you!</p>
<p>Ardore</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15801/coming-from-max-msp-gen-how-to-single-sample</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15801/coming-from-max-msp-gen-how-to-single-sample</guid><dc:creator><![CDATA[ardore]]></dc:creator><pubDate>Mon, 26 Jan 2026 00:08:59 GMT</pubDate></item><item><title><![CDATA[Reply to Coming from max&#x2F;msp&#x2F;gen~: how to single-sample on Mon, 26 Jan 2026 01:55:45 GMT]]></title><description><![CDATA[<p>you put .wav files into   an array  which is a list . and then you ask for numbers from the array with tabread will give you one number from the list.  which they call a sample. etc sample rate...</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15801/coming-from-max-msp-gen-how-to-single-sample/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15801/coming-from-max-msp-gen-how-to-single-sample/2</guid><dc:creator><![CDATA[willblackhurst]]></dc:creator><pubDate>Mon, 26 Jan 2026 01:55:45 GMT</pubDate></item><item><title><![CDATA[Reply to Coming from max&#x2F;msp&#x2F;gen~: how to single-sample on Mon, 26 Jan 2026 06:02:23 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/willblackhurst">@willblackhurst</a> said:</p>
<blockquote>
<p>and then you ask for numbers from the array with tabread will give you one number from the list.  which they call a sample. etc sample rate...</p>
</blockquote>
<p>In context of the question, this is not quite revelant.</p>
<p>First, it's about audio signals -- not [tabread], but rather [tabread~] or [tabread4~].</p>
<p>Second, audio objects <em>don't</em> operate sample by sample, but rather block by block.</p>
<p>The question doesn't state it explicitly, but it can be inferred from context that the &quot;single-sample operation&quot; being referred to is single-sample feedback. Feedback always requires delay, and, using normal audio objects, the minimum delay is the block size. This places limits on the capability of implementing filters, Karplus-Strong plucked strings (this is one of the OP's keywords), waveguides etc.</p>
<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ardore">@ardore</a> In Pd, AFAIK pretty much all you've got is to set a subpatch's [block~] settings to block size = 1. Then that part of the graph will run everything by single samples (but outside the subpatch / abstraction window will run with normal block size).</p>
<p>I'm not aware of anything gen~ like in Pd (which isn't surprising, since David Zicarelli says it took their team of paid professional developers something like 6 years before gen~ was ready to ship -- an unpaid FLOSS team is unlikely to be able to duplicate that engineering effort). There might be something that I just didn't hear of...? But I doubt it.</p>
<p>Something that Pd devs might consider is to leverage another similar technology. For instance, a SC contributor released &quot;DynGen&quot; a few months ago, which wraps Reaper's audio-fx dev language &quot;eelscript&quot; into a SC unit generator. Eelscript can do a lot of gen~-like things, and... Reaper devs did the hard work! Might be interesting to have a Pd signal-object wrapper for eelscript...</p>
<p>hjh</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15801/coming-from-max-msp-gen-how-to-single-sample/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15801/coming-from-max-msp-gen-how-to-single-sample/3</guid><dc:creator><![CDATA[ddw_music]]></dc:creator><pubDate>Mon, 26 Jan 2026 06:02:23 GMT</pubDate></item><item><title><![CDATA[Reply to Coming from max&#x2F;msp&#x2F;gen~: how to single-sample on Mon, 26 Jan 2026 08:52:48 GMT]]></title><description><![CDATA[<p>Use <code>[block~ 1]</code> in a subpatch or abstraction and everything inside there will run single sample.</p>
<p>You can also use <code>[fexpr~]</code> to run mathematical expressions on specific samples in a block.</p>
<p>Exporting code using the <a href="https://github.com/Wasted-Audio/hvcc" rel="nofollow">Heavy Compiler</a> will run single sample by default.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/15801/coming-from-max-msp-gen-how-to-single-sample/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/15801/coming-from-max-msp-gen-how-to-single-sample/4</guid><dc:creator><![CDATA[dreamer]]></dc:creator><pubDate>Mon, 26 Jan 2026 08:52:48 GMT</pubDate></item></channel></rss>