---
title: "data(withSMPTEResolution:error:)"
framework: avfaudio
role: symbol
role_heading: Instance Method
path: "avfaudio/avaudiosequencer/data(withsmpteresolution:error:)"
---

# data(withSMPTEResolution:error:)

Gets a data object that contains the events from the sequence.

## Declaration

```swift
func data(withSMPTEResolution SMPTEResolution: Int, error outError: NSErrorPointer) -> Data
```

## Parameters

- `SMPTEResolution`: The relationship between tick and quarter note for saving to a Standard MIDI File. Pass 0 to use the default.
- `outError`: On exit, if an error occurs, a description of the error.

## Discussion

Discussion The client controls the lifetime of the data value this method returns.

## See Also

### Getting Sequence Properties

- [isPlaying](avfaudio/avaudiosequencer/isplaying.md)
- [rate](avfaudio/avaudiosequencer/rate.md)
- [tracks](avfaudio/avaudiosequencer/tracks.md)
- [currentPositionInBeats](avfaudio/avaudiosequencer/currentpositioninbeats.md)
- [currentPositionInSeconds](avfaudio/avaudiosequencer/currentpositioninseconds.md)
- [tempoTrack](avfaudio/avaudiosequencer/tempotrack.md)
- [userInfo](avfaudio/avaudiosequencer/userinfo.md)
- [AVAudioSequencer.InfoDictionaryKey](avfaudio/avaudiosequencer/infodictionarykey.md)
- [AVMusicTimeStampEndOfTrack](avfaudio/avmusictimestampendoftrack.md)
