2 summary:: specification of a shape for a mapping of numerical input
3 related:: Classes/ControlSpec, Classes/Spec
4 categories:: Control, Spec
7 The subclasses of Warp specify translations from input (a number) to an output (another number). This is an abstract class - already available shapes are emphasis::linear, exponential, sine, cosine, decibel, curve:: (this is similar to the curves in envelopes, see also link::Classes/Env::).
9 Warps are internally created by link::Classes/ControlSpec::. Usually they are created by the message strong::asWarp::, understood by symbols and numbers. A warp has a link::Classes/Spec:: to specify a certain range of input and output values.
14 a = -4.asWarp; // a curve warp;
24 Maps and constrains a strong::value:: between 0 and 1 to the output domain.
27 in the output domain to a value in the range between 0 and 1.
34 // fore and back translation should be identical: