Nudge:
Filter:
Influx/Classes (extension) | Concepts/Relativity | Concepts/MetaControl

Nudge
ExtensionExtension

change a process parameter by relative steps

Description

Nudge is based on the MetaControl idea of 'Lose Control, Gain Influence'. Nontrivial processes always have parameter values already, and rather than hard-setting them from the outside, Nudge influences the current parameter value.

It does this with these steps:

First code examples:

Class Methods

.new

Arguments:

obj
key

make a Nudge for an object and parameter key

Instance Methods

.object

the object to nudge

.key

the key for the parameter to nudge

.nudge

Arguments:

delta

change the object's parameter at key by a delta value

.useWrap

.useFold

.useClip

setting border strategy - value will wrap, fold or clip when hitting border.

.useSin

set range shaping to sine shape

.useTan

set range shaping to scalable tan

.useBipow

set range shaping to bi-exponential

.getFunc

.map2BiFunc

.nudgeFunc

.borderFunc

.unmapFunc

.setFunc

The functions to use internally for the nudging process. Can also be changed individually if you know what you are doing.

internal variables and methods

.unival

.bival

nudge's copy of the param value in unipolar and nudge-bipolar range.

.state

a dict for keeping state required for some nudging strategies

Examples