Personally, I often use $0 in large "initializer" message boxes:
[;$0-foo 10
;$0-bar 50
;$0-baz 10
etc.(
I like this better than creating dozens of individual [s] objects. The workaround is to use $1 instead and pass the $0 from a [float] object, but yeah...
It's also an issue when I want to create a message like this:
[read media/$1-$2.wav $0-buf-l $0-buf-r(
I basically have to append $0 to the incoming list and offset all dollars by 1:
[read media/$2-$3.wav $0-buf-l $1-buf-r(
It's just unnecessary mental overhead.
Of course, I could do this instead:
[list append read media/$1-$2.wav $0-buf-l $0-buf-r] -> [list trim]
But I find this ugly and unnecessary.
Whenever we need "$0" for a send name,
then i tyically use [send $0-foo], where there's no msgbox involved at all.
The message box syntax is often more convenient:
[;$0-array const $1(
Of course, I could just as well write
[const $1( -> [s $0-array]
but people are lazy :-)
IMO it is a real pain point. Otherwise this topic wouldn't come up again and again...
Christof
On 02.12.2021 23:09, IOhannes m zmölnig wrote:
On 12/2/21 18:35, Alexandre Torres Porres wrote:
Em qui., 2 de dez. de 2021 às 13:19, Ico Bukvic ico@vt.edu escreveu:
although the use cases of $0 inside a message remain relatively sparse.
I say it's very common.
that's funny. from my perspective (and i don't know anything, really) it *seems* that ico is speaking from the POV of someone who has been working with msgboxes that expand $0 for some time, whereas alex is mostly talking from a "wishlist" perspective.
as such i find it intersting that the two of you come to radically different conclusions about how *actually* useful that feature really is.
Whenever we need "$0" for a send name,
then i tyically use [send $0-foo], where there's no msgbox involved at all.
a table name
then i tyically use [array define $0-foo], where there's no msgbox involved at all.
or using messages as sends ;)
ah indeed. [; $0-foo init(
can't say i miss this much (but ymmv).
the *only* reason why i ever wanted to use $0 in a msgbox is for interacting with [soundfiler].
fmsd IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management ->https://lists.puredata.info/listinfo/pd-list