Warp:
Filter:
Classes | Control | Spec

Warp : Object

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

Description

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.asWarp(spec)

Warp.new(spec)

Warp.warps

Warp.warps = value

Instance Methods

.map(value)

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

.unmap(value)

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

Inherited instance methods

Undocumented instance methods

==(that)

.asSpecifier

.asWarp(inSpec)

.gridClass

.hash

.spec

.spec = value