💾 Archived View for tilde.club › ~fourhoarder › qwantr_lua captured on 2022-01-08 at 13:47:50.

View Raw

More Information

⬅️ Previous capture (2021-12-03)

-=-=-=-=-=-=-

--- qwantr.lua
-- in1: voltage in

function init()
    	input[1].mode( 'stream', 0.002 )
	for n=1,4 do
		output[n].slew = 0.01
	end
	output[1].scale{0,2,4,5,6,8,11,13,14,17,18,20,22,24,25,26,28}
	output[2].scale{0,2,4,5,6,8,11,13,14,17,18,20,22,24,25,26,28}
	output[3].scale{0,2,4,5,6,8,11,13,14,17,18,20,22,24,25,26,28}
	output[4].scale{0,2,4,5,6,8,11,13,14,17,18,20,22,24,25,26,28}
end

input[1].stream = function(val)
	output[1].volts = val
	output[2].volts = val - 1
	output[3].volts = val - 2
	output[4].volts = val - 3
end