Question about variable in Jit.expr


    Aug 25 2015 | 12:34 pm
    Just wondering a basic question, how to grab the elements our of a jit.expr as variables.
    I know how to do that for expr, but with jit.expr @expr, the $f1 and $f2 not works.
    the original one:
    jit.expr @expr (norm[0]*5) 2*cos(norm[0]*TWOPI) 10 2*sin(norm[0]*TWOPI
    what I tried to do:
    jit.expr @expr (norm[0]*5) $f1*cos(norm[0]*TWOPI) $f2 $f1*sin(norm[0]*TWOPI
    I want to change $f1 and $f2 out of this object. But the nodes inputs was not appearing. Not like a expr object.

    • Aug 26 2015 | 8:01 am
      Not behind the computer but i think you need to replace $f1 with in[0]. Check the tut page demystifying expressions in jitter. The downloadable patches show some very clear examples.
    • Aug 26 2015 | 9:29 am
      Thank you Andro, I solve it!
    • Aug 26 2015 | 12:29 pm
      Glad to hear it. Just a tip. Select everything in your patch then go to edit/ copy compressed. Then paste into the forum.