On 31/07/2019 09:31, Tsz Kiu Pang wrote:
> Alexandre has recently requested a new object/functionality similar
> to max's [if] … I am just wondering whether my approach (adding a
> new class to the [expr], [expr~], [fexpr~] mix) is correct, and
> whether this functionality is something that we need. I will
> probably put in a pull request soon if there is no objection


Dear TK and Alexandre

I have no objection, but I do have a couple of naïve questions:

[a] In the message case, I am struggling to see the point, as all you
need to do is control a [spigot] with the truth value of the test. Or
you can assign the false condition a value unused in the true case (if
there is any such) and feed the output to [route] or [select]. Or …
well doubtless there are many — and likely better — ways to skin this
cat. Is it just for convenience, then, or am I missing something?

[b] If a parallel audio case is envisaged, what would it do?

Best

m

-- 
matthew brandi | 020 8882 4616

#N canvas 518 178 428 247 10;
#X floatatom 45 73 5 0 0 0 - - -;
#X floatatom 45 136 5 0 0 0 - - -;
#X obj 45 97 expr if($f1 > 0 \, $f1 \, 0) \; if($f1 > 0 \, 1 \, 0)
;
#X floatatom 192 136 5 0 0 0 - - -;
#X obj 45 158 spigot 0;
#X floatatom 45 181 5 0 0 0 - - -;
#X floatatom 239 72 5 0 0 0 - - -;
#X obj 239 124 route -1;
#X floatatom 284 149 5 0 0 0 - - -;
#X obj 239 95 expr if($f1 > 0 \, $f1 \, 0);
#X text 43 49 YES;
#X text 237 49 SOMETIMES;
#X connect 0 0 2 0;
#X connect 1 0 4 0;
#X connect 2 0 1 0;
#X connect 2 1 3 0;
#X connect 3 0 4 1;
#X connect 4 0 5 0;
#X connect 6 0 9 0;
#X connect 7 1 8 0;
#X connect 9 0 7 0;
_______________________________________________
Pd-dev mailing list
[email protected]
https://lists.puredata.info/listinfo/pd-dev

Reply via email to