That sounds like a good lead. I've tried to strip it down to the issue,
but in the minimal example the issue isn't showing.
On 01.01.19 13:53, José de Abreu wrote:
Maybe the clear message you put inside each abstraction clears the
subpatch after pd throws the error message...
Em Ter, 1 de jan de 2019 09:55, Max <[email protected]
<mailto:[email protected]>> escreveu:
I have a patch with the singleton abstraction inside an abstraction
called with clone 14 times. There is a [text declare -k g_major]
created
once. Yet I get 14 Warnings in the Pd console like this:
warning: g_major: multiply defined
when looking into the other instances of the cloned abstraction with
[vis 8 1( etc. I can see however that the singleton patch worked, only
in instance 0 of clone is the abstraction which holds the text declare.
Likewise, the Pd search only finds one instance of the text declare.
It's this patch:
https://github.com/chairaudio/tickle-examples/blob/master/Pd/A11.karplus-division.pd
On 31.12.18 17:50, Max wrote:
> I found Enriques patch in the archive and solved it like he did.
> Attached just in case someone is wondering. It's probably some
> depth-first thing why my first approach didn't work as expected.
>
> m.
>
>
> On 30.12.18 22:10, Max wrote:
>> Ah, cool. Thanks IOhannes.
>>
>> I tried a Pd implementation but can't get it to work. Do you
know why
>> my approach fails?
>>
>> I see that NetPd has a singleton message, will try to analyze
how it's
>> done there.
>>
>> m.
>>
>>
>> On 24.12.18 11:40, IOhannes m zmölnig wrote:
>>> On 12/23/18 9:06 PM, Max wrote:
>>>>
>>>> Is there a smart way to solve this kind of issue?
>>>>
>>>
>>> search for "singleton".
>>>
>>> gadsmr
>>> IOhannes
>>>
>>>
>>> _______________________________________________
>>> [email protected] <mailto:[email protected]> mailing list
>>> UNSUBSCRIBE and account-management ->
>>> https://lists.puredata.info/listinfo/pd-list
>>>
>>
>>
>> _______________________________________________
>> [email protected] <mailto:[email protected]> mailing list
>> UNSUBSCRIBE and account-management ->
>> https://lists.puredata.info/listinfo/pd-list
>>
>
>
> _______________________________________________
> [email protected] <mailto:[email protected]> mailing list
> UNSUBSCRIBE and account-management ->
https://lists.puredata.info/listinfo/pd-list
>
_______________________________________________
[email protected] <mailto:[email protected]> mailing list
UNSUBSCRIBE and account-management ->
https://lists.puredata.info/listinfo/pd-list
#N canvas 781 247 450 300 10;
#X obj 33 56 inlet;
#X obj 134 132 abstraction2;
#X obj 255 76 block~ 1;
#N canvas 137 404 450 300 10;
#X obj 123 156 singleton instance;
#X floatatom 122 184 5 0 0 0 - - -;
#X connect 0 0 1 0;
#N canvas 3265 809 450 300 10;
#X obj 77 77 text define -k instance;
#A set 1 \; 2 \; 3 \; 4 \; 5 \; 44 \; 55 \; 66 \; 77 \; 88 \;;
#N canvas 180 176 658 327 10;
#X obj 317 48 text size instance;
#X msg 317 23 bang;
#X floatatom 317 76 5 0 0 0 - - -;
#X obj 150 180 clone abstraction 12 \$0;
#X msg 138 126 vis 5 1;
#X obj 390 165 text get instance;
#X floatatom 392 132 5 0 0 0 - - -;
#X floatatom 390 196 5 0 0 0 - - -;
#X connect 0 0 2 0;
#X connect 1 0 0 0;
#X connect 4 0 3 0;
#X connect 5 0 7 0;
#X connect 6 0 5 0;
#N canvas 627 465 543 515 10;
#X obj 17 14 loadbang;
#X obj 17 278 f \$0;
#X obj 284 59 f \$0;
#X msg 17 387 \; \$1 obj 20 20 hex-tunings;
#X msg 284 101 \; \$1 clear;
#X obj 182 247 outlet;
#X msg 182 179 1;
#X obj 17 129 sel 0;
#X obj 17 37 t b b b, f 45;
#X obj 17 153 t b b, f 28;
#X obj 17 106 f;
#X obj 34 225 f;
#X obj 44 345 symbol \$1;
#N canvas 1466 740 450 300 \$0-only-once 1;
#X obj 20 20 hex-tunings;
#X restore 215 15 pd \$0-only-once;
#X obj 284 79 makefilename pd-%d-only-once;
#X obj 17 301 makefilename pd-%d-only-once;
#X obj 17 323 t s b;
#X obj 17 366 pack s s;
#X obj 150 59 s \$1-knock;
#X obj 32 84 r \$1-response;
#X obj 34 179 r \$1-knock;
#X obj 34 247 s \$1-response;
#X connect 0 0 8 0;
#X connect 1 0 15 0;
#X connect 2 0 14 0;
#X connect 6 0 5 0;
#X connect 6 0 11 1;
#X connect 7 0 9 0;
#X connect 8 0 10 0;
#X connect 8 1 18 0;
#X connect 8 2 2 0;
#X connect 9 0 1 0;
#X connect 9 1 6 0;
#X connect 10 0 7 0;
#X connect 11 0 21 0;
#X connect 12 0 17 1;
#X connect 14 0 4 0;
#X connect 15 0 16 0;
#X connect 16 0 17 0;
#X connect 16 1 12 0;
#X connect 17 0 3 0;
#X connect 19 0 10 1;
#X connect 20 0 11 0;
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management ->
https://lists.puredata.info/listinfo/pd-list