---
title: "addRangeForInputValuesBetween(lowValue:highValue:fullGainAtLowValue:fullGainAtHighValue:lowFadeCurveType:highFadeCurveType:subtree:)"
framework: phase
role: symbol
role_heading: Instance Method
path: "phase/phaseblendnodedefinition/addrangeforinputvaluesbetween(lowvalue:highvalue:fullgainatlowvalue:fullgainathighvalue:lowfadecurvetype:highfadecurvetype:subtree:)"
---

# addRangeForInputValuesBetween(lowValue:highValue:fullGainAtLowValue:fullGainAtHighValue:lowFadeCurveType:highFadeCurveType:subtree:)

Adds a child node that blends between a given high and low value.

## Declaration

```swift
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 lowFadeCurveType defines applies to the gain when the blend parameter value is between lowValue and fullGainAtLowValue.
- `fullGainAtHighValue`: The threshold for which a fade curve that highFadeCurveType defines applies to the gain when the blend parameter value is between highValue and fullGainAtHighValue.
- `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.

## See Also

### Adding Child Nodes

- [addRange(envelope:subtree:)](phase/phaseblendnodedefinition/addrange(envelope:subtree:).md)
- [addRangeForInputValuesAbove(value:fullGainAtValue:fadeCurveType:subtree:)](phase/phaseblendnodedefinition/addrangeforinputvaluesabove(value:fullgainatvalue:fadecurvetype:subtree:).md)
- [addRangeForInputValuesBelow(value:fullGainAtValue:fadeCurveType:subtree:)](phase/phaseblendnodedefinition/addrangeforinputvaluesbelow(value:fullgainatvalue:fadecurvetype:subtree:).md)
