Classes | Control | Spec

Warp : Object

specification of a shape for a mapping of numerical input
Source: Spec.sc


The subclasses of Warp specify translations from input (a number) to an output (another number). This is an abstract class - already available shapes are linear, exponential, sine, cosine, decibel, curve (this is similar to the curves in envelopes, see also Env).

Warps are internally created by ControlSpec. Usually they are created by the message asWarp, understood by symbols and numbers. A warp has a Spec to specify a certain range of input and output values.

Class Methods

Inherited class methods

Undocumented class methods




Warp.warps = value

Instance Methods


Maps and constrains a value between 0 and 1 to the output domain.


in the output domain to a value in the range between 0 and 1.

Inherited instance methods

Undocumented instance methods







.spec = value