メインコンテンツまでスキップ

Function: skewScale()

function skewScale(skew): Scale;

Defined in: scales.ts:62

The power law of JUCE's NormalisableRange::skew, applied to value - min.

Use it when the value has to agree with a JUCE or iPlug2 parameter — a plugin UI in a WebView, say, where the knob must sit exactly where the host's automation curve puts it. skewWithCenterValue gives the factor that places a chosen value at the middle of the travel.

skew < 1 gives the lower end more travel, skew > 1 the upper end.

For new designs prefer exponentialScale or curveScale: the slope of this curve is either zero or infinite at min, so the bottom of the range is a dead zone or jumps.

Parameters​

ParameterTypeDescription
skewnumberthe JUCE skew factor

Returns​

Scale