Thanks both. Antoine's suggestion didn't quite work for me as I want to keep a flat folder structure. Alexandre's suggestion to use [savestate] put me on the right path, though I had to use a bit of massaging to make sure I would get a bang also the first time the abstraction is loaded (not only when opened after save), so I put together a mix of savestate and loadbang, making sure only the first bang from any of the two is taken into account at any time (see attached patch). Best, Giulio
Alexandre Torres Porres wrote on 31/12/2025 12:02:
Em qua., 31 de dez. de 2025 às 11:40, Giulio Moro via Pd-list <pd-list@lists.iem.at mailto:pd-list@lists.iem.at> escreveu:
or - perhaps more simply - to have some vanilla way of sending an initbang?I agree this is something that should belong to Vanilla. I had a PR for adding both [closebang] and [initbang] that had conflicts, see https://github.com/pure-data/pure-data/pull/616
I made a new one for [closebang] and will find my time now to add yet another just for initbang (I don't remember having a reason not to do that, i guess I was lazy?).
Now, as far as a hack goes, I believe one can try and make [savestate] behave like initbang, but I wouldn't know how they would differ and about any caveats (and I fear there might be ones). This is not something officially documented or supported.
Cheers and happy new year to all here in this beloved Pd community