<?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[&quot;Things I wish I had known when I started Pd&quot;]]></title><description><![CDATA[<p>Let's have a sharing thread -- &quot;things I wish somebody had told me when I was first starting with Pd.&quot;</p>
<p>My #1: Basic list operations of iteration and incremental &quot;fill.&quot; It took me probably half a year to discover the [list] operators and be able to use them reliably for these two absolutely essential procedures. (It turns out that these operations aren't so difficult after all, but it took far too long to figure it out.)</p>
<p><img src="/uploads/files/1605338689951-pd-things-i-wish-i-knew.png" alt="pd-things-i-wish-i-knew.png" class="img-responsive img-markdown" /></p>
<p>hjh</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Nov 2026 08:35:13 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/13134.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 14 Nov 2020 07:26:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sat, 14 Nov 2020 07:26:17 GMT]]></title><description><![CDATA[<p>Let's have a sharing thread -- &quot;things I wish somebody had told me when I was first starting with Pd.&quot;</p>
<p>My #1: Basic list operations of iteration and incremental &quot;fill.&quot; It took me probably half a year to discover the [list] operators and be able to use them reliably for these two absolutely essential procedures. (It turns out that these operations aren't so difficult after all, but it took far too long to figure it out.)</p>
<p><img src="/uploads/files/1605338689951-pd-things-i-wish-i-knew.png" alt="pd-things-i-wish-i-knew.png" class="img-responsive img-markdown" /></p>
<p>hjh</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd</guid><dc:creator><![CDATA[ddw_music]]></dc:creator><pubDate>Sat, 14 Nov 2020 07:26:17 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sat, 14 Nov 2020 07:55:03 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ddw_music">@ddw_music</a> That I could become as dangerously addicted as to some very powerful drugs.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/2</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Sat, 14 Nov 2020 07:55:03 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sat, 14 Nov 2020 08:23:02 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ddw_music">@ddw_music</a> That all list objects other than [list store] iterate through the entire list every time and that most things can be done more efficiently with [list store]<br />
<img src="/uploads/files/1605341605067-untitled.png" alt="Untitled.png" class="img-responsive img-markdown" /></p>
<p>Edit: First one is thanks too <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ingox">@ingox</a><br />
Edit Again; Actually I do not know that [list store] does not iterate through the entire list, it might just be more efficient because it can often do the work of multiple list object all by its lonesome so you only iterate the list once instead of twice  in my vs your examples. Hopefully someone will chime in here.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/3</guid><dc:creator><![CDATA[oid]]></dc:creator><pubDate>Sat, 14 Nov 2020 08:23:02 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sat, 14 Nov 2020 09:22:12 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/oid">@oid</a> Hm, yeah, list store looks useful. The first one avoids making multiple list instances, should be more efficient.</p>
<p>My examples don't iterate twice though.</p>
<p>I wonder where I would have found these templates in Pd documentation. Taking apart lists is pretty basic, warrants more attention than community forum folklore.</p>
<p>hjh</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/4</guid><dc:creator><![CDATA[ddw_music]]></dc:creator><pubDate>Sat, 14 Nov 2020 09:22:12 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sat, 14 Nov 2020 10:00:38 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ddw_music">@ddw_music</a> From what I understand, every time you send to the hot inlet of the standard list objects it iterates through the full list. In your list iterate example the [list] and [list split 1] each iterate through the full list, making two iterations. Your second does not, I did not look close enough on my first glance, but it does iterate through the list once more than [list store] would (assuming [list store] does iterate), 5 times for [list prepend] and once for [list]. For short lists this would notf matter, but could make a big difference on large lists, and a huge difference if [list store] prepends/appends without iteration, we will have to wait for someone more knowledgeable to answer that or just accept that it is faster and be happy at that.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/5</guid><dc:creator><![CDATA[oid]]></dc:creator><pubDate>Sat, 14 Nov 2020 10:00:38 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sat, 14 Nov 2020 11:34:57 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/oid">@oid</a> said:</p>
<blockquote>
<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ddw_music">@ddw_music</a> From what I understand, every time you send to the hot inlet of the standard list objects it iterates through the full list.</p>
</blockquote>
<p>So mine look like O(n) but they're really O(n^2). I see... you're talking about internals.</p>
<p>This should all be documented... List operations are fundamental (and, even after a year, the solution I arrived at is not optimal).</p>
<p>hjh</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/6</guid><dc:creator><![CDATA[ddw_music]]></dc:creator><pubDate>Sat, 14 Nov 2020 11:34:57 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sat, 14 Nov 2020 12:27:19 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ddw_music">@ddw_music</a> Documentation is not one of PureData's strong points. Sometimes I think it's only real strong point is the one <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> alluded too and all of us have completely lost perspective.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/7</guid><dc:creator><![CDATA[oid]]></dc:creator><pubDate>Sat, 14 Nov 2020 12:27:19 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sat, 14 Nov 2020 15:40:38 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ddw_music">@ddw_music</a> <a href="https://forum.pdpatchrepo.info/topic/11122/faster-list-drip-with-list-store-pd-0-48" rel="nofollow">https://forum.pdpatchrepo.info/topic/11122/faster-list-drip-with-list-store-pd-0-48</a><br />
Arrays could be quicker for some purposes.<br />
The zexy library has a range of externals for arrays/tables.<br />
Probably cyclone/zl is worth a look for lists as externals are often more efficient.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/8</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Sat, 14 Nov 2020 15:40:38 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sat, 14 Nov 2020 15:24:57 GMT]]></title><description><![CDATA[<p>I was pretty sure that [list foreach] was already there to iterate, but nope ...</p>
<p>.... just an old PR &lt; <a href="https://github.com/pure-data/pure-data/pull/595" rel="nofollow">https://github.com/pure-data/pure-data/pull/595</a> &gt; never merged!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/9</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 14 Nov 2020 15:24:57 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sat, 14 Nov 2020 22:27:13 GMT]]></title><description><![CDATA[<p>That using vanilla is not actually tying one hand behind your back. For years I used extended/pile of externals and that kept me from really learning pd, I just found an external to do what I needed. The reality is far more nuanced, vanilla is very capable, the gains offered by externals are often purely academic, and the ability to interact with the internal logic of an abstraction vs an external can make the vanilla abstraction the more efficient option in the end. I think the programmers in the community often forget that many who come to pd are not programmers or especially logical and the nay-saying against vanilla can result in dependence upon externals instead of understanding of the language.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/10</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/10</guid><dc:creator><![CDATA[oid]]></dc:creator><pubDate>Sat, 14 Nov 2020 22:27:13 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sat, 14 Nov 2020 22:45:47 GMT]]></title><description><![CDATA[<blockquote>
<p>This should all be documented... List operations are fundamental (and, even after a year, the solution I arrived at is not optimal).</p>
</blockquote>
<p>Generally, I'd advise you to be cautious about any non-signal class in Pd where you aren't pre-allocating the number of items at object instantiation time.</p>
<p>Even if <code>[list store]</code> were improved so that it doesn't allocate memory on each call, that doesn't improve the worst case performance. And if you are trying to hit soft realtime deadlines with a chain of signal objects, worst case is all you should care about.</p>
<p>Also, notice that the use of alloca in the <code>[list]</code> family objects doesn't help you here because the implementation silently shifts between stack and heap allocation on an arbitrary size boundary. You can hack your way around that as I'm sure most Pd users do, but it's just not a great interface for a realtime environment.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/11</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/11</guid><dc:creator><![CDATA[jancsika]]></dc:creator><pubDate>Sat, 14 Nov 2020 22:45:47 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sat, 14 Nov 2020 23:32:48 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/jancsika">@jancsika</a> Are you saying that in situations where timing is critical a fixed sized array should be used instead of [list] objects? If not, can you give the laymen version for us non-programmers?</p>
<p>Edit; I assume a list created with [pack] would be an example of a list whose number of items are pre-allocated at instantiation time and would be as good as an array in this case?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/12</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/12</guid><dc:creator><![CDATA[oid]]></dc:creator><pubDate>Sat, 14 Nov 2020 23:32:48 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sun, 15 Nov 2020 03:22:24 GMT]]></title><description><![CDATA[<blockquote>
<p>Are you saying that in situations where timing is critical a fixed sized array should be used instead of [list] objects? If not, can you give the laymen version for us non-programmers?</p>
</blockquote>
<blockquote>
<p>Edit; I assume a list created with [pack] would be an example of a list whose number of items are pre-allocated at instantiation time and would be as good as an array in this case?</p>
</blockquote>
<p>Yes, that's correct.</p>
<p>Now-- you can run into a situation where you need to manipulate a message that is large enough to be cumbersome for <code>[pack]</code> yet still small enough to process reliably using <code>[list]</code> objects. My point is that the interface of <code>[list]</code> doesn't tell you when you've gone from stack allocation-- which is predictable-- to heap allocation-- which isn't as predictable. It's hard-coded to make the shift at lists greater than 100 elements, but even knowing that it's hard to keep track in a non-trivial chain of objects.</p>
<p>Furthermore, it's not clear to the user which <code>[list]</code> objects actually need to copy lists in the first place. For example-- <code>[list split]</code> does not copy the list. That means that the size of the list doesn't affect the time the object takes to compute its output.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/13</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/13</guid><dc:creator><![CDATA[jancsika]]></dc:creator><pubDate>Sun, 15 Nov 2020 03:22:24 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sun, 15 Nov 2020 08:36:22 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/oid">@oid</a> said:</p>
<blockquote>
<p>.... the gains offered by externals are often purely academic, and the ability to interact with the internal logic of an abstraction vs an external can make the vanilla abstraction the more efficient option in the end. I think the programmers in the community often forget that many who come to pd are not programmers or especially logical and the nay-saying against vanilla can result in dependence upon externals instead of understanding of the language..... &lt;</p>
</blockquote>
<p>I think there is a little too much vanilla evangelism.<br />
Almost everyone using Pd is trying to get a job done.<br />
I want to plonk down my laptop for a show and know that all my effort, and that of my clients, will not have been ruined by failure.  So patches are tested to destruction and use any tool that makes success more likely.<br />
That means I don't move on as quickly as some.<br />
My laptops have not been connected to the internet for years....... have had no updates since they were proven fool proof.... and so the externals from extended still play a huge part.<br />
For a long time I tried to go pure brown envelope.  But it was hard.  While extended was said to be redundant vanilla really didn't have the tools to replace it.<br />
That changes slowly of course, but the 12 year period leading up to the release of extended was as explosive as Nasa going to the moon and throwing all that work and knowledge away to reinvent the wheel seems pointless to me.<br />
Look back in time through this forum and you will almost always find the same discussion from long ago.<br />
That is the real &quot;wiki&quot; &quot;knowledge base&quot; &quot;documentation&quot; problem with Pd....... that the information is almost always already available but no moderator has the time to research and step in with......<br />
&quot;Sorry.... this question has already been answered&quot;....</p>
<p>And all those externals were written to solve problems for which Vanilla had no efficient solution.<br />
Or no solution at all.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/14</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/14</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Sun, 15 Nov 2020 08:36:22 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sun, 15 Nov 2020 08:56:52 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/oid">@oid</a> well abstractions are good for understanding the language and often good for quick development. However, c externals are almost always far more efficient/fast if the same general algorithm is used. Just for the simplest example, getting a &quot;float&quot; in pd requires a few function calls: sending a &quot;bang&quot; message to an object that calls its outlet function, which finds the connection and calls the &quot;bang&quot; method for float which then calls the outlet function after accessing the data itself (the actual float value). in c all that would be is 1 memory lookup, and would require the memory of just 1 float instead of an entire pd object. And that isn't even counting all of the extra space and processing it takes to manage the object and class.<br />
You can do a lot in vanilla but there are definitely things that are way easier to do even in c. A good example is any list processing, or any searching or sorting algorithm, or any manipulations of more complex data structures.<br />
Personally I like to use pd for signal-graphs and some message glue, with lua doing the structure and sequencing (with pdlua) and c doing the complex low-level or data structure stuff.</p>
<p>you should be able to make almost anything in vanilla, but for practical use it makes more sense to use compiled externals where possible. I wouldn't necessarily call the gains &quot;purely academic&quot; anyways.<br />
of course you also have to consider how many dependencies you want your patches to rely on..</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/15</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/15</guid><dc:creator><![CDATA[seb-harmonik.ar]]></dc:creator><pubDate>Sun, 15 Nov 2020 08:56:52 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sun, 15 Nov 2020 09:46:54 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/oid">@oid</a> In the audio domain..... sub sample process etc. externals are useful if not inevitable.<br />
But even in patching efficiency (not processing efficiency).<br />
With an external I can make a mixer.......<br />
<img src="/uploads/files/1605430883091-capture.jpg" alt="Capture.JPG" class="img-responsive img-markdown" /></p>
<p>and this is what I had to do with dynamic patching in Vanilla to replace it.....<br />
<a href="/uploads/files/1605430937097-matrix.zip">matrix~.zip</a><br />
Plus a dynamic patching headache to connect it to the rest of the patch once it has built.</p>
<p>The ones I never managed to replace were [lowshelf] and [highshelf] and [equalizer] (/ggee) ..... simple math functions that my simple brain never managed to replicate in Vanilla.<br />
Their absence from the Vanilla distribution makes [biquad~]...... that should be the most useful filter in Pd..... obsolete for any but the most initiated........ unless you actually need a 5512.5 Hz notch filter @44.1k......<br />
David.</p>
<p>((( P.S. [equalizer] was included in Vanilla up to Pd 0.47.1...... and then in 0.48 it disappeared.<br />
So it's absence was recognised as a problem..... and then it was dropped for &quot;purity&quot;..???.... or simply forgotten.)))</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/16</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/16</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Sun, 15 Nov 2020 09:46:54 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sun, 15 Nov 2020 09:37:26 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/jancsika">@jancsika</a> So my standard practice of using list objects for things I pack and unpack and arrays for everything else is a good way to go. Don't think I have ever made a list of 100 items, at least not on purpose. Thanks.</p>
<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/seb-harmonik-ar">@seb-harmonik.ar</a> To quote myself from that post</p>
<blockquote>
<p>The reality is far more nuanced</p>
</blockquote>
<p>Note that I did not say that reality was black and white and that externals are evil and should always be avoided. The point being that neither extremes are all that great, if you do not have a good foundation in vanilla you will likely not have much success in puredata., giving a beginner without that foundation an external to do the work for them can be detrimental to their learning and act as a crutch. I gave an example of when abstractions can be better and why, you get access to the internal logic of the abstraction, you do not get that with an external, if you need access to that logic the abstraction will often win compared to the external and the extra logic needed to fake having access to the internals. Between the poor documentation and the tendency to answer questions with externals it can be very difficult to really learn pd for the non-programmer. What really made it work for me this time when I decided to return to pd was that I requested vanilla answers to my questions and all of a sudden I got all sorts of in depth explanations, many ways accomplishing the same task, and links to other threads that go deeper instead of the names of some externals. Things I wish I had known when I started Pd.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/17</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/17</guid><dc:creator><![CDATA[oid]]></dc:creator><pubDate>Sun, 15 Nov 2020 09:37:26 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sun, 15 Nov 2020 09:40:52 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/oid">@oid</a> I agree...... except for the &quot;difficult for a non-programmer&quot; where I know from my experience that the opposite can be true.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/18</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/18</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Sun, 15 Nov 2020 09:40:52 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sun, 15 Nov 2020 09:42:48 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> That is why I said &quot; it CAN be very difficult&quot; instead of &quot;it IS very difficult&quot; <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/13134/things-i-wish-i-had-known-when-i-started-pd/19</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/19</guid><dc:creator><![CDATA[oid]]></dc:creator><pubDate>Sun, 15 Nov 2020 09:42:48 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sun, 15 Nov 2020 09:44:12 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/oid">@oid</a> Ahhh... sorry.  I thought you were hedging your bets...... <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/satisfied.png" title="satisfied" alt=":satisfied:" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/20</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/20</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Sun, 15 Nov 2020 09:44:12 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sun, 15 Nov 2020 11:25:09 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/seb-harmonik-ar">@seb-harmonik.ar</a></p>
<blockquote>
<p>You can do a lot in vanilla but there are definitely things that are way easier to do even in c. A good example is any list processing, or any searching or sorting algorithm, or any manipulations of more complex data structures.<br />
Personally I like to use pd for signal-graphs and some message glue, with lua doing the structure and sequencing (with pdlua) and c doing the complex low-level or data structure stuff.</p>
</blockquote>
<p>This point shouldn't be overlooked.</p>
<p>There's a reason why graphical patchers never took over the programming world: they are actually quite bad at a lot of the things that typical programs have to do. (MSP himself admits as much.) Note, I'm not saying that graphical patchers <em>can't</em>, only that it's likely to be faster and clearer to express in other languages. Sufficiency != usability.</p>
<p>Pd: t b f b --&gt; initialize float box to 0, then &quot;until&quot; --&gt; float box --&gt; t f f --&gt; increment counter, and use the index into something else --&gt; final bang to output the result</p>
<p>C: <code>for(i = 0; i &lt; n; i++) ...</code> A bit ugly but already more concise.</p>
<p>SuperCollider: <code>n.do { |i| ... }</code> or if n is the size of an array, simply <code>array.do</code> or <code>array.collect</code> with a function body.</p>
<p>I recently watched a student struggle with the concept of recursive function calls in Lua, which showed me something about the way that patching wires can help visualize the process. So I'm not ignoring the appeal of patchers. But I don't want to use patchers for complex algorithms. (One concrete point: it's <em>painful</em> when you have to add an outlet in the middle of a t object. Really awful.)</p>
<p>I do understand the point of the discipline of doing it with vanilla. I'd suggest that there's always going to be a dividing line between implementation details you need to know and those that can stay under the hood, and that the position of this dividing line may be different for different people or circumstances. Coming to grips with pd list iteration helps me feel better about patching; but most of the students in my class couldn't care less. They have no commitment at all to this way of doing things (and the ones who <em>are</em> interested have already jumped ship and picked up Max). It would be silly to force them. If there's just an object they can use to pick a list apart, that's fine for them (and if somebody else built that object, then maybe I have time for my own projects).</p>
<p>hjh</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/21</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/21</guid><dc:creator><![CDATA[ddw_music]]></dc:creator><pubDate>Sun, 15 Nov 2020 11:25:09 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Sun, 15 Nov 2020 12:17:48 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ddw_music">@ddw_music</a></p>
<blockquote>
<p>it's painful when you have to add an outlet in the middle of a t object. Really awful</p>
</blockquote>
<p>This is where your intelligent patching comes in handy. Select the trigger, control+k to disconnect it, add the outlet, select the trigger and all the objects it connects too, drag a wire from the first outlet to the first destination, hit shift, release, connect the inlet, done. You can also get things to patch in different orders by going from different outlets to different destinations. It helps to get in the habit of not making massive triggers with 32 bangs, break it up, also ordering your patch to reflect the trigger will make the intelligent patching easier and more predictable, the object the first outlet goes to is right beneath that outlet and the object the second outlet goes to is beneath it and so on, sometimes it can not be helped but a [t a] can be placed to help keep order and bend wires when needed.<br />
<div class="embed-container"><iframe src="//player.vimeo.com/video/273707442" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div><br />
<div class="embed-container"><iframe src="//player.vimeo.com/video/279631360" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div></p>
<p>Sometimes things which are painful in puredata are relatively simple if you just open the patch  in a text editor or use the various command line tools like grep, sed, bash, etc.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/22</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/22</guid><dc:creator><![CDATA[oid]]></dc:creator><pubDate>Sun, 15 Nov 2020 12:17:48 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Wed, 18 Nov 2020 06:00:11 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/oid">@oid</a></p>
<p>OK, the videos are helpful, thanks. (Although -- vimeo positions its playback bar right over the mouse and key icons -- so it's a little difficult to read.)</p>
<p>Maybe some of the interface has changed? Fan-in and full connect are shown in the first video (0:30) without using any modifier keys, but I found that they need shift.</p>
<blockquote>
<p>It helps to get in the habit of not making massive triggers with 32 bangs</p>
</blockquote>
<p>I've never done this. I would push things down into subpatches long before reaching that point.</p>
<blockquote>
<p>also ordering your patch to reflect the trigger will make the intelligent patching easier and more predictable, the object the first outlet goes to is right beneath that outlet and the object the second outlet goes to is beneath it and so on</p>
</blockquote>
<p>I would guess that I'm more fastidious than most about lining up connections. Patchers are already less readable than code <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/wink.png" title="wink" alt=":wink:" /> -- arranging them poorly makes them impossible to work with.</p>
<p>Related to that point about ordering the objects: Why does ctrl-t connect the rightmost outlet to the leftmost inlet? Can't think of even one time I would have wanted this.</p>
<p><img src="/uploads/files/1605679068260-ctrl-t-huh.png" alt="ctrl-t-huh.png" class="img-responsive img-markdown" /></p>
<p>hjh</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/23</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/23</guid><dc:creator><![CDATA[ddw_music]]></dc:creator><pubDate>Wed, 18 Nov 2020 06:00:11 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Wed, 18 Nov 2020 06:52:53 GMT]]></title><description><![CDATA[<p>@ddw_</p>
<blockquote>
<p>Related to that point about ordering the objects: Why does ctrl-t connect the rightmost outlet to the leftmost inlet? Can't think of even one time I would have wanted this.</p>
<p><img src="/uploads/files/1605679068260-ctrl-t-huh.png" alt="ctrl-t-huh.png" class="img-responsive img-markdown" /></p>
</blockquote>
<p>Never having used the shortcuts that surprises me too.<br />
Is it an admission that for English speakers the right to left order is not intuitive?<br />
Or is it because of the order of creation of the number objects?<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/24</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/24</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Wed, 18 Nov 2020 06:52:53 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Wed, 18 Nov 2020 08:33:18 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ddw_music">@ddw_music</a> If you move the mouse cursor off of the video the playback bar should auto hide and clear your view. I have no idea about ctrl-t on fanned out connections, there must be some sort of logic, can not believe this has just been over looked for all these years. There is also a &quot;less intelligent patching&quot; video for when you have issues with pd trying to be too smart with the intelligent patching, don't recall what all was in that one, but perhaps it deals with this quirk and it is just pd being too smart. It is in the 'made with pd' section of the <a href="http://pdpatchrope.info" rel="nofollow">pdpatchrope.info</a> main page or can be found with a google search.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/25</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/25</guid><dc:creator><![CDATA[oid]]></dc:creator><pubDate>Wed, 18 Nov 2020 08:33:18 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Wed, 18 Nov 2020 14:16:17 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> said:</p>
<blockquote>
<p>Never having used the shortcuts that surprises me too.<br />
Is it an admission that for English speakers the right to left order is not intuitive?</p>
</blockquote>
<p>Right to left is an easy rule to learn (which follows easily from the principle that left inlets are more likely to be hot, though Max breaks this rule in places).</p>
<p>What surprises me is that it's a nearly ubiquitous rule but this editor feature violates it.</p>
<blockquote>
<p>Or is it because of the order of creation of the number objects?</p>
</blockquote>
<p>The video shows the same strange behavior. That would be a remarkable coincidence if I had accidentally created objects in the same order as the video... But I might be retest with different orders later.</p>
<p>With the information available to me now, it looks like a bug.</p>
<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/oid">@oid</a>: &quot;there must be some sort of logic, can not believe this has just been over looked for all these years&quot;</p>
<p>The same behavior is plainly visible in the video, so it's been overlooked for at least as long as that video has been published.</p>
<p>hjh</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/26</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/26</guid><dc:creator><![CDATA[ddw_music]]></dc:creator><pubDate>Wed, 18 Nov 2020 14:16:17 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Things I wish I had known when I started Pd&quot; on Thu, 19 Nov 2020 01:53:22 GMT]]></title><description><![CDATA[<p>Oh wait, I get it -- it's not the order of object creation; it must be the order of <em>connection</em> creation. And I'm pretty sure I had followed the video and used fan-out to make the connections.</p>
<p>In that case, fan-out is not following right-to-left -- if I had shift-dragged to the leftmost number box, it's probably making that connection first and filling in the others later. That would explain why t would be hitting the left one first.</p>
<p>EDIT: Confirmed, that's exactly it. If I shift-drag to the rightmost target object, then the connections are created in right-to-left order, and &quot;triggerize&quot; then accurately reflects that order. (So then the issue is that the video models the behavior of shift-dragging to the leftmost object, without explaining that this will give you a connection order that you didn't expect.)</p>
<p>hjh</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/27</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13134/things-i-wish-i-had-known-when-i-started-pd/27</guid><dc:creator><![CDATA[ddw_music]]></dc:creator><pubDate>Thu, 19 Nov 2020 01:53:22 GMT</pubDate></item></channel></rss>