<html><head></head><body>Miller did seem open to a control outlet on the inlet~ object. This was when we were discussing the clone object and how you have to pass messages to the first control inlet, if you have one, instead of just the first inlet always, to control the cloning operations. More generally, it would be great if abstractions could do anything a compiled object could do.<br>
Alex<br><br><div class="gmail_quote">On November 1, 2016 8:47:11 AM PDT, Alexandre Torres Porres <porres@gmail.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">2016-11-01 8:42 GMT-02:00 Pierre Guillot <span dir="ltr"><<a href="mailto:guillotpierre6@gmail.com" target="_blank">guillotpierre6@gmail.com</a>></span>:<br /><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:12.8px">Hi Alexandre,</span><div><br /></div><span style="font-size:12.8px">> I wonder if a thing like libpd could work as turning a vanilla patch into a</span><br style="font-size:12.8px" /><span style="font-size:12.8px">> </span><span style="font-size:12.8px">compiled object to be used inside pd... that'd be something like gen~ in</span><br style="font-size:12.8px" /><div><span style="font-size:12.8px">></span><span style="font-size:12.8px"> </span><span style="font-size:12.8px">max/msp.</span> </div><div><br /></div><div>Can you be more specific ? For the moment, I think it would be equivalent to use
an abstraction or the object [pd~] (libpd loads dynamically a patch so I guess that the execution of the patch cannot be optimized and except if the patch has been be somehow included inside the binary, you'll have to share the patch with the object). For me, the main advantage of gen~ is that it generates code that can be used inside an application but libpd already offers this feature. So what would be the advantage? </div></div></blockquote><div><br /></div><div><br /></div><div>Well, I thought the code could be optimized somehow, which I believe is something gen~ does, and that could be an advantage... but I really know nothing and now it seems that is not possible.</div><div><br /></div><div><br /></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="font-size:12.8px">> A - being able to retrieve control data </span><span style="font-size:12.8px">from [inlet~]</span><br
/></div><div><span style="font-size:12.8px"><br /></span></div><div><span style="font-size:12.8px">I did it in the Cicm Wrapper but it was pretty tricky. If you use the object [hoa.process~], you can send messages via a signal inlet for example. I'm not very proud of this because I had to hack a bit the inlet class. Now, I don't know if I must remove this feature or keep it... Perhaps somebody could tell/remind us if there is a reason why signal inlets can't receive messages.</span></div></div></blockquote><div><br /></div><div>cool, there's also a [route~] object from zexy which could be embedded in inlet~</div><div><br /></div><div><br /></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="font-size:12.8px">> </span><span style="font-size:12.8px">B - being able to know if a signal is connected to [inlet~]</span></div><div><span style="font-size:12.8px"><br
/></span></div><div><span style="font-size:12.8px">I also did it in the Cicm Wrapper, perhaps this feature could be included in the "m_pd.h" interface because for the moment you need to include "g_canvas.h" and "m_imp.h". Anyway, if you want a simple code that shows how to do it, I have an <a href="https://github.com/pierreguillot/pd-dummy/blob/master/src/connected_tilde.c" target="_blank">example</a> in my dummy library. </span></div></div></blockquote><div><br /></div><div>awesome, it's be great to have something like this in vanilla in order to improve the design of abstractions ;)</div><div><br /></div><div>cheers</div></div><br /></div></div>
<p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><pre class="k9mail"><hr /><br />Pd-list@lists.iem.at mailing list<br />UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a><br /></pre></blockquote></div></body></html>