awesome stuff, thanks for sharing!
one note…I think you might want to combine both of these output setters into one init function. my guess is that crow expects only 1 so it will call one and skip the other. in other words:
function init()
output[1]( loop { rtm
, to(function() return level/a end, function() return time/b end)
, rtm
, to(function() return -level/c end, function() return time/a end)
, rtm
, to(function() return -level/b end, function() return time/c end)
, rtm
, to(function() return -level/a end, function() return time/b end)
} )
end
function init()
output[3]( loop { rtm
, to(function() return level/a end, function() return time/b end)
, rtm
, to(function() return -level/c end, function() return time/c end)
} )
end
should become
function init()
output[1]( loop { rtm
, to(function() return level/a end, function() return time/b end)
, rtm
, to(function() return -level/c end, function() return time/a end)
, rtm
, to(function() return -level/b end, function() return time/c end)
, rtm
, to(function() return -level/a end, function() return time/b end)
} )
output[3]( loop { rtm
, to(function() return level/a end, function() return time/b end)
, rtm
, to(function() return -level/c end, function() return time/c end)
} )
end