Moses for max
i learnt pure data first.
as i learnt markov chains with pure data with [float] objects and the [moses] object, i designed a simple abstraction that acts exactly the same as [moses] in pure data.
the function is easy to get:
if $i1<=$i2 then out1 $i1 else out2 $i1