ScriptModulationMatrix
Class methods
addModulatorTarget
Adds a global modulator at the given mod chain for sample accurate modulation.
ScriptModulationMatrix.addModulatorTarget(var targetData)
addParameterTarget
Adds a (low resolution) parameter modulation slot.
ScriptModulationMatrix.addParameterTarget(var targetData)
canConnect
Checks whether the modulation connection can be made.
ScriptModulationMatrix.canConnect(String source, String target)
clearAllConnections
Removes all connections.
ScriptModulationMatrix.clearAllConnections()
connect
Adds (or removes) a connection from the source to the target.
ScriptModulationMatrix.connect(String sourceId, String targetId, bool addConnection)
fromBase64
Loads the state from a previously exported Base64 string.
ScriptModulationMatrix.fromBase64(String b64)
getComponentId
Get the component ID for the given modulation target ID.
ScriptModulationMatrix.getComponentId(String targetId)
getConnectionData
Get the connection data for the given component.
ScriptModulationMatrix.getConnectionData(String componentId)
getIntensitySliderData
Creates a range object that can be passed into setTableRowData to update the slider range.
ScriptModulationMatrix.getIntensitySliderData(String sourceId, String targetId)
getModValue
Get the current modulation value for the connected component.
ScriptModulationMatrix.getModValue(var component)
getSourceList
Return a list of all sources.
ScriptModulationMatrix.getSourceList()
getTargetId
Get the target ID for the given component.
ScriptModulationMatrix.getTargetId(String componentId)
getTargetList
Return a list of all targets.
ScriptModulationMatrix.getTargetList()
getValueModeData
Creates a JSON object that can be passed into the setTableRowData to update the combobox.
ScriptModulationMatrix.getValueModeData(String sourceId, String targetId)
setConnectionCallback
Set a callback that will be executed whenever the matrix state changes.
ScriptModulationMatrix.setConnectionCallback(var updateFunction)
setEditCallback
Set a callback that will be executed when the user clicks on "Edit connections".
ScriptModulationMatrix.setEditCallback(var editFunction)
setNumModulationSlots
Sets the amount of modulation targets created for each [voice start, time-variant, envelope] modulation type.
ScriptModulationMatrix.setNumModulationSlots(var numSlotArray)
setUseUndoManager
Enables the undo manager for all modulation edit actions.
ScriptModulationMatrix.setUseUndoManager(bool shouldUseUndoManager)
toBase64
Creates a Base64 string of all connections.
ScriptModulationMatrix.toBase64()
updateConnectionData
Update the connections in the list.
ScriptModulationMatrix.updateConnectionData(var connectionList)
updateIntensity
Update the intensity for the given connection.
ScriptModulationMatrix.updateIntensity(String source, String target, float intensityValue)
updateValueMode
Update the value mode from the combobox item ID.
ScriptModulationMatrix.updateValueMode(String source, String target, String valueMode)