hi William,
You can use $1 inside clone to name all arrays instead of $0,
so inside your cloned abstraction you'd have:
[vd~ DELAY$1]
fdch.github.io
On Aug 14, 2020, at 7:25 PM, William Huston williamahuston@gmail.com wrote:
Hi,
Is there any way to change the name of the delay line used by [vd~] with a message?
Alternatively, I think it would be nice for PD to have a mechanism of indirect reference. In this case,
[vd~ $0-delay]
$0-delay refers to the name of the delay line. What I'd like is a way to put a name like DELAY1 inside a variable which I can set and change. So something like
[vd~ ($0-DelayName)]
Where $0-DelayName is something I can set to DELAY1.
Are either of these possible?
The reason this has come up, is I'm trying to build an N-band flanger using [clone]. As it stands, it seems like I have to hard-code the name of the delay line read by each instance which is cloned. Since [clone] can only use an abstraction, this means the instances have a different $0 context than the parent patch.
So it seems I have to hard-code the name of the delay line used, which means I can have only one of my N-band flangers per patch. That's probably OK, but I would prefer not to use global variable names if possible.
Thanks! BH
-- William Huston: WilliamAHuston@gmail.com Binghamton NY
Public Service Mapping / Videography / Research / Education / Safety Advocacy Blog -- Facebook -- Twitter -- Youtube -- Podcast Blog Document collections: VirtualPipelines -- BHDCSDimockArchive Please support my work! -- TinyURL.com/DonateToBillHuston
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list