Class control

Control class

Functions

Control.new (id, name, controlspec, formatter) constructor.
Control:get () get.
Control:get_raw () get_raw.
Control:set (value, silent) set.
Control:set_raw (value, silent) set_raw.
Control:delta (d) delta.
Control:set_default () set_default.
Control:bang () bang.
Control:string () string.


Functions

Control.new (id, name, controlspec, formatter)
constructor.

Parameters:

  • id
  • name
  • controlspec
  • formatter
Control:get ()
get. returns mapped value.
Control:get_raw ()
get_raw. get 0-1.
Control:set (value, silent)
set. accepts a mapped value

Parameters:

  • value
  • silent
Control:set_raw (value, silent)
set_raw. set 0-1.

Parameters:

  • value
  • silent
Control:delta (d)
delta. add delta to current value. checks controlspec for mapped vs not. default division of delta for 100 steps range.

Parameters:

  • d
Control:set_default ()
set_default.
Control:bang ()
bang.
Control:string ()
string.

Returns:

    formatted string
generated by LDoc 1.4.6 Last updated 2020-03-28 23:45:19