Re: [PD] dollar argument

2007-05-05 Thread Luke Iannini (pd)
Hi IOhannes,
As far as I can tell, $@ is not included after all in Pd Extended...
(I tried [list append [EMAIL PROTECTED] 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, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Quoting Thomas Ouellet Fredericks [EMAIL PROTECTED]:

  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


___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] dollar argument

2007-05-05 Thread IOhannes m zmoelnig
Luke Iannini (pd) wrote:
 Hi IOhannes,
 As far as I can tell, $@ is not included after all in Pd Extended...
 (I tried [list append [EMAIL PROTECTED] and [$@(  )
 How can we/I/Hans : ) add it to the build system?

get the patch from
http://sourceforge.net/tracker/index.php?func=detailaid=1543850group_id=55736atid=478072

add it to the pd-extended patch system (as described in)
http://puredata.info/docs/developer/build/


mfs.t
IOhannes

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] dollar argument

2007-05-01 Thread zmoelnig
Quoting Thomas Ouellet Fredericks [EMAIL PROTECTED]:

 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


Re: [PD] dollar argument

2007-05-01 Thread Thomas Ouellet Fredericks
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 [EMAIL PROTECTED] (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, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Quoting Thomas Ouellet Fredericks [EMAIL PROTECTED]:

  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


___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] dollar argument

2007-05-01 Thread Frank Barknecht
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.

Ciao
-- 
 Frank Barknecht _ __footils.org_ __goto10.org__

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] dollar argument

2007-04-30 Thread Frank Barknecht
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__


dollars.pd
Description: application/puredata


dollars-help.pd
Description: application/puredata
___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] dollar argument

2007-04-30 Thread Thomas Ouellet Fredericks
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 [EMAIL PROTECTED] 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




___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list