Greetings,
I am using a subpatch with a $0-name that I want to open with ;pd-$0-name vis 1, but for some reason I get this error message:
error: pd-$0-name: no such object
I tried different things like
guibang | [f $0] | [;pd-$1-name vis 1(
which did not work either, instead the error message was:
error: pd-$1-name: no such object
I found this thread in the archive which leads me to believe that it is possible to do this but the thread seems to be outdated http://lists.puredata.info/pipermail/pd-list/2002-10/008376.html. Is this really a bug that I should report or am I doing this wrong?
Here is an example
regards, alex
Hallo, alexandre matheson hat gesagt: // alexandre matheson wrote:
I am using a subpatch with a $0-name that I want to open with ;pd-$0-name vis 1, but for some reason I get this error message: error: pd-$0-name: no such object
Your first mistake here is to not remember the fact:
I tried different things like
guibang | [f $0] | [;pd-$1-name vis 1(
which did not work either, instead the error message was: error: pd-$1-name: no such object
And the second mistake is not forget about that fact:
The solution is, to create something like "pd-NUMBER-name" completely, which you can send into a message box where it is replacing a $-variable.
Attached patch shows the solution, but maybe you want to try it yourself first? Hint: [makefilename] is used.
Frank Barknecht _ ______footils.org_ __goto10.org__
This works, once again thanks a million
alex
On Lundi, décembre 5, 2005, at 04:39 am, Frank Barknecht wrote:
Hallo, alexandre matheson hat gesagt: // alexandre matheson wrote:
I am using a subpatch with a $0-name that I want to open with ;pd-$0-name vis 1, but for some reason I get this error message: error: pd-$0-name: no such object
Your first mistake here is to not remember the fact:
- There is *no* $0 variable in messages!
I tried different things like
guibang | [f $0] | [;pd-$1-name vis 1(
which did not work either, instead the error message was: error: pd-$1-name: no such object
And the second mistake is not forget about that fact:
- All $-variables have to be at the beginning of a word!
The solution is, to create something like "pd-NUMBER-name" completely, which you can send into a message box where it is replacing a $-variable.
Attached patch shows the solution, but maybe you want to try it yourself first? Hint: [makefilename] is used.
Ciao
Frank Barknecht _ ______footils.org_ __goto10.org__ <test.pd>_______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi Alexandre,
alexandre matheson wrote:
I am using a subpatch with a $0-name that I want to open with ;pd-$0-name vis 1, but for some reason I get this error message:
error: pd-$0-name: no such object
$0 and $1 not work at the end or middle of a message. Thus $1-name works, but pd-$1-name or pd-name-$1 does not. The solution is either to use [makefilename] or [pp] to construct the string message you need:
guibang | [f $0] | [$1-name( | [pp pd-] | [;$1 vis 1(
Let me know if that works. d.
Hallo, derek holzer hat gesagt: // derek holzer wrote:
Hi Alexandre,
alexandre matheson wrote:
I am using a subpatch with a $0-name that I want to open with ;pd-$0-name vis 1, but for some reason I get this error message:
error: pd-$0-name: no such object
$0 and $1 not work at the end or middle of a message. Thus $1-name works, but pd-$1-name or pd-name-$1 does not. The solution is either to use [makefilename] or [pp] to construct the string message you need:
guibang | [f $0] | [$1-name( | [pp pd-] | [;$1 vis 1(
Let me know if that works.
It doesn't: "pp" (or "prepend" or nowadays: "list prepend") creates a list. whose first element will be "pd-" in that case, so in the end you have [; pd- vis 1(, which is not, what you want.
You really need to use [makefilename] here, it even is a builtin Pd object.
Frank Barknecht _ ______footils.org_ __goto10.org__
Hi Frank,
Frank Barknecht wrote:
It doesn't: "pp" (or "prepend" or nowadays: "list prepend") creates a list. whose first element will be "pd-" in that case, so in the end you have [; pd- vis 1(, which is not, what you want.
You really need to use [makefilename] here, it even is a builtin Pd object.
It did here. I got a message which reads [;pd-2200 vis 1( where $0 = 2200.
I checked it before I posted. But I also suggested [makefilename]. Can we both be right? ;-)
d.
derek holzer wrote:
I checked it before I posted. But I also suggested [makefilename]. Can we both be right? ;-)
OK, we can't both be right!! I just checked it AGAIN, and actually checked to see if it did what it was supposed to... i.e. open a subpatch or abstraction named $0-name. It didn't, for precisely the reason you gave. [prepend] doesn't truely merge the atoms, it just makes a list.
One beer for Screamin' F. Barknecht, coming right up! d.
Hallo, derek holzer hat gesagt: // derek holzer wrote:
Frank Barknecht wrote:
It doesn't: "pp" (or "prepend" or nowadays: "list prepend") creates a list. whose first element will be "pd-" in that case, so in the end you have [; pd- vis 1(, which is not, what you want.
You really need to use [makefilename] here, it even is a builtin Pd object.
It did here. I got a message which reads [;pd-2200 vis 1( where $0 = 2200.
Hm, maybe we have different kinds of [pp]? The [pp] I have (an abstraction in iemabs, which calls iem_prepend_kernel inside) results in "pd- 123" (note the space inbetween!) as result in attached patch.
Frank Barknecht _ ______footils.org_ __goto10.org__