---
title: "load(from:options:)"
framework: avfaudio
role: symbol
role_heading: Instance Method
path: "avfaudio/avaudiosequencer/load(from:options:)-8o58w"
---

# load(from:options:)

Parses the data and adds its events to the sequence.

## Declaration

```swift
func load(from data: Data, options: AVMusicSequenceLoadOptions = []) throws
```

## Parameters

- `data`: The data to load from.
- `options`: Determines how the contents map to the tracks inside the sequence.

## See Also

### Managing Sequence Load Options

- [load(from:options:)](avfaudio/avaudiosequencer/load(from:options:)-9kb6m.md)
- [AVMusicSequenceLoadOptions](avfaudio/avmusicsequenceloadoptions.md)
