Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Excerpt
Panel
addQCAssignment(qc, element, paramIDnameOrID, scope)

Description

Function to add a quick control assignment to the specified layer and quick control. For example, this.parent defines the parent layer of the script module as the layer that contains the quick control that you want to edit. The quick control assignment will be added to the quick control with the index stated by the qc argument. The arguments element and paramID and nameOrID specify the parameter to be connected. The scope determines the part of the program that will be affected by the quick control assignment. You specify the scope by setting the scope argument to the element the Element object that corresponds to the desired part of the program.

Info

The index of the quick controls starts counting from 1. QC 1 to QC 8 have index 1 to 8. Sphere H, Sphere V and Mod Wheel have index 9, 10 and 11.

Available in: Controller.

Arguments

qcThe index of the quick control to which the assignment will be added.number
elementThe element The Element object of the parameter to be connected.userdataElement
paramIDnameOrIDThe name or ID of the parameter.string or number
scopeThe element The Element object that will be affected by the quick control assignment.userdataElement

Example

Code Block
-- assign the octave parameter of the zone to the first quick control of the script module's parent layer
layer = this.parent
zones = layer:findZones(true)
zone =

layer:addQCAssignment(1, zones[1]
octaveParamID = zone:getParameterDefinition(, "Pitch.Octave").id

layer:addQCAssignment(1, zone, octaveParamID, layer)

Panel

See Also: removeQCAssignment, getNumQCAssignments, getQCAssignmentParamId, getQCAssignmentScope, getQCAssignmentMin, getQCAssignmentMax, getQCAssignmentCurve, getQCAssignmentMode, getQCAssignmentBypass, setQCAssignmentParamId, setQCAssignmentScope, setQCAssignmentMin, setQCAssignmentMax, setQCAssignmentCurve, setQCAssignmentMode, setQCAssignmentBypass, Quick Control Assignment Modes