PHASECurveType
Options that apply a mathematical function to an input value.
Declaration
enum PHASECurveTypeOverview
PHASE applies curves in several places across the framework:
A PHASEEnvelopeSegment object represents one curved portion of an envelope’s graph.
The PHASEGroup class applies a curve type to its sounds by fading its volume with the fadeGain(gain:duration:curveType:) function, and to its rate, with fadeRate(rate:duration:curveType:).
Each PHASEGroupPresetSetting applies a curve to control a setting’s rate of change.
Apply a Curve as a Rate of Change
In most cases, PHASE applies curves to output a rate of change. For example, an envelope segment’s curveType determines where along the segment’s domain the y-value changes more quickly. The following figure compares all the curves’ rate of change by plotting their input over the range (0,0) to (1,1).
[Image]
Topics
Types
PHASECurveType.linearPHASECurveType.squaredPHASECurveType.inverseSquaredPHASECurveType.cubedPHASECurveType.inverseCubedPHASECurveType.sinePHASECurveType.inverseSinePHASECurveType.sigmoidPHASECurveType.inverseSigmoidPHASECurveType.holdStartValuePHASECurveType.jumpToEndValue