User Tools

Site Tools


tnhscript:genericscale

GenericScale

A knob-like script which works with a numerical argument.

The script will respond to TurnOn and TurnOff messages similarly to GenericTrap. The effect is specified in the design note parameters on and off. Each parameter is a number that the scale will be set to when triggered. If the off parameter is omitted, then the negative of the on parameter is used.

ScriptControl

A ScriptControl message will set the value of a scale directly. The first message argument will be converted to a number.

Receptrons

Stimulus sources can be used to set a scale value. Configure the receptron with the desired range and the action Send to scripts. Set the parameter arcontrol to the name of the stimulus. The scale will be triggered with the intensity of the stim. If the source intensity isn’t suitable for the desired effect, you can use the Amplify reaction to change the stimulus before the Send to scripts reaction occurs.

tnhscript/genericscale.txt · Last modified: 2010/11/23 00:11 (external edit)