#plugins.core.tangent.manager.parameter

Represents a Tangent Parameter control.


#API Overview

Functions - API calls offered directly by the extension

Constructors - API calls which return an object, typically one that offers API methods

Methods - API calls which can only be made on an object returned by a constructor


#API Documentation

#Functions

Signatureplugins.core.tangent.manager.parameter.is(thing) -> boolean
TypeFunction
DescriptionChecks if the thing is a parameter instance.
Parameters
  • thing - The other object to test.
Returns
  • true if it is a parameter, false if not.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/parameter.lua line 33

Signatureplugins.core.tangent.manager.parameter:update()
TypeFunction
DescriptionUpdates the Tangent with the current value of the parameter.
Parameters
  • None
Returns
  • Nothing.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/parameter.lua line 221

#Constructors

Signatureplugins.core.tangent.manager.parameter(id[, name[, parent]) -> parameter
TypeConstructor
DescriptionCreates a new Parameter instance.
Parameters
  • id - The ID number of the parameter.
  • name - The name of the parameter.
  • parent - The parent of the parameter.
Returns
  • the new parameter.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/parameter.lua line 18

#Methods

Signatureplugins.core.tangent.manager.parameter:change(amount) -> number
TypeMethod
DescriptionExecutes the change function if present, and returns the new result. If none has been set, nil is returned.
Parameters
  • amount - The amount to change the parameter.
Returns
  • The current value, or nil if it can't be accessed.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/parameter.lua line 162

Signatureplugins.core.tangent.manager.parameter:get() -> number
TypeMethod
DescriptionExecutes the get function if present, and returns the result. If none has been set, nil is returned.
Parameters
  • None
Returns
  • The current value, or nil if it can't be accessed.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/parameter.lua line 122

Signatureplugins.core.tangent.manager.parameter:maxValue([value]) -> number | self
TypeMethod
DescriptionGets or sets the maximum value for the parameter.
Parameters
  • value - The new value.
Returns
  • If value is nil, the current value is returned, otherwise returns self.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/parameter.lua line 64

Signatureplugins.core.tangent.manager.parameter:minValue([value]) -> number | self
TypeMethod
DescriptionGets or sets the minimum value for the parameter.
Parameters
  • value - The new value.
Returns
  • If value is nil, the current value is returned, otherwise returns self.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/parameter.lua line 46

Signatureplugins.core.tangent.manager.parameter:onChange(changeFn) -> self
TypeMethod
DescriptionSets the function that will be called when the Tangent sends a 'parameter change' request.
Parameters
  • getFn - The function to call when the Tangent requests the parameter change.
Returns
  • The parameter instance.
Notes
  • This function should have this signature:
  • function(amount) -> number
  • The return value should be the new value of the parameter.
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/parameter.lua line 138

Signatureplugins.core.tangent.manager.parameter:onGet(getFn) -> self
TypeMethod
DescriptionSets the function that will be called when the Tangent sends a 'parameter value' request.
Parameters
  • getFn - The function to call when the Tangent requests the parameter value.
Returns
  • The parameter instance.
Notes
  • This function should have this signature:
  • function() -> number
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/parameter.lua line 100

Signatureplugins.core.tangent.manager.parameter:onReset(resetFn) -> self
TypeMethod
DescriptionSets the function that will be called when the Tangent sends a 'parameter reset' request.
Parameters
  • resetFn - The function to call when the Tangent requests the parameter reset.
Returns
  • The parameter instance.
Notes
  • This function should have this signature:
  • function() -> nil
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/parameter.lua line 183

Signatureplugins.core.tangent.manager.parameter:press() -> nil
TypeMethod
DescriptionExecutes the press function, if present.
Parameters
  • None
Returns
  • nil
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/action.lua line 85

Signatureplugins.core.tangent.manager.parameter:release() -> nil
TypeMethod
DescriptionExecutes the release function, if present.
Parameters
  • None
Returns
  • nil
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/action.lua line 122

Signatureplugins.core.tangent.manager.parameter:reset() -> number
TypeMethod
DescriptionExecutes the reset function if present. Returns the current value of the parameter after reset.
Parameters
  • None
Returns
  • The current value, or nil if it can't be accessed.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/parameter.lua line 205

Signatureplugins.core.tangent.manager.parameter:stepSize([value]) -> number | self
TypeMethod
DescriptionGets or sets the step size for the parameter.
Parameters
  • value - The new value.
Returns
  • If value is nil, the current value is returned, otherwise returns self.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/parameter.lua line 82

Signatureplugins.core.tangent.manager.parameter:xml() -> cp.web.xml
TypeMethod
DescriptionReturns the xml configuration for the Parameter.
Parameters
  • None
Returns
  • The xml for the Parameter.
NotesNone
ExamplesNone
Sourcesrc/plugins/core/tangent/manager/parameter.lua line 239