On 5/27/26 14:18, IOhannes m zmoelnig via Pd-list wrote:
On 5/21/26 18:13, Alexandros Drymonitis wrote:
The help patch of [iemguts/savebangs] states that its second outlet fires before the patch is saved. I'm trying to use this object combined with [iemguts/canvasdelete], to delete some objects before the patch is saved, but it doesn't work.

I'm using this to also send a "clear" message to a subpatch, which seems to work. But "delete $1" triggered by a loop which in turned is triggered by the right outlet of [iemguts/savebangs] doesn't delete the objects before the patch is saved. Is this behaviour normal?

could you provide a (simplified) example patch the demonstrates the problem?
Here's a patch (attached). It seems that I was probably wrong, still the patch doesn't work as I expect it to work. Connect the right outlet of [savebangs] to the message underneath it and save. In [pd test1] only [osc~ 440] should remain, since the loop is set to run two times and delete two objects, [phasor~] and [cos~], but only one object gets deleted. The contents of [pd test2] are cleared though.
#N canvas 1082 653 466 550 12;
#X obj 48 45 iemguts/canvasdelete;
#X obj 50 94 iemguts/savebangs;
#N canvas 834 476 450 300 test1 0;
#X obj 61 52 osc~ 440;
#X obj 62 107 phasor~ 1;
#X obj 63 161 cos~;
#X restore 277 88 pd test1;
#N canvas 834 476 450 300 test2 0;
#X obj 63 66 array define test 10;
#X restore 277 118 pd test2;
#X msg 166 122 2;
#X obj 166 147 until;
#X obj 166 172 f;
#X obj 166 197 t f f;
#X obj 211 170 + 1;
#X obj 198 249 + 1;
#X msg 198 274 delete \$1;
#X obj 198 299 s pd-test1;
#X obj 166 223 t f f;
#X msg 166 360 clear;
#X obj 166 385 s pd-test2;
#X obj 166 332 sel 1;
#X connect 4 0 5 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 7 0 12 0;
#X connect 7 1 8 0;
#X connect 8 0 6 1;
#X connect 9 0 10 0;
#X connect 10 0 11 0;
#X connect 12 0 15 0;
#X connect 12 1 9 0;
#X connect 13 0 14 0;
#X connect 15 0 13 0;
---
[email protected] - the Pure Data mailinglist
https://lists.iem.at/hyperkitty/list/[email protected]/message/QDPLKPEKWPEPOP6454AQYEI53EZNAF5U/

To unsubscribe send an email to [email protected] mailing list
UNSUBSCRIBE and account-management -> https://lists.iem.at/

Reply via email to