OK thanks all for detailed and thoughtful info as always. It seems I was on an older dev version of druid, I’ve updated to druid, version 0.2.1. crow is ^^version(‘v1.0.1’).
With this config, If I upload the script without the final carriage return, I get:
[string "eval"]:13: 'end' expected (to close 'function' at line 11) near <eof>
If i add the final carriage return, the script loads successfully, but only after I run
on another note - in the below updated script, only input streams to druid, how can i make input stream to druid and the outputs?
--- simple buff mult. put a voltage into input 1, stream the value to druid and send voltage to all outputs -- in1: tuning voltage -- out1-4: duplicates of in1 voltage input.stream = function(v) for n=1,4 do output[n].volts = v -- because v == input.volts end end function init() input.mode('stream', 0.01) input.mode('stream', 0.01) end
anyway. this works pretty well for what I wanted to do - compare v/oct tuning between various oscillators.