[PD] [expr $f1 if...] bug?

Lorenzo Sutton lorenzofsutton at gmail.com
Tue Jan 31 18:33:29 CET 2012


On 31/01/2012 16:07, Jonghyun Kim wrote:
> Dear List,
>
> I found a bug:
>
> My system:
> 0.43.1-extended-20111218
> Ubuntu 11.04
> qjackctl 0.3.7
>
> metronome
> |
> |
> [
> expr $f1;
> if ($f1 == 1, 1, 0);
> if ($f1 == 5, 2, 0);
> if ($f1 == 9, 3, 0);
> if ($f1 == 13, 4, 0);
> if ($f1 == 17, 5, 0);
> if ($f1 == 21, 6, 0);
> if ($f1 == 25, 7, 0);
> if ($f1 == 29, 8, 0);
> if ($f1 == 33, 9, 0);
> if ($f1 == 37, 10, 0);
> if ($f1 == 41, 11, 0);
> if ($f1 == 45, 12, 0);
> ]

You could also use a [select] instead of [expr]. Something like


|
[sel 1 5 9  ...    ]
|   |   |   ...   |
[1( [2( [3( ...  [t b]
                   |
                   [0(

Just an idea..

Lorenzo


>
> When I put this expressions, pd shut down... The expr receive
> counts(like 1,2,3,4...and so on) from metronome.
>
> What's the problem?
>
>
> Thanks,
> Jong
>
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->  http://lists.puredata.info/listinfo/pd-list




More information about the Pd-list mailing list