On 09/25/2012 09:18 AM, Funs Seelen wrote:
Hi Thomas,
On Tue, Sep 25, 2012 at 12:35 AM, Thomas Mayer thomas@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