---
title: "AVMakeBeatRange(_:_:)"
framework: avfaudio
role: symbol
role_heading: Function
path: "avfaudio/avmakebeatrange(_:_:)"
---

# AVMakeBeatRange(_:_:)

Creates a beat range with the specified start time and length.

## Declaration

```swift
func AVMakeBeatRange(_ startBeat: AVMusicTimeStamp, _ lengthInBeats: AVMusicTimeStamp) -> AVBeatRange
```

## Parameters

- `startBeat`: The timestamp for the start position.
- `lengthInBeats`: The length of the beat range, in beats.
