Hi, dear list !
I know that there are alternatives to the illustrated problem, but i just wanted to point out (haha), that the "pointer" method for [array] objects is hardly documented and actually seems to be not working at all.
While said method works fine for [text], i have to say that [text]'s help patches would also benefit from a demonstration of that feature.
I personnaly find it very handy to be able to use [text] (or [array]) for local tasks only without having to worry about naming issues (duplicates etc.).
In my attached example, i was working on a simple vanilla-based binary-to-digital converter and i wanted to use [array sum] as a handmade [accum] object. While the "naming" method with array obviously works, the "pointer" method either doesn't or i don't understand it.
Thanks for any clarifications (and yes, i am aware of other vanilla and externalized methods to achieve this - but i try to understand [array]'s pointer logic)
Best
Oliver
Em sex., 17 de mai. de 2024 às 10:17, oliver oliver@klingt.org escreveu:
the "pointer" method for [array] objects is hardly documented and actually
seems to be not working at all.
While said method works fine for [text], i have to say that [text]'s help patches would also benefit from a demonstration of that feature.
Ok, I can improve help files, can you open an issue for we to discuss it in https://github.com/pure-data/pddp ? It is still vague how you want this improved
In my attached example, i was working on a simple vanilla-based binary-to-digital converter and i wanted to use [array sum] as a handmade [accum] object. While the "naming" method with array obviously works, the "pointer" method either doesn't or i don't understand it.
I see errors printed on your patch, don't you?
array set: unknown flag ... -s array sum: unknown flag ... -s
maybe this is a bug loading flags in [array], I will look more carefully.
cheers
Hi, documentation says you do need 2 symbols when using the '-s' flag, so it's a bug in your patch. Also, there's a [pd data-structures] subpatch with examples on how to use this flag, so I don't think there is a lack of information on the help file (same is true for [text]).
I wonder what Pd version or fork you have.
cheers
Em seg., 20 de mai. de 2024 às 13:55, Alexandre Torres Porres < porres@gmail.com> escreveu:
Em sex., 17 de mai. de 2024 às 10:17, oliver oliver@klingt.org escreveu:
the "pointer" method for [array] objects is hardly documented and actually
seems to be not working at all.
While said method works fine for [text], i have to say that [text]'s help patches would also benefit from a demonstration of that feature.
Ok, I can improve help files, can you open an issue for we to discuss it in https://github.com/pure-data/pddp ? It is still vague how you want this improved
In my attached example, i was working on a simple vanilla-based binary-to-digital converter and i wanted to use [array sum] as a handmade [accum] object. While the "naming" method with array obviously works, the "pointer" method either doesn't or i don't understand it.
I see errors printed on your patch, don't you?
array set: unknown flag ... -s array sum: unknown flag ... -s
maybe this is a bug loading flags in [array], I will look more carefully.
cheers
note that the error message made me believe the flag wasn't loaded properly and that there could be an issue, but a better error description should exist telling you need 2 symbol argos.
Em seg., 20 de mai. de 2024 às 13:59, Alexandre Torres Porres < porres@gmail.com> escreveu:
Hi, documentation says you do need 2 symbols when using the '-s' flag, so it's a bug in your patch. Also, there's a [pd data-structures] subpatch with examples on how to use this flag, so I don't think there is a lack of information on the help file (same is true for [text]).
I wonder what Pd version or fork you have.
cheers
Em seg., 20 de mai. de 2024 às 13:55, Alexandre Torres Porres < porres@gmail.com> escreveu:
Em sex., 17 de mai. de 2024 às 10:17, oliver oliver@klingt.org escreveu:
the "pointer" method for [array] objects is hardly documented and actually
seems to be not working at all.
While said method works fine for [text], i have to say that [text]'s help patches would also benefit from a demonstration of that feature.
Ok, I can improve help files, can you open an issue for we to discuss it in https://github.com/pure-data/pddp ? It is still vague how you want this improved
In my attached example, i was working on a simple vanilla-based binary-to-digital converter and i wanted to use [array sum] as a handmade [accum] object. While the "naming" method with array obviously works, the "pointer" method either doesn't or i don't understand it.
I see errors printed on your patch, don't you?
array set: unknown flag ... -s array sum: unknown flag ... -s
maybe this is a bug loading flags in [array], I will look more carefully.
cheers
Hi, Alex, thanks for your replies !
Ok, I can improve help files, can you open an issue for we to discuss it in https://github.com/pure-data/pddp ? It is still vague how you want this improved
After going through your answers and other examples again, i finally found the cause of my confusion.
In the [array define] help patch the method of remote receive objects is introduced, withe the object [array size -s float-array z] as a possible receiver.
What i didn't understand is that said objkect needs the "-s float-array z" argument to work this way. Could this be explained in the help patch ?
Why those specific arguments and how would a normal user know of them ?
(As for [text], those arguments would be "-s text t" to make things even more confusing ;-))
Anyway: Attached you will find a working patch for what i was trying to achieve - make [array] work with just it's pointer as a reference - without having to give it a specific name.
Thanks, Alex, you pointed me in the right direction ;-) Maybe the deeper knowledge behind all this is better left in the obscure after all ;-)
Best
Oliver
Hi, I don't really get what you want to be better explained, sorry, but can you open a ticket in https://github.com/pure-data/pddp for that?
Em qua., 22 de mai. de 2024 às 13:22, oliver oliver@klingt.org escreveu:
Hi, Alex, thanks for your replies !
Ok, I can improve help files, can you open an issue for we to discuss it in https://github.com/pure-data/pddp ? It is still vague how you want this improved
After going through your answers and other examples again, i finally found the cause of my confusion.
In the [array define] help patch the method of remote receive objects is introduced, withe the object [array size -s float-array z] as a possible receiver.
What i didn't understand is that said objkect needs the "-s float-array z" argument to work this way. Could this be explained in the help patch ?
Why those specific arguments and how would a normal user know of them ?
(As for [text], those arguments would be "-s text t" to make things even more confusing ;-))
Anyway: Attached you will find a working patch for what i was trying to achieve - make [array] work with just it's pointer as a reference - without having to give it a specific name.
Thanks, Alex, you pointed me in the right direction ;-) Maybe the deeper knowledge behind all this is better left in the obscure after all ;-)
Best
Oliver _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list