<?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[Abstracted patch seems to work but not its calling patch]]></title><description><![CDATA[<p>This little exercise patch somehow computes the successive factorials of a counter and the computation stops when the counter reaches the number Maxcount.<br />
<img src="/uploads/files/upload-f50a195d-1495-468b-a5fa-ffe33c8c6e05.png" alt="Screen Shot 2014-11-06 at 21.55.00.png" class="img-responsive img-markdown" /></p>
<p>I am here interested to work for abstractions, starting with this one</p>
<p><img src="/uploads/files/upload-fc98ef14-1fd9-430d-bb50-67319f298ae1.png" alt="Screen Shot 2014-11-06 at 22.00.24.png" class="img-responsive img-markdown" /></p>
<p>which replaces the center top incrementation process.</p>
<p>This abstraction - called &quot;+=1&quot; - looks fine : after one bang, the abstraction outputs the value 1.</p>
<p>But the calling patch doesn't output the value 1 as shown here :<br />
<img src="/uploads/files/upload-f35a0b1b-4d09-40d5-b67c-b46f2a0f45fe.png" alt="Screen Shot 2014-11-06 at 22.00.04.png" class="img-responsive img-markdown" /></p>
<p>I don't understand that the &quot;+=1&quot; abstracted patch outputs 1, and that this value &quot;1&quot; is not pushed down to the &quot;product&quot; box to make the 1 * 1 operation : who can help discover the error ?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8764/abstracted-patch-seems-to-work-but-not-its-calling-patch</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 15:33:09 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/8764.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Nov 2014 21:28:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Abstracted patch seems to work but not its calling patch on Thu, 06 Nov 2014 21:28:49 GMT]]></title><description><![CDATA[<p>This little exercise patch somehow computes the successive factorials of a counter and the computation stops when the counter reaches the number Maxcount.<br />
<img src="/uploads/files/upload-f50a195d-1495-468b-a5fa-ffe33c8c6e05.png" alt="Screen Shot 2014-11-06 at 21.55.00.png" class="img-responsive img-markdown" /></p>
<p>I am here interested to work for abstractions, starting with this one</p>
<p><img src="/uploads/files/upload-fc98ef14-1fd9-430d-bb50-67319f298ae1.png" alt="Screen Shot 2014-11-06 at 22.00.24.png" class="img-responsive img-markdown" /></p>
<p>which replaces the center top incrementation process.</p>
<p>This abstraction - called &quot;+=1&quot; - looks fine : after one bang, the abstraction outputs the value 1.</p>
<p>But the calling patch doesn't output the value 1 as shown here :<br />
<img src="/uploads/files/upload-f35a0b1b-4d09-40d5-b67c-b46f2a0f45fe.png" alt="Screen Shot 2014-11-06 at 22.00.04.png" class="img-responsive img-markdown" /></p>
<p>I don't understand that the &quot;+=1&quot; abstracted patch outputs 1, and that this value &quot;1&quot; is not pushed down to the &quot;product&quot; box to make the 1 * 1 operation : who can help discover the error ?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8764/abstracted-patch-seems-to-work-but-not-its-calling-patch</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8764/abstracted-patch-seems-to-work-but-not-its-calling-patch</guid><dc:creator><![CDATA[fr6]]></dc:creator><pubDate>Thu, 06 Nov 2014 21:28:49 GMT</pubDate></item><item><title><![CDATA[Reply to Abstracted patch seems to work but not its calling patch on Thu, 06 Nov 2014 22:58:41 GMT]]></title><description><![CDATA[<p>it's probably an order of operations problem, please read this <a href="http://forum.pdpatchrepo.info/topic/5692/hot-and-cold-inlets-execution-order-and-trigger">http://forum.pdpatchrepo.info/topic/5692/hot-and-cold-inlets-execution-order-and-trigger</a></p>
<p>I think there's some stuff in the documentation too, you just need to make sure the cold inlets get their numbers before the hot inlets</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8764/abstracted-patch-seems-to-work-but-not-its-calling-patch/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8764/abstracted-patch-seems-to-work-but-not-its-calling-patch/2</guid><dc:creator><![CDATA[seb-harmonik.ar]]></dc:creator><pubDate>Thu, 06 Nov 2014 22:58:41 GMT</pubDate></item><item><title><![CDATA[Reply to Abstracted patch seems to work but not its calling patch on Fri, 07 Nov 2014 19:35:40 GMT]]></title><description><![CDATA[<p>Thanks for giving me this direction : I believe to have understood the process Hot AND cold - in theory.</p>
<p>But this doesn't give my any clue yet about the example :</p>
<p><img src="/uploads/files/upload-b9144463-5b77-4f17-abc0-3766b2e62415.png" alt="Screen Shot 2014-11-07 at 20.30.31.png" class="img-responsive img-markdown" /></p>
<p>The bang initiated in &quot;A&quot; acts the same as in the patch with no abstraction - that is, :<br />
- As it is a bang to the b1 Hot input =&gt; the 0 value stored in b1 is  pushed to the Hot input of b2,<br />
making the + operation effective to produce the value 1 on b2 output -which is b output in the calling patch.</p>
<p><img src="/uploads/files/upload-19470606-cff7-4a9a-9703-024c8fdb664a.png" alt="Screen Shot 2014-11-07 at 19.25.13.png" class="img-responsive img-markdown" /></p>
<pre><code>      - We check for this value as a number box in b output.
</code></pre>
<p>So, that does mean - along the cord b-c - that the value 1 SHOULD be there at the Cold input of the mult box in C, while at the same moment a value 1 has been sent to the Hot input of the mult box via A, B-Hot input-B-output, C-Hot input..</p>
<p>But it looks like the value 1 at the output of Counter box has become 0 at the other end of cord</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8764/abstracted-patch-seems-to-work-but-not-its-calling-patch/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8764/abstracted-patch-seems-to-work-but-not-its-calling-patch/3</guid><dc:creator><![CDATA[fr6]]></dc:creator><pubDate>Fri, 07 Nov 2014 19:35:40 GMT</pubDate></item><item><title><![CDATA[Reply to Abstracted patch seems to work but not its calling patch on Fri, 07 Nov 2014 20:35:07 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>There is one more important concept to grasp here: when several patch cords are coming out of a same outlet, the order in which the data will flow is in accordance to their creation order (that is, the <strong>[bng]</strong> marked as <em>A</em> will send three bangs and the order in which they will arrive in <em>Maxcount</em>, <em>computeur</em> and <em>B</em> depends on how you created your patch).</p>
<p>To rely on this is very confusing and debugging can be very tricky. To solve this issue, always use an object named <strong>[trigger]</strong>, or simply <strong>[t]</strong>. Trigger will take a single input and will send them out in a specific order (from the rightmost outlet to the lefmost outlet). Example:</p>
<pre><code>[bng]
|
[trigger b b b]
|      |      |
[zzz(  [bar(  [foo(
|      |      |
+------+------+
|
[print]
</code></pre>
<p>If you'd construct the patch above and then look on your pd window, you would see that it printed the following messages in order:</p>
<pre><code>foo
bar
zzz
</code></pre>
<p>I hope this helps. Take care,<br />
Gilberto</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8764/abstracted-patch-seems-to-work-but-not-its-calling-patch/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8764/abstracted-patch-seems-to-work-but-not-its-calling-patch/4</guid><dc:creator><![CDATA[gsagostinho]]></dc:creator><pubDate>Fri, 07 Nov 2014 20:35:07 GMT</pubDate></item><item><title><![CDATA[Reply to Abstracted patch seems to work but not its calling patch on Fri, 07 Nov 2014 20:54:08 GMT]]></title><description><![CDATA[<p>That aspect of the question should bring the solution : I will check for this to morrow. I think I get a good point.</p>
<p>Thanks for sharing.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8764/abstracted-patch-seems-to-work-but-not-its-calling-patch/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8764/abstracted-patch-seems-to-work-but-not-its-calling-patch/5</guid><dc:creator><![CDATA[fr6]]></dc:creator><pubDate>Fri, 07 Nov 2014 20:54:08 GMT</pubDate></item><item><title><![CDATA[Reply to Abstracted patch seems to work but not its calling patch on Fri, 07 Nov 2014 21:23:40 GMT]]></title><description><![CDATA[<p>No problems, my pleasure. To get more information about trigger, see this: <a href="http://en.flossmanuals.net/pure-data/ch039_order-of-operations/" rel="nofollow">http://en.flossmanuals.net/pure-data/ch039_order-of-operations/</a></p>
<p>Take care and good luck,<br />
Gilberto</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8764/abstracted-patch-seems-to-work-but-not-its-calling-patch/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8764/abstracted-patch-seems-to-work-but-not-its-calling-patch/6</guid><dc:creator><![CDATA[gsagostinho]]></dc:creator><pubDate>Fri, 07 Nov 2014 21:23:40 GMT</pubDate></item><item><title><![CDATA[Reply to Abstracted patch seems to work but not its calling patch on Sat, 08 Nov 2014 17:08:41 GMT]]></title><description><![CDATA[<p>Ô Disorder !<br />
Ô Ôrder of Evaluation !<br />
Ôrder of Evaluation Does exist - I just met him ( It visited me long before I could recognise it ).</p>
<p><img src="/uploads/files/upload-f897d3b0-fabb-4fa8-847a-73193de9d4ba.png" alt="Screen Shot 2014-11-08 at 17.46.07.png" class="img-responsive img-markdown" /></p>
<p>In fact, 3 of the 6 connection alternatives between the 3 branches from the initial bang can be a solution - I made them all like a beast <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/persevere.png" title="persevere" alt=":persevere:" /></p>
<p>These 3 wrong alternatives are those which execute left branch before the middle one - as a bit of thinking might have assert.</p>
<p>And it is now clear to me that the trigger object helps by visually looking at the order of execution which has been graphically implemented - and the incremental abstraction exercise now works.<img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/relaxed.png" title="relaxed" alt=":relaxed:" /></p>
<p><img src="/uploads/files/upload-b8b05298-ae91-449b-9583-8226ab84e930.png" alt="Screen Shot 2014-11-08 at 18.06.51.png" class="img-responsive img-markdown" /></p>
<p>So many thanks to all of you ( when I was so reluctant to grasp this bit of intelligence..., at last ) !<br />
I can go on for abstractions.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8764/abstracted-patch-seems-to-work-but-not-its-calling-patch/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8764/abstracted-patch-seems-to-work-but-not-its-calling-patch/7</guid><dc:creator><![CDATA[fr6]]></dc:creator><pubDate>Sat, 08 Nov 2014 17:08:41 GMT</pubDate></item><item><title><![CDATA[Reply to Abstracted patch seems to work but not its calling patch on Sat, 08 Nov 2014 18:12:01 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>Just a small correction: a <strong>[trigger]</strong> is much more than a simple visualization aid for the order of operations; Consider this:</p>
<p><img src="/uploads/files/upload-df77f93b-36c3-46b7-9831-5be9fd6beb5f.png" alt="Screenshot from 2014-11-08 19:09:41.png" class="img-responsive img-markdown" /></p>
<p>The first trigger will output a float from the rightmost outlet, but it will output a bang (!) from the leftmost outlet. That is, there is no numbers coming from that outlet, so even if you connect a number box to it will stay on zero.</p>
<p>The second trigger will let pass anything that crosses it: that is, bang as input means bang as output, float as input means float as output, and so on.</p>
<p>So you may realize that actually it is a more powerful object than simply a visualization of the order of the cords.</p>
<p>Take care and good luck,<br />
Gilberto</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8764/abstracted-patch-seems-to-work-but-not-its-calling-patch/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8764/abstracted-patch-seems-to-work-but-not-its-calling-patch/8</guid><dc:creator><![CDATA[gsagostinho]]></dc:creator><pubDate>Sat, 08 Nov 2014 18:12:01 GMT</pubDate></item><item><title><![CDATA[Reply to Abstracted patch seems to work but not its calling patch on Sat, 08 Nov 2014 21:03:34 GMT]]></title><description><![CDATA[<p>For what I see here, not only reading the Floss manual is a must to learn seriously about Pd, but at the end there might be much wonder to reach.</p>
<p>Enlightened..</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8764/abstracted-patch-seems-to-work-but-not-its-calling-patch/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8764/abstracted-patch-seems-to-work-but-not-its-calling-patch/9</guid><dc:creator><![CDATA[fr6]]></dc:creator><pubDate>Sat, 08 Nov 2014 21:03:34 GMT</pubDate></item><item><title><![CDATA[Reply to Abstracted patch seems to work but not its calling patch on Sun, 09 Nov 2014 00:07:03 GMT]]></title><description><![CDATA[<p>If I may add, this is also a very good source of information about Pure Data (there is a printed version of this website, and this book totally worth its cost, but you can access all of its contents online and for free!): <a href="http://www.pd-tutorial.com/english/index.html" rel="nofollow">http://www.pd-tutorial.com/english/index.html</a></p>
<p>All the best,<br />
Gilberto</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/8764/abstracted-patch-seems-to-work-but-not-its-calling-patch/10</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/8764/abstracted-patch-seems-to-work-but-not-its-calling-patch/10</guid><dc:creator><![CDATA[gsagostinho]]></dc:creator><pubDate>Sun, 09 Nov 2014 00:07:03 GMT</pubDate></item></channel></rss>