<div dir="ltr">That is an awesome hack!  Nice one IOhannes :D<br><br>Just did a simple test, and it seems you can just take the basic idea and wrap that up as an abstraction to use as a replacement for [initbang], wherever you need it. <br><br>Also, i tried using \$0, to avoid the need for the spigot.  PD console prints an error:  "$0_initbang: no such object", but the bang does actually seem to be sent.  <div><br></div><div><br><br><br><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 6, 2015 at 5:51 AM, Jack <span dir="ltr"><<a href="mailto:jack@rybn.org" target="_blank">jack@rybn.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
</span>Without this last line in the abstraction, it is possible to use<br>
something like :<br>
$ sed -i '/inlet;/d' ./dynin.pd && if [[ $(tail -n1 dynin.pd) !=<br>
"_initbang bang;" ]] ; then echo "_initbang bang;" >> dynin.pd ; fi &&<br>
pd dynin-test.pd<br>
Then you can save your abstraction, this is ugly but seems to work...<br>
++<br>
<br>
Jack<br>
<div><div class="h5"><br>
<br>
<br>
Le 05/07/2015 22:07, Jack a écrit :<br>
> Yes, nice, all is in the last line in the abstraction ;) ++<br>
><br>
> Jack<br>
><br>
><br>
><br>
> Le 05/07/2015 22:01, Roman Haefeli a écrit :<br>
>> On Son, 2015-07-05 at 21:04 +0200, IOhannes m zmölnig wrote:<br>
>>> On 07/05/2015 08:57 PM, Alexandros Drymonitis wrote:<br>
>>>>> saving the "dynin.pd" abstraction, will break it.<br>
>>> [...]<br>
>>>> abstraction. I put [r _initbang] but it won't work.<br>
>>><br>
>>> the trick is *not* to have a [r _initbang] in your patch. the<br>
>>> trick is to generate a message sent to the "_initbang" label.<br>
>>> this is a fragile hack, hence all my warnings; esp. the first<br>
>>> warning "do not save" is for real - and it's not because you<br>
>>> will save the dynamically generated objects, but because it<br>
>>> will break the init logic.<br>
>>><br>
>>><br>
>>> and i would very much prefer if anybody who wants to use that<br>
>>> trick discovers themselves how it actually works (e.g. by<br>
>>> studying the patch i gave).<br>
><br>
>> Despite your slight tone of discouragement to use such a hack,<br>
>> it's still a cool and smart hack. Thanks for sharing.<br>
><br>
>> Roman<br>
><br>
><br>
>> _______________________________________________<br>
>> <a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list UNSUBSCRIBE and<br>
>> account-management -><br>
>> <a href="http://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> <a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list UNSUBSCRIBE and<br>
> account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
><br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1<br>
<br>
</div></div>iQEcBAEBAgAGBQJVmZjeAAoJEOuluecjw8GUCsMH/jpLsZiBW21Io1sYI4f/PQYi<br>
ltCZmSvJk9/qQ1xRkEPU0TT8TTEKl62otRplT8h91J4tIR/4Z1Uuvx7601o+NpCK<br>
udRyoK3E0adleK5xcF+NjMSJTjcR7C+DItQqtIY6YQyKFESgumhjfxwQsMtMVr/d<br>
w9pAmE96bzHT6oZR/8eqhVF0ktlnY+4iw9NE8x+4eIi5JycWoFiXBy8A+pHKyfSU<br>
IdnR06WlqguW2cnHyUbYzr2JiL1dRmrWYMqkbWcPf9XBVmsuvm1EpE7/MvBWcnX6<br>
Pr1qjA5uEPqY737QiGhhw0RPokhZPHXkpSlg/GYmf2E4+nCmg78FWW02C6V7RhU=<br>
=o5pJ<br>
<div class="HOEnZb"><div class="h5">-----END PGP SIGNATURE-----<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</div></div></blockquote></div><br></div>