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

# load(from:options:)

Loads the file the URL references and adds the events to the sequence.

## Declaration

```swift
func load(from fileURL: URL, options: AVMusicSequenceLoadOptions = []) throws
```

## Parameters

- `fileURL`: The URL to the file.
- `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:)-8o58w.md)
- [AVMusicSequenceLoadOptions](avfaudio/avmusicsequenceloadoptions.md)
