[PD] metro default arg
colet.patrice at free.fr
colet.patrice at free.fr
Wed Apr 28 14:21:54 CEST 2010
Indeed, this line shouldn't affect the right inlet
$ diff -uw x_time.c.old x_time.c
--- x_time.c.old 2010-04-28 11:16:06 +0000
+++ x_time.c 2010-04-28 12:13:51 +0000
@@ -119,6 +119,7 @@
static void *metro_new(t_floatarg f)
{
t_metro *x = (t_metro *)pd_new(metro_class);
+ if (f < 1) f = 20;
metro_ft1(x, f);
x->x_hit = 0;
x->x_clock = clock_new(x, (t_method)metro_tick);
----- "IOhannes m zmoelnig" <zmoelnig at iem.at> a écrit :
> but this does not only effect the default the arg, but also any time set
> through the right inlet.
> so if you decrease the metro time with a ramp from 100ms to 0.1ms, it
> will suddenly jump (..., 1.02, 1.01, 1.00, 20.00, 20.00, ...) which i
> think worse than saturating at "1".
>
> i'm not opposed to raising the "default", but it should only affect the
> arguments.
>
> fgmasdr
> IOhannes
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20100428/5e836dda/attachment.htm>
More information about the Pd-list
mailing list