<div dir="ltr">oh, and if someone out there would like to collaborate with me in an external, for easy prototyping, we could start with the current inlet~  structure as a model, but like I said, I couldn't get there, so if anyone succeeds and can send me the code, we could have some fun more easily<div><br></div><div>cheers</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-03-07 20:35 GMT-03:00 Alexandre Torres Porres <span dir="ltr"><<a href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ok, the thread was digressing, so I opened a new one... There's a suggestion to add outlets to inlet~ in: <a href="https://github.com/pure-data/pure-data/issues/259" target="_blank">https://github.com/pure-data/p<wbr>ure-data/issues/259</a> One of the outlets would report if a signal is connected or not (as discussed in the previous thread), the other would route control messages.<div><div class="gmail_extra"><br></div><div class="gmail_extra">I got this itch to try and make a Pull Request for it. First I tried to make it as an external, but couldn't really do it. I tried copying the code of inlet into a new external, without any changes, but I seem to have failed miserably at it.</div><div class="gmail_extra"><br></div><div class="gmail_extra">So I went ahead and started editing Pd's code to see what would happen and if I could do a Pull Request. It was easier to do that, and I was apparently on the right track. So I first added a new control outlet to pass/route all control data fed into an [inlet~] object.</div><div class="gmail_extra"><br></div><div class="gmail_extra">The problem now is that inlet~ still only accepts signals, and will print an error like inlet: <span style="background-color:rgb(243,243,243)"><font color="#ff0000">expected 'signal' but got 'bang'</font></span> ... so now what? I figure it'd be crazy to change Pd's code elsewhere, so I looked at it and I assume that this is being set here. </div><div class="gmail_extra"><br></div><div class="gmail_extra">




<span></span>





<p class="m_5713003539315117072gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="m_5713003539315117072gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">static</span><span class="m_5713003539315117072gmail-s2" style="font-variant-ligatures:no-common-ligatures"> </span><span class="m_5713003539315117072gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(186,45,162)">void</span><span class="m_5713003539315117072gmail-s2" style="font-variant-ligatures:no-common-ligatures"> *vinlet_newsig(t_symbol *s)</span></p>
<p class="m_5713003539315117072gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="m_5713003539315117072gmail-s2" style="font-variant-ligatures:no-common-ligatures">{</span></p>
<p class="m_5713003539315117072gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="m_5713003539315117072gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="m_5713003539315117072gmail-Apple-converted-space">    </span>t_vinlet *x = (t_vinlet *)pd_new(vinlet_class);</span></p>
<p class="m_5713003539315117072gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="m_5713003539315117072gmail-s2" style="font-variant-ligatures:no-common-ligatures"><span class="m_5713003539315117072gmail-Apple-converted-space">    </span>x->x_canvas = canvas_getcurrent();</span></p>
<p class="m_5713003539315117072gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span class="m_5713003539315117072gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(204,204,204)"><span class="m_5713003539315117072gmail-Apple-converted-space" style="color:rgb(0,0,0);font-weight:normal">    </span><font color="#000000">x->x_inlet = canvas_addinlet(x->x_canvas, &x->x_obj.ob_pd, </font><font color="#ff0000">&s_signal</font><font color="#000000">);</font></span></p>


 </div><div class="gmail_extra">Am I right? So I ask, how can I make this external accept ANY kind of message, not just signals?</div><div class="gmail_extra"><br></div><div class="gmail_extra">thanks</div><div class="gmail_extra"><br><div class="gmail_quote">2018-03-07 16:24 GMT-03:00 Alexandre Torres Porres <span dir="ltr"><<a href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="m_5713003539315117072gmail-m_2770596906216817236gmail-">2018-03-07 15:42 GMT-03:00 Alexandre Torres Porres <span dir="ltr"><<a href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">by the way, here's an issue on github<div><br></div><div><a href="https://github.com/pure-data/pure-data/issues/259" target="_blank">https://github.com/pure-data/p<wbr>ure-data/issues/259</a></div></div></blockquote><div><br></div></span><div>which had been posted on this thread already, haha, sorry</div></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>