<?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[Connect multiple outlets to the same inlet]]></title><description><![CDATA[<p>Hey all</p>
<p>Was curious if anybody had come up with a solution for quickly attaching many nodes of the same abstraction type to a single inlet on another node.  I've been trying to find out if PD has any way to read information on the currently selected nodes but it doesn't seem there is a way.</p>
<p>Usually it isn't too big of a deal but I'm not running into instances where I have 50+ nodes that I need to connect to the same cold inlet for storing values in a sequencer.  Doing these by hand for the smaller portions was tedious but not really a major issue.  Now though it is becoming both time consuming as well as the high quantity of connections creating more room for manual error (and with the giant wire nest it becomes next to impossible to actually see what's going on).</p>
<p>I was looking at the format of the connections in a text editor and</p>
<p>Any suggestions or existing solutions I am unaware of would be greatly appreciated.  Cheers</p>
<p>EDIT: So I see how things are created, essentially just order of creation.  With VIM was easy to connect these objects but still somewhat tedious.  Is there any way to query objects as to what that ID is?  If not, and it's essentially just line count within the canvas it exists within, maybe I'll rig up a simple PD object that will fetch and output this ID.  I feel like if you were able to readily fetch this ID, then something like dynamically connecting objects would be exponentially easier.  I have a severe disdain for tedious repetitive tasks and will follow up if I can come up with a decent tool for doing this.  It's too bad there isn't at least a basic unique ID per object as that would make this monumentally more simple.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 06:32:07 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/14027.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 10 Aug 2022 03:44:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Connect multiple outlets to the same inlet on Wed, 10 Aug 2022 04:21:56 GMT]]></title><description><![CDATA[<p>Hey all</p>
<p>Was curious if anybody had come up with a solution for quickly attaching many nodes of the same abstraction type to a single inlet on another node.  I've been trying to find out if PD has any way to read information on the currently selected nodes but it doesn't seem there is a way.</p>
<p>Usually it isn't too big of a deal but I'm not running into instances where I have 50+ nodes that I need to connect to the same cold inlet for storing values in a sequencer.  Doing these by hand for the smaller portions was tedious but not really a major issue.  Now though it is becoming both time consuming as well as the high quantity of connections creating more room for manual error (and with the giant wire nest it becomes next to impossible to actually see what's going on).</p>
<p>I was looking at the format of the connections in a text editor and</p>
<p>Any suggestions or existing solutions I am unaware of would be greatly appreciated.  Cheers</p>
<p>EDIT: So I see how things are created, essentially just order of creation.  With VIM was easy to connect these objects but still somewhat tedious.  Is there any way to query objects as to what that ID is?  If not, and it's essentially just line count within the canvas it exists within, maybe I'll rig up a simple PD object that will fetch and output this ID.  I feel like if you were able to readily fetch this ID, then something like dynamically connecting objects would be exponentially easier.  I have a severe disdain for tedious repetitive tasks and will follow up if I can come up with a decent tool for doing this.  It's too bad there isn't at least a basic unique ID per object as that would make this monumentally more simple.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet</guid><dc:creator><![CDATA[lo94]]></dc:creator><pubDate>Wed, 10 Aug 2022 04:21:56 GMT</pubDate></item><item><title><![CDATA[Reply to Connect multiple outlets to the same inlet on Wed, 10 Aug 2022 05:58:09 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/lo94">@lo94</a> [send] and [receive] I think.<br />
Another with a bang sent to request a resend of the data if that is necessary,</p>
<p>The basic unique ID of a window is $0 ..... but using it is only really useful within an abstraction.  Communicating using $0 is not easy outside that abstraction.  $1 $2 etc. are better for that as the value is known and will not change when reloading the patch as with $0.</p>
<p><a href="https://forum.pdpatchrepo.info/topic/9774/pure-data-noob/4" rel="nofollow">https://forum.pdpatchrepo.info/topic/9774/pure-data-noob/4</a></p>
<p>But I made too many assumptions about your post.<br />
Sends and receives for nodes could be switched on and off with spigots controlled from your master patch I suppose.<br />
The use of $ arguments still stands though.<br />
Any object (not message box) can use the arguments of the abstraction so e.g. [send data$1], [delay $2]... etc.<br />
or......<br />
<img src="/uploads/files/1660109382891-capture.jpg" alt="Capture.JPG" class="img-responsive img-markdown" /></p>
<p>Will send tagged data to the receiving node, tagged with the $1 Id of the sending node for your central storage system.</p>
<p>For getting the unique ID of a window (and any sub-patches within).....<br />
<img src="/uploads/files/1660109891304-capture1.jpg" alt="Capture1.JPG" class="img-responsive img-markdown" /><br />
The same can be done for $1 $2 etc., but also you will see the arguments that they have been given in their window name.</p>
<p>When you are creating a lot of abstractions (of the same abstraction?... 50+!!) you should consider using [clone].<br />
It is not straightforward on first contact, but once you get your head around the concept it saves a lot of time building a patch.</p>
<p>The unique ID of objects (creation number) is really only required for dynamic patching...... but that is another subject.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/2</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Wed, 10 Aug 2022 05:58:09 GMT</pubDate></item><item><title><![CDATA[Reply to Connect multiple outlets to the same inlet on Wed, 10 Aug 2022 06:10:12 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> I'll take a look into clone.  That might help me out.  I basically have a bunch of control objects that all use the same abstraction for sending/receiving to a central patch storage DB.  I create these instances through dynamic patching as well as the slider objects themselves.  Basically just did this so I didn't need to individually create each slider for say, a 64 step sequencer.  Obviously the downside to this is you wind up with lots of objects very quickly and a need to connect them in a variety of ways.</p>
<p>I'm reading about clone but does this sound like something that clone could potentially simplify?</p>
<p>Thank you for the reference, I'll have to experiment with that a bit tomorrow so see what its capabilities/limitations are.  Much appreciated as always! <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/smiley.png" title=":D" alt=":D" /></p>
<p>EDIT: I included an image of what I've been doing so far.  The [control-guts] abstraction is created in an editor I threw together, along with its associated GUI object which is initialized according to the values passed in from my editor.  Obviously, all use cases don't match (for instance, on this drum machine the trigger/probability sliders for each step will be used differently than the toggles which set the last step).  Between this and manually editing the textfiles with VIM, I've been able to get pretty decent efficiency, but being I'm new to PureData I wonder if there is a way to handle such things more efficiently.</p>
<p><img src="/uploads/files/1660111606591-patchsample.png" alt="PatchSample.PNG" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/3</guid><dc:creator><![CDATA[lo94]]></dc:creator><pubDate>Wed, 10 Aug 2022 06:10:12 GMT</pubDate></item><item><title><![CDATA[Reply to Connect multiple outlets to the same inlet on Wed, 10 Aug 2022 06:22:09 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/lo94">@lo94</a> [clone] might not work for you if you want to see the sliders, as you cannot see all the instances at once....<br />
When you dynamically create your 50+ instances of the abstraction you can add $1 using a counter to pack the value for each, and place them neatly on the patch.....<br />
e.g. below.<br />
Beware........ adding $0 as the first argument for the abstraction adds the $0 value of the mother patch as $1 for the abstraction, not the unique ID of the created abstraction.<br />
David.<br />
<img src="/uploads/files/1660112038354-capture.jpg" alt="Capture.JPG" class="img-responsive img-markdown" /><br />
creates.....<br />
<img src="/uploads/files/1660112527009-capture1.jpg" alt="Capture1.JPG" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/4</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Wed, 10 Aug 2022 06:22:09 GMT</pubDate></item><item><title><![CDATA[Reply to Connect multiple outlets to the same inlet on Wed, 10 Aug 2022 06:21:10 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> Ah okay.  This seems useful.  I will likely try to see if I can rig something up to make dynamic patching easier in the coming weeks.  Do you happen to know if PD has any sort of event handling capabilities that allow you to send messages to currently selected objects?  If so, I can't imagine rigging something up would be tremendously complicated</p>
<p>EDIT: Ah yeah I'm aware of the $0 adding the parent patch.  That was my intention, so it can communicate with the parent patches $0 send/receive events</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/5</guid><dc:creator><![CDATA[lo94]]></dc:creator><pubDate>Wed, 10 Aug 2022 06:21:10 GMT</pubDate></item><item><title><![CDATA[Reply to Connect multiple outlets to the same inlet on Wed, 10 Aug 2022 06:28:12 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/lo94">@lo94</a> I think send the message to all, and use a [spigot] so that only selected items actually receive the message.<br />
You can use another global message to turn off previously selected items (or not) when you select a new one like this......<br />
<a href="/uploads/files/1660112869492-solo_select.zip">solo_select.zip</a><br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/6</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Wed, 10 Aug 2022 06:28:12 GMT</pubDate></item><item><title><![CDATA[Reply to Connect multiple outlets to the same inlet on Wed, 10 Aug 2022 06:44:45 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> Ahh okay, this is a clever solution.  I hadn't thought of using spigot in regards to a global receiver like that.  Definitely need to implement this in some of my abstractions.</p>
<p>Although this seems to limit you to custom abstractions.  I was wondering if PD actually keeps track of the currently selected objects when in edit mode, that somehow we might be able to peek behind the curtain at.  I'm assuming that PD must have this information stored somewhere/somehow, it's more a matter of if it's made accessible somehow.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/7</guid><dc:creator><![CDATA[lo94]]></dc:creator><pubDate>Wed, 10 Aug 2022 06:44:45 GMT</pubDate></item><item><title><![CDATA[Reply to Connect multiple outlets to the same inlet on Wed, 10 Aug 2022 08:20:49 GMT]]></title><description><![CDATA[<p>[select 0 1 2 3 ...] for drum machine sequencing always reminds me of <a href="https://thedailywtf.com/articles/Jed-Code" rel="nofollow">Jed code</a> <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/laughing.png" title="laughing" alt=":laughing:" /> ... there's really got to be a better way.</p>
<p>hjh</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/8</guid><dc:creator><![CDATA[ddw_music]]></dc:creator><pubDate>Wed, 10 Aug 2022 08:20:49 GMT</pubDate></item><item><title><![CDATA[Reply to Connect multiple outlets to the same inlet on Wed, 10 Aug 2022 08:25:58 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ddw_music">@ddw_music</a> I'm sure there is haha.  I just started PD about a week ago and am definitely more of a traditional programmer.  I'm much less adept when it comes to visual programming.  Even when I do use visual programming in something like Unity/Unreal it winds up being more of a triggering state machine than anything else.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/9</guid><dc:creator><![CDATA[lo94]]></dc:creator><pubDate>Wed, 10 Aug 2022 08:25:58 GMT</pubDate></item><item><title><![CDATA[Reply to Connect multiple outlets to the same inlet on Wed, 10 Aug 2022 09:18:10 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/lo94">@lo94</a> looking at all those connections I thought I would mention the built in intelligent patching.<br />
where you can select all the nodes you want to connect, proceed to connect the first wire but hold the mouse button down, then tap the the shift key.. voila! all connected.<br />
one to many, many to many, many to one</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/10</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/10</guid><dc:creator><![CDATA[Balwyn]]></dc:creator><pubDate>Wed, 10 Aug 2022 09:18:10 GMT</pubDate></item><item><title><![CDATA[Reply to Connect multiple outlets to the same inlet on Wed, 10 Aug 2022 09:28:27 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/balwyn">@Balwyn</a> .... thank... you... so... much lol<br />
I had no idea this was a thing<br />
<img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/%2B1.png" title="+1" alt=":+1:" /> <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/100.png" title="100" alt=":100:" /> <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/pray.png" title="pray" alt=":pray:" /></p>
<p>Doesn't help so much with [select] but definitely does with patching many controls into a float's cold inlet and such</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/11</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/11</guid><dc:creator><![CDATA[lo94]]></dc:creator><pubDate>Wed, 10 Aug 2022 09:28:27 GMT</pubDate></item><item><title><![CDATA[Reply to Connect multiple outlets to the same inlet on Wed, 10 Aug 2022 19:36:45 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/lo94">@lo94</a> said:</p>
<blockquote>
<p>Do you happen to know if PD has any sort of event handling capabilities that allow you to send messages to currently selected objects?</p>
</blockquote>
<p>Here is a quicky showing how to work this with iemguts, also needs [list-drip] from list-abs or the <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ingox">@ingox</a> improved one from the abstractions forum. Select one of the [selectsend] objects and control click the bang, or select both. If you edit the patch you have to send a bang to [s refresh] to update the abstractions index, but that can be automated easily enough and it is a bit rough around the edges overall, just meant to show the concept. The iemguts help files should help you refine it to suit your needs.<br />
<img src="/uploads/files/1660127791244-untitled.png" alt="Untitled.png" class="img-responsive img-markdown" /><br />
<a href="/uploads/files/1660127940853-sendselect.pd">sendselect.pd</a><br />
<a href="/uploads/files/1660127948625-sendselect-help.pd">sendselect-help.pd</a></p>
<p>Edit: It seems I completely missed the point.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/12</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/12</guid><dc:creator><![CDATA[oid]]></dc:creator><pubDate>Wed, 10 Aug 2022 19:36:45 GMT</pubDate></item><item><title><![CDATA[Reply to Connect multiple outlets to the same inlet on Wed, 10 Aug 2022 16:59:29 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/lo94">@lo94</a> <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/exclamation.png" title="!!!" alt="!!!" /> just noticed that where I have put $2 below it should be $3 as you have two arguments already <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/exclamation.png" title="!!!" alt="!!!" /></p>
<p>Just back home and admiring the giant spirograph screenshot you posted above.<br />
As [select 0 1 2 3 etc.] is receiving numbers you can simply do away with it and send those numbers to all the [control] abstractions...... [send whatever]<br />
You will move the [select] function into the abstraction itself.</p>
<p>Create your abstractions as for example [control-guts DrumSeq#_ClapProb_hsl1 $0 arg] where &quot;arg&quot; is 0 to 15 for the 16 abstractions.<br />
Then, in the abstraction, instead of the inlet (or alongside) put.....<br />
<img src="/uploads/files/1660149087296-capture.jpg" alt="Capture.JPG" class="img-responsive img-markdown" /><br />
Then each abstraction produces the bang on the left outlet of [sel $2] only when it receives its number.<br />
My &quot;cold inlet&quot; in the screenshot is just to show that you will connect the left outlet of [select $2] to the same place as your current inlet.<br />
David.<br />
Ps..... now might be a good time to change the data to 1-16 so that $2 can match the &quot;hsl&quot; number (1-16) and so avoid later confusion..... a [+1] before [send whatever] will suffice.<br />
Of course &quot;whatever&quot; is also just for demo purposes.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/13</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/14027/connect-multiple-outlets-to-the-same-inlet/13</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Wed, 10 Aug 2022 16:59:29 GMT</pubDate></item></channel></rss>