I'm using Purr Data and noticed I can't create an expr~ object with a condition although it works with expr.
Has anyone had this problem? The documentation seems to suggest that it would work...
The expression I tried was: [ expr~ if($f1 >= 0.5, 1-$f1, $f1) ]
-
expr~ if not working?
-
@randal With expr~ the signal from the inlets is invoked with $v1, $v2 etc.. You can also invoke floats with $f2 etc, but I think at least the first variable has to be $v1 (otherwise you would just use expr). If you try [expr~ $f2] for example, it should create.
-
Ok, that solved it. thanks : )