hi list creating objects by pd-msg, in general . .. is it possible to initalise all the params witch apears in the proberties-dialog . .? . .i try to initalise a toggle-object . .means give arguments for size, send, receive and soon . . .but cant get it to work(exept position and connection), but i need to initalise a send and receive -argument in a toggle . . .
is there a documentation with the syntax for it . . ..beside the pd_msg-05? thanx nos
Hallo, noskule hat gesagt: // noskule wrote:
creating objects by pd-msg, in general . .. is it possible to initalise all the params witch apears in the proberties-dialog . .? . .i try to initalise a toggle-object . .means give arguments for size, send, receive and soon . . .but cant get it to work(exept position and connection), but i need to initalise a send and receive -argument in a toggle . . .
Just copy, how the toggle looks, when you look at it in the .pd file with a text editor. You cannot use $-variables then though. I just call the $'s "dollar" and search-replace them later with "$" using a text editor.
Frank Barknecht _ ______footils.org__
noskule wrote:
hi list creating objects by pd-msg, in general . .. is it possible to initalise all the params witch apears in the proberties-dialog . .? . .i try to initalise a toggle-object . .means give arguments for size, send, receive and soon . . .but cant get it to work(exept position and connection), but i need to initalise a send and receive -argument in a toggle . . .
hmm, i don't really understand your question. a) use the properties-dialog, save the patch, re-open it, and everything should be initialized (probably you will have to activate the "init"-button in the properties, to make toggle send it's value out like a loadbang); i guess that is the wrong answer and you know this already.
b) use a textfile editor as frank suggested, but i guess this isn't it either, as you can only do offline initialization like with the properties dialog; while i have used this a lot (with scripting) it is certainly not a very convenient way, and nowadays i would do it differently.
c) you can send messages to the toggle that controls all of it's features; everything is documented in doc/5.references/help-toggle.pd (there is a subpatch [pd edit] that shows quite everything)
mfg.as.dr IOhannes
noskule wrote:
hi list creating objects by pd-msg, in general . .. is it possible to initalise
all
the params witch apears in the proberties-dialog . .? . .i try to initalise a toggle-object . .means give arguments for size, send, receive and soon . . .but cant get it to work(exept position and connection), but i need to initalise a send and receive -argument in a
toggle . . .
hmm, i don't really understand your question. a) use the properties-dialog, save the patch, re-open it, and everything should be initialized (probably you will have to activate the "init"-button in the properties, to make toggle send it's value out like a loadbang); i guess that is the wrong answer and you know this already.
b) use a textfile editor as frank suggested, but i guess this isn't it either, as you can only do offline initialization like with the properties dialog; while i have used this a lot (with scripting) it is certainly not a very convenient way, and nowadays i would do it differently.
c) you can send messages to the toggle that controls all of it's features; everything is documented in doc/5.references/help-toggle.pd (there is a subpatch [pd edit] that shows quite everything)
the problem with this is so far i'm understand . .. if i cant give it a receive argument when i create the toggle by pd-msg so i cant send anything . .. .ore aim wrong .. ? .. .. but .. if i send:
obj 136 58 tgl 15 0 se re nme 0 -6 0 8 -262144 -1 -1 0 1 ->works
. ..but the problem with $0 still there . . .is there no solution like "$0" to not interpret the dollarsign . .. would be nice, so all the possible arguments can be given by pd-msg . . .same by sending messages to the toggle . .. no dollarsign .. .is there a way to work around . .?
thanx nos
mfg.as.dr IOhannes
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
Hi,
One solution, and one that I've used, is to use [makesymbol] to build your pd-msg message. Make the pd-msg into a bunch of $1 $2 type variables and then use makesymbol to build the strings... that way by the time the $0 gets to the toggle it will already be parsed out into the full ID number.. which should be fine assuming that the constructor (pd-msg stuff) is in the same abstraction/sub-patch as the final toggle. That way the $0 will be the same in both.
Matt.
On 4-Feb-04, at 8:36 AM, noskule wrote:
noskule wrote:
hi list creating objects by pd-msg, in general . .. is it possible to initalise
all
the params witch apears in the proberties-dialog . .? . .i try to initalise a toggle-object . .means give arguments for size, send, receive and soon . . .but cant get it to work(exept position and connection), but i need to initalise a send and receive -argument in a
toggle . . .
hmm, i don't really understand your question. a) use the properties-dialog, save the patch, re-open it, and everything should be initialized (probably you will have to activate the "init"-button in the properties, to make toggle send it's value out like a loadbang); i guess that is the wrong answer and you know this already.
b) use a textfile editor as frank suggested, but i guess this isn't it either, as you can only do offline initialization like with the properties dialog; while i have used this a lot (with scripting) it is certainly not a very convenient way, and nowadays i would do it differently.
c) you can send messages to the toggle that controls all of it's features; everything is documented in doc/5.references/help-toggle.pd (there is a subpatch [pd edit] that shows quite everything)
the problem with this is so far i'm understand . .. if i cant give it a receive argument when i create the toggle by pd-msg so i cant send anything . .. .ore aim wrong .. ? .. .. but .. if i send:
obj 136 58 tgl 15 0 se re nme 0 -6 0 8 -262144 -1 -1 0 1 ->works
. ..but the problem with $0 still there . . .is there no solution like "$0" to not interpret the dollarsign . .. would be nice, so all the possible arguments can be given by pd-msg . . .same by sending messages to the toggle . .. no dollarsign .. .is there a way to work around . .?
thanx nos
mfg.as.dr IOhannes
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
-- GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...) jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
noskule wrote:
noskule wrote:
c) you can send messages to the toggle that controls all of it's features; everything is documented in doc/5.references/help-toggle.pd (there is a subpatch [pd edit] that shows quite everything)
the problem with this is so far i'm understand . .. if i cant give it a receive argument when i create the toggle by pd-msg so i cant send anything . .. .ore aim wrong .. ? .. .. but .. if i send:
obj 136 58 tgl 15 0 se re nme 0 -6 0 8 -262144 -1 -1 0 1 ->works
. ..but the problem with $0 still there . . .is there no solution like "$0" to not interpret the dollarsign . .. would be nice, so all the possible arguments can be given by pd-msg . . .same by sending messages to the toggle . .. no dollarsign .. .is there a way to work around . .?
ok, so let me recapitulate: you want to dynamically create an abstraction using toggles. the toggle should receive at a label "$0-mytoggle" or the like.
now what you are trying to do is: pass the "$0-mytoggle" somehow to the toggle so that it recognises it as it's receiver. you have problems, because you don't see a way to a) create the "$0-mytoggle" symbol, b) to pass it to the toggle, c) to make the toggle realize that the "$0-mytoggle" is not just a symbol but should be expanded to whatever $0 means in this context.
my suggestion: as you are building dynamic patches there shouldn't be a need for "$0" to be expanded to its value. $0-expansion makes only sense when using pre-build abstractions (the ones you are creating dynamically) (probably you could construct a case, where my conclusions are wrong, but)
so: you know the value of "$0" (just use [f $0]); what is wrong with "hardcoding" this value into the receivers ? get $0 (say it is 1101); create your object with something like "obj 136 58 tgl 15 0 1101-se 1101-re nme 0 -6 0 8 -262144 -1 -1 0 1"
this should give you the behaviour you need.
mfg.as.dr IOhannes