Hallo, ronny vanden bempt hat gesagt: // ronny vanden bempt wrote:
First a small question, that maybe you know: how can I reply to a message on the mailinglist, when I only receive digests?
I don't know, this depends on your mailing software. You can always trim you quotes manually and CC the mail to pd-list@iem.at
But then for the dollarsign: I put the object [symbol $1] between the bang and message box I use, but I still get an error. Now the error says: -window: no such object.
Yeah, that's a problem when you don't supply any argument to the abstraction. Empty arguments are assumed to be 0 and thus you need to use [f $1] instead of [symbol $1]. Or use [symbol $1-window] with different message box contents or use the catch-all-types approach: [list append $1]
Another possibility is to use a send-object instead of semicolon-messages. Sender objects are nicer anyways IMO.
See attached patch for all this in action.
Frank Barknecht _ ______footils.org_ __goto10.org__
There is also the overlooked very powerful [dollarg] from iemlib that converts all your arguments into a list. I even made an abstraction that can parse arguments by name like in Jitter. For example, [dollars @currency canadian @exchange_rate 1.87 @output km] could also be written [dollars @output km @exchange_rate 1.87 @currency canadian]
Anyway, dollarg rocks.
Tom
On 4/30/07, Frank Barknecht fbar@footils.org wrote:
Hallo, ronny vanden bempt hat gesagt: // ronny vanden bempt wrote:
First a small question, that maybe you know: how can I reply to a message on the mailinglist, when I only receive digests?
I don't know, this depends on your mailing software. You can always trim you quotes manually and CC the mail to pd-list@iem.at
But then for the dollarsign: I put the object [symbol $1] between the bang and message box I use, but I still get an error. Now the error says: -window: no such object.
Yeah, that's a problem when you don't supply any argument to the abstraction. Empty arguments are assumed to be 0 and thus you need to use [f $1] instead of [symbol $1]. Or use [symbol $1-window] with different message box contents or use the catch-all-types approach: [list append $1]
Another possibility is to use a send-object instead of semicolon-messages. Sender objects are nicer anyways IMO.
See attached patch for all this in action.
Ciao
Frank Barknecht _ ______footils.org_ __goto10.org__
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Quoting Thomas Ouellet Fredericks tof@danslchamp.org:
There is also the overlooked very powerful [dollarg] from iemlib that converts all your arguments into a list. I even made an abstraction that can parse arguments by name like in Jitter. For example, [dollars @currency canadian @exchange_rate 1.87 @output km] could also be written [dollars @output km @exchange_rate 1.87 @currency canadian]
Anyway, dollarg rocks.
and just to push this a bit: some months ago i have submitted a patch to pd (in the sf patchtracker), that introduces to new dollar-arguments: $@ and $#. while $# is probably not so interesting (now that we have [list length]), $@ is very similar to iemlib's [dollarg] but can do even more (e.g. full list expansion in a message)
if a lot of people find this useful, and at least some of them go throught the patch and find any bugs, probably it would be accepted into vanilla pd one day. (i think it is already in pd-extended)
fmas.dr IOhannes
I also really like parentdollarzero from iemlib. But as for dollarg, it would be great if it could get the arguments of a parent further up the parent hierarchy. Something like $@2 (or $@@... whatever) that would go up two parents, get all the arguments AND the dollar zero. That would then solve lots of state saving pains.
Tom
On 5/1/07, zmoelnig@iem.at zmoelnig@iem.at wrote:
Quoting Thomas Ouellet Fredericks tof@danslchamp.org:
There is also the overlooked very powerful [dollarg] from iemlib that converts all your arguments into a list. I even made an abstraction that can parse arguments by name like in Jitter. For example, [dollars @currency canadian @exchange_rate 1.87 @output km] could also be written [dollars @output km @exchange_rate 1.87 @currency canadian]
Anyway, dollarg rocks.
and just to push this a bit: some months ago i have submitted a patch to pd (in the sf patchtracker), that introduces to new dollar-arguments: $@ and $#. while $# is probably not so interesting (now that we have [list length]), $@ is very similar to iemlib's [dollarg] but can do even more (e.g. full list expansion in a message)
if a lot of people find this useful, and at least some of them go throught the patch and find any bugs, probably it would be accepted into vanilla pd one day. (i think it is already in pd-extended)
fmas.dr IOhannes
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi IOhannes, As far as I can tell, $@ is not included after all in Pd Extended... (I tried [list append $@] and [$@( ) How can we/I/Hans : ) add it to the build system?
It would be great to have so that I could properly subclass route/oscroute/etc.
Cheers Luke
On 4/30/07, zmoelnig@iem.at zmoelnig@iem.at wrote:
Quoting Thomas Ouellet Fredericks tof@danslchamp.org:
There is also the overlooked very powerful [dollarg] from iemlib that converts all your arguments into a list. I even made an abstraction that can parse arguments by name like in Jitter. For example, [dollars @currency canadian @exchange_rate 1.87 @output km] could also be written [dollars @output km @exchange_rate 1.87 @currency canadian]
Anyway, dollarg rocks.
and just to push this a bit: some months ago i have submitted a patch to pd (in the sf patchtracker), that introduces to new dollar-arguments: $@ and $#. while $# is probably not so interesting (now that we have [list length]), $@ is very similar to iemlib's [dollarg] but can do even more (e.g. full list expansion in a message)
if a lot of people find this useful, and at least some of them go throught the patch and find any bugs, probably it would be accepted into vanilla pd one day. (i think it is already in pd-extended)
fmas.dr IOhannes
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Luke Iannini (pd) wrote:
Hi IOhannes, As far as I can tell, $@ is not included after all in Pd Extended... (I tried [list append $@] and [$@( ) How can we/I/Hans : ) add it to the build system?
get the patch from http://sourceforge.net/tracker/index.php?func=detail&aid=1543850&gro...
add it to the pd-extended patch system (as described in) http://puredata.info/docs/developer/build/
mfs.t IOhannes
Hallo, Thomas Ouellet Fredericks hat gesagt: // Thomas Ouellet Fredericks wrote:
There is also the overlooked very powerful [dollarg] from iemlib that converts all your arguments into a list.
But dollar also doesn't deal with converting abstraction arguments to message-variableis. ;) dollarg is cool, but first one needs to understand how dollars in general work in Pd.
Frank Barknecht _ ______footils.org_ __goto10.org__