[PD] Escaping/not resolving dollar argts in msgs/objects?

Ingo Stock mail at ingostock.de
Tue May 15 14:03:01 CEST 2018


Hi,

usually this is not necessary. As $0 changes with every patch opening,
the dynamically created objects containing $0 must be recreated again
every time. $0 resolves to an actual number in this process (i.e. 1023),
but this is alright, as you can access 1023-array1 through [array get
$0-array1] (if $0 equals 1023 in that session).

I attached a demo patch that shows how it can be done (even without
[makefilename]).

best wishes, ingo


On 05/15/2018 01:15 PM, Derek Kwan wrote:
> 
> Hello list,
> 
> Perhaps a bit of a long shot and pretty much the exact opposite of the $0
> in messages conversations as of late: Is there a way to NOT resolve
> dollar arguments in messages and/or objects?
> 
> Example case: Lately for a project I've wanted to create vast swaths of
> [array define]s and I've done so with dynamic patching. Since I want
> their bound symbols to be something like "$0-snd0", "$0-snd1"
> $0"-snd2"... "$0-snd50", I DON'T want dollar arguments (particularly the
> $0) to resolve to anything. Similarly, I store filepath + array symbol
> pairs in texts to do a big load at the beginning and for right now and
> can always add the $0-bit via passing that symbol through a
> [makefilename], but I'm wondering if I can pass $0s unresolved into a
> text without having to manually type it in via the popup window.
> 
> Of course I can always edit the patch in emacs/vim and do a
> search/replace, but I'm looking for an in-Pd solutions... Also for the
> array business I suppose I could do that via [clone], but that situation
> doesn't seem ideal either...
> 
> Thanks!
> 
> Derek
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: create-arrays.pd
Type: text/x-pd-l2ork
Size: 1606 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20180515/53ea571d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20180515/53ea571d/attachment.sig>


More information about the Pd-list mailing list