}
}
}
}
}
}
}
}
}
}
_screen {}
a base affordance type for the _enc
and _key
groups - all other affordances in the group inherit from this type. the user may extend this type in order to define a custom affordance that responds to the relevant input.
an integer or fractional number.
like the paramset
"control" type, a number with musicaly convenient properties. a controlspec
is used internally, which may be provided at init time rather than properties
like the paramset
"option" type, a list of strings or numbers to be iterated through. the value
property stored is the index of the active option (the value at this index is returned as the third argument to action
)
an affordance that blinks for blinktime
seconds and runs action
on keypress.
a "held" button where value
goes high where a key is depressed, low where a key is released.
a button where value
toggles between high and low on a keypress. if lvl
has a table length greater than two, a toggle
button will cycle forward through those brightness values.
the empty screen drawing affordance. define your own redraw
handler for custom screen drawing. add input = _screen.input{ redraw = function() end }
to an affordance for a custom screen UI.
the index of the encoder or key to which an affordance will be mapped. assigning a table value to n
will map to multiple inputs, either assigning a table to value
or altering behavior (see options and inc)
max limit of value
. use math.huge
for no limit.
min limit of value
. use -math.huge
for no limit.
a boolean value to specify whether to wrap back over the mix
/max
boundaries
specify how much value
is incrimented on tick (delta/keypress). when n
is a table, one and two specify an incriment of -1 and +1 which is multiplied by inc
a controlspec
instance which may be provided in place of min
, max
, step
, units
, quantum
, warp
.
see http://norns.local/doc/classes/controlspec.html#controlspec:new
see http://norns.local/doc/classes/controlspec.html#controlspec:new
see http://norns.local/doc/classes/controlspec.html#controlspec:new
see http://norns.local/doc/classes/controlspec.html#controlspec:new
a table of dispay values for the option
type. when n
is a table for _enc.option
, options
is treated on a nested matrix of tables, with two encoders specifying x and y indicies within the matrix