Re: [PD] Splitting Objects

2012-10-11 Thread Hans-Christoph Steiner
On 09/25/2012 09:18 AM, Funs Seelen wrote:
 Hi Thomas,
 
 On Tue, Sep 25, 2012 at 12:35 AM, Thomas Mayer tho...@residuum.org wrote:
 Is there any pitfall to that approach? One thing I need to take care for
 are creation arguments. Anything else I need to consider?

 
 Speaking about creation arguments: if none are given for abstractions
 the default value is always 0 (at least I never figured out a way to
 give another default value *). For C-objects it is possible to use any
 float value as default.
 
 --Funs
 
 *) doing it this way the float object contains nothing, i.e. a zero,
 if no creation arguments are passed:
 
 [loadbang]
 |
 [f $1]

Look at purepd/float_argument, purepd/any_argument, and
purepd/symbol_argument if you want to have more control over defaults
for abstractions.

I think iemguts also has some stuff there.

.hc


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


Re: [PD] Splitting Objects

2012-09-25 Thread Funs Seelen
Hi Thomas,

On Tue, Sep 25, 2012 at 12:35 AM, Thomas Mayer tho...@residuum.org wrote:
 Is there any pitfall to that approach? One thing I need to take care for
 are creation arguments. Anything else I need to consider?


Speaking about creation arguments: if none are given for abstractions
the default value is always 0 (at least I never figured out a way to
give another default value *). For C-objects it is possible to use any
float value as default.

--Funs

*) doing it this way the float object contains nothing, i.e. a zero,
if no creation arguments are passed:

[loadbang]
|
[f $1]

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


Re: [PD] Splitting Objects

2012-09-25 Thread Patrice Colet



- Mail original -
 De: Funs Seelen funssee...@gmail.com

 Speaking about creation arguments: if none are given for abstractions
 the default value is always 0 (at least I never figured out a way
 to
 give another default value *). For C-objects it is possible to use
 any
 float value as default.


[loadbang]
|
[$1]
|
[sel 0]
|
[my default value(




Colet Patrice

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


Re: [PD] Splitting Objects

2012-09-25 Thread Patrice Colet

 De: Patrice Colet colet.patr...@free.fr
  De: Funs Seelen funssee...@gmail.com
 
  Speaking about creation arguments: if none are given for
  abstractions
  the default value is always 0 (at least I never figured out a way
  to
  give another default value *). For C-objects it is possible to use
  any
  float value as default.
 
 
 [loadbang]
 |
 [$1]
 |
 [sel 0]
 |
 [my default value(
 

indeed it doesn't seem possible to set a default value and keep 0 as another 
value

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


[PD] Splitting Objects

2012-09-24 Thread Thomas Mayer
Hello,

as I have once again done some on PuREST JSON, I had the idea to split
an object into two seperate objects and provide the original object as
an abstraction with the library, where the abstraction provides exactly
the same semantics and logic of the original object.

Is there any pitfall to that approach? One thing I need to take care for
are creation arguments. Anything else I need to consider?

Thanks,
Thomas

PS: OAUTH is working now, I have even successfully twittered from Pd :-)
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://www.residuum.org/

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