[PD] Fibonacci (got a strange problem in pd)

Roman Haefeli reduzierer at yahoo.de
Fri Feb 11 21:39:09 CET 2005


hi

it is quite difficult to see, where the problem is located.afait it IS a
problem of exeution order, but it is not possible to SEE where it is,
because there are sometimes more than one connection per outlet. this
means, the execution order is not defined. in order to make the patch
more readable, insert a trigger-object as you used it after the
bang-button. you can also set 'f' (float), 's' (symbol), 'l' (list) or
'a' (anything) as a arguments.
and: do not use [del 1] to define the order. use [trigger] too.  in case
one bang follows another within less 1ms, the [del 1] is too slow (i
admit, this is true only theoretically, in fact the shortest time
between 2 bangs is 1.45ms because of the controlrate of pd
[64samples/44.1kHz]) .  the only way to be sure that your patch is
working correctly is using triggers, triggers triggers...... :-)
i attached a slightly redesigned version of your fibonacci-patch.

roman

----- Original Message -----
From: "Federico" <xaero at inwind.it>
To: <pd-list at iem.at>
Sent: Friday, February 11, 2005 7:37 PM
Subject: [PD] Fibonacci (got a strange problem in pd)


> i was writing a patch that generates the famous Fibonacci's serie
> (1 1 2 3 5 8 13...) and calculates sectio aurea.
>
> it seems that works ok, BUT at one point the left number stops
changing.
> i am wondering if it is a problem of execution order... one hour ago i
> could say that i know enough of pd, but now i'm a bit confused. the
> weird thing is that if you try to restart (with the [1 2< message), it
> stops at different times.
> i overlooked at the patch, and i cannot find the problem
>
> please enlighten me (and try to ignore my bad english :))
>
> happy coding!
> --
> Federico
>


#N canvas 16 469 249 272 10;
#X obj 13 24 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 26 150 f;
#X obj 26 195 +;
#X obj 79 98 t f f;
#X floatatom 31 239 5 0 0 0 - - -;
#X obj 13 51 t b b b;
#X obj 91 138 f;
#X obj 78 166 f;
#X msg 88 13 1 0;
#X text 124 13 reset;
#X obj 88 40 unpack;
#X obj 186 161 f;
#X connect 0 0 5 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 2 0 4 0;
#X connect 3 0 1 1;
#X connect 3 1 6 1;
#X connect 5 0 6 0;
#X connect 5 1 7 0;
#X connect 5 2 1 0;
#X connect 6 0 7 1;
#X connect 7 0 2 1;
#X connect 8 0 10 0;
#X connect 10 0 1 1;
#X connect 10 1 11 0;
#X connect 11 0 6 1;
#X connect 11 0 7 1;
#X connect 11 0 2 1;






More information about the Pd-list mailing list