first test coding lua for crow. wanted to build a simple quantizer for my 0-ctrl. outputs 1-3 works as expected but output 4 which should output a chromatic scale tilts the base pitch up one step. any help appreciated.
function init()
input[1]{ mode = 'stream', time = 0.001 }
output[1].scale({0,2,4,7,9}, 12, 1.0) --major pentatonic
output[2].scale({0,3,5,7,10}, 12, 1.0) --minor pentatonic
output[3].scale({0,2,3,5,7,9,10}, 12, 1.0) --dorian
output[4].scale({0,1,2,3,4,5,6,7,8,9,10,11}, 12, 1.0) --chromatic
end
input[1].stream = function()
v = input[1].volts
output[1].volts = v
output[2].volts = v
output[3].volts = v
output[4].volts = v
end
edit: i realize this should probably be in another thread after seeing “norns” in the subject line. not sure how to move it to the right place after posting. sorry.
edit #2: i also want to add a slew function takingg values from input[2] and applying slew according to the input value. i get it working, kinda, but the lew sounds like it’s being quantized aswell.