---
title: "addRange(envelope:subtree:)"
framework: phase
role: symbol
role_heading: Instance Method
path: "phase/phaseblendnodedefinition/addrange(envelope:subtree:)"
---

# addRange(envelope:subtree:)

Adds a child node with an envelope.

## Declaration

```swift
func addRange(envelope: PHASEEnvelope, subtree: PHASESoundEventNodeDefinition)
```

## Parameters

- `envelope`: A shaped audio signal over a range.
- `subtree`: A child node that’s active in the blend range an envelope defines.

## See Also

### Adding Child Nodes

- [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)
- [addRangeForInputValuesBetween(lowValue:highValue:fullGainAtLowValue:fullGainAtHighValue:lowFadeCurveType:highFadeCurveType:subtree:)](phase/phaseblendnodedefinition/addrangeforinputvaluesbetween(lowvalue:highvalue:fullgainatlowvalue:fullgainathighvalue:lowfadecurvetype:highfadecurvetype:subtree:).md)
