A Monome Norns library for easily adding Arc support to existing sketches.
-- create Arcify class and arcify object
local Arcify = include("lib/arcify")
local arcify = Arcify.new()
-- by default, it takes care of arc connection
-- if you need access to the arc object,
-- create it and pass it to Arcify
local my_arc = arc.connect()
local anotherArcify = Arcify.new(my_arc)
-- by default, Arcify updates the encoder rings itself
-- if you need to do it only on demand
local onDemandArcify = Arcify.new(my_arc, false)
function init()
-- register parameters with arcify
-- using a default encoder rate
arcify:register("cutoff")
-- change the feel of the encoder rate
arcify:register("cutoff", 5.0) -- fast
arcify:register("resonance", 0.1) -- slow
-- after registering all your params run add_params()
-- to make them visible in norns params menu
arcify:add_params()
end
function key(n, z)
-- if you want to use a shift key with Arcify
-- pass key params in
arcify:handle_shift(n, z)
redraw()
end
register()
params, and introspect them from the global params.params_
table directly.See the docs