---
title: "addSubtree(_:)"
framework: phase
role: symbol
role_heading: Instance Method
path: "phase/phasecontainernodedefinition/addsubtree(_:)"
---

# addSubtree(_:)

Adds a sound event node as a child.

## Declaration

```swift
func addSubtree(_ subtree: PHASESoundEventNodeDefinition)
```

## Parameters

- `subtree`: The child node, which itself can contain a hierarchical tree of descendent nodes.
