addRangeForInputValuesBetween(lowValue:highValue:fullGainAtLowValue:fullGainAtHighValue:lowFadeCurveType:highFadeCurveType:subtree:)
Adds a child node that blends between a given high and low value.
Declaration
func addRangeForInputValuesBetween(lowValue: Double, highValue: Double, fullGainAtLowValue: Double, fullGainAtHighValue: Double, lowFadeCurveType: PHASECurveType, highFadeCurveType: PHASECurveType, subtree: PHASESoundEventNodeDefinition)Parameters
- lowValue:
A value above which the child node blends.
- highValue:
A value below which the child node blends.
- fullGainAtLowValue:
The threshold for which a fade curve that
lowFadeCurveTypedefines applies to the gain when the blend parameter value is betweenlowValueandfullGainAtLowValue. - fullGainAtHighValue:
The threshold for which a fade curve that
highFadeCurveTypedefines applies to the gain when the blend parameter value is betweenhighValueandfullGainAtHighValue. - lowFadeCurveType:
An option that determines a rate of change for the child node’s gain over the low fade range.
- highFadeCurveType:
An option that determines a rate of change for the child node’s gain over the high fade range.
- subtree:
A child node to blend.