filter.lerp()
filter.lerp(action, val_mappings)
This function create a native-action to modify the characteristics curve of a device's analog axis.
You can specify a mapping rule that maps numeric Event Values to other numeric values by specifying pairs of input and output values.
For values other than the specified ones, the mapping is determined through linear interpolation.
Parameters
Parameter | Type | Description |
---|---|---|
action | Action | An action that receives the mapped value through linear interpolation as the Event Value. |
val_mappings | table | Specifies the mapping rules as an array table containing sub-tables, such as {100, 500} , which represent the relationship between input values and corresponding output values. |
Return Values
This function returns a native-action.