Hi,
In MAX when I want to use inline creation arguments I use the # sign to refer to them. This doesn' seem to work in PD and I can't figure out. Can anyone help me or point me to documentation? Pd documentation talks a lot about "creation arguments" but never explains how they actually work.
Thanks in advance, Nuno
Hallo!
anyone help me or point me to documentation? Pd documentation talks a lot about "creation arguments" but never explains how they actually work.
I'm shure it is explained somewhere, but don't know where ... In pd you can use $1 for first creation argument, $2 for the second etc.
LG Georg
Hi Georg,
I found it on the docs but I still can't figure out how to use it. I actually tried to add an argument to an abstract but nothing really happened.
I am sending you a dumb example attached so that you can, if possible, tell me what am I doing wrong. Inside "main" I have an instance of "sub" and now I have to send it "open n0.avi" in order to make it load the n0.avi file. I would like to just write "sub n0.avi".
Can you help me understand this? It seems to be quite simple but I am lost here.
Thanks, Nuno
-----Original Message----- From: Georg Holzmann [mailto:grhPD@gmx.at] Sent: quinta-feira, 8 de Dezembro de 2005 19:06 To: Nuno Godinho Cc: pd-list@iem.at Subject: Re: [PD] Inlinet creation arguments into abstracts
Hallo!
anyone help me or point me to documentation? Pd
documentation talks a
lot about "creation arguments" but never explains how they
actually work. I'm shure it is explained somewhere, but don't know where ... In pd you can use $1 for first creation argument, $2 for the second etc.
LG Georg
Hhhhhmmmmmmm...
I'm not sure I'm getting it right here.
Your patch actually works but what you'd like to do is make it simpler in case you have more instances of that sub.pd??
What's the relationship between this and creation arguments of the instance of the abstract.?
Sorry for being so dumb it doesn't appear clearly to me (-:
++
Jé
Nuno Godinho a écrit :
Hi Georg,
I found it on the docs but I still can't figure out how to use it. I actually tried to add an argument to an abstract but nothing really happened.
I am sending you a dumb example attached so that you can, if possible, tell me what am I doing wrong. Inside "main" I have an instance of "sub" and now I have to send it "open n0.avi" in order to make it load the n0.avi file. I would like to just write "sub n0.avi".
Can you help me understand this? It seems to be quite simple but I am lost here.
Thanks, Nuno
-----Original Message----- From: Georg Holzmann [mailto:grhPD@gmx.at] Sent: quinta-feira, 8 de Dezembro de 2005 19:06 To: Nuno Godinho Cc: pd-list@iem.at Subject: Re: [PD] Inlinet creation arguments into abstracts
Hallo!
anyone help me or point me to documentation? Pd
documentation talks a
lot about "creation arguments" but never explains how they
actually work. I'm shure it is explained somewhere, but don't know where ... In pd you can use $1 for first creation argument, $2 for the second etc.
LG Georg
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi Jé,
I am sorry if I didn't explain it well enough.
I want to avoid having to send the message "open n0.avi" into the "sub" abstraction. I will be using several instances of "sub". The problem is that when I create the object like "sub n0.avi", which should be defining the $1 (the leftmost inlet, right?) parameter, nothing happens. Get it? Now I have to send the filename through an inlet. I would like to define it as an inline constant argument. I just don't understand how to do it.
Maybe it would be easier if you could send me a working example of an object sending inline arguments into an abstraction.
Thanks, Nuno
-----Original Message----- From: pd-list-bounces@iem.at [mailto:pd-list-bounces@iem.at] On Behalf Of Jerome Tuncer Sent: quinta-feira, 8 de Dezembro de 2005 20:26 To: pd-list@iem.at Subject: Re: [PD] Inlinet creation arguments into abstracts
Hhhhhmmmmmmm...
I'm not sure I'm getting it right here.
Your patch actually works but what you'd like to do is make it simpler in case you have more instances of that sub.pd??
What's the relationship between this and creation arguments of the instance of the abstract.?
Sorry for being so dumb it doesn't appear clearly to me (-:
++
Jé
Nuno Godinho a écrit :
Hi Georg,
I found it on the docs but I still can't figure out how to
use it. I
actually tried to add an argument to an abstract but nothing really happened.
I am sending you a dumb example attached so that you can,
if possible,
tell me what am I doing wrong. Inside "main" I have an instance of "sub" and now I have to send it "open n0.avi" in order to
make it load
the n0.avi file. I would like to just write "sub n0.avi".
Can you help me understand this? It seems to be quite
simple but I am
lost here.
Thanks, Nuno
-----Original Message----- From: Georg Holzmann [mailto:grhPD@gmx.at] Sent: quinta-feira, 8 de Dezembro de 2005 19:06 To: Nuno Godinho Cc: pd-list@iem.at Subject: Re: [PD] Inlinet creation arguments into abstracts
Hallo!
anyone help me or point me to documentation? Pd
documentation talks a
lot about "creation arguments" but never explains how they
actually work. I'm shure it is explained somewhere, but don't know where ... In pd you can use $1 for first creation argument, $2 for the second etc.
LG Georg
--
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Thu, 8 Dec 2005, Nuno Godinho wrote:
I want to avoid having to send the message "open n0.avi" into the "sub" abstraction. I will be using several instances of "sub". The problem is that when I create the object like "sub n0.avi", which should be defining the $1 (the leftmost inlet, right?) parameter, nothing happens.
$1 in messageboxes doesn't mean the same as $1 in objectboxes. In
messageboxes, $ refers to arguments of the incoming messages in that
messagebox's inlet, and not to the enclosing abstraction's arguments.
Because of that, you'd have to put this in your abstraction:
[loadbang] | [symbol $1] | [open $1} | ...
Where [] means objectbox (Ctrl+1) and [} means messagebox (Ctrl+2).
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada