As promised, we now have another feature MilkDrop doesn't have:
a nice and compact syntax for conditional assignments.

The syntax is inspired by the statement modifiers in Perl:

    var = expr if cond;

This is equivalent to the less readable

    var = cond ? expr : var;

The "wheel" demo puts this construct to good use for range checks
and for responding to MIDI buttons:

https://github.com/milkymist/flickernoise/blob/master/patches/demo/wheel/wheel.fnp

- Werner
_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkymist@Freenode

Reply via email to