/crowify

A Monome Norns library for easily adding Crow support to existing scripts.

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

Crowify

A Monome Norns library for easily adding Crow input support to existing scripts.

Requirements

  • An up-to-date Norns (exact OS support unknown)
  • A Monome Crow (or the desire to support one in your Norns script)
  • We/TestSine Engine (If you want to test this script)

Usage

-- create Crowify class and crowify object
local Crowify = include("lib/crowify")
local crowify = Crowify.new()

-- by default, Crowify updates every 1/25th of a second
-- if you want a different update speed, pass it in
local slowUpdatesCrowify = Crowify.new(1/2)

function init()
    -- register parameters with crowify
    crowify:register("cutoff")
    crowify:register("resonance")

    -- after registering all your params run add_params()
    -- to make them visible in norns params menu
    crowify:add_params()
end

function key(n, z)
    -- if you want to use a shift key with Crowify
    -- pass key params in
    crowify:handle_shift(n, z)
    redraw()
end

Roadmap

  1. Beta release & bugfixing
  2. Remove the need to register() params, and introspect them from the global params.params_ table directly.