<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVMakeBeatRange(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:@F@AVMakeBeatRange"
  },
  "title" : "AVMakeBeatRange(_:_:)"
}
-->

# AVMakeBeatRange(_:_:)

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

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

## Parameters

`startBeat`

The timestamp for the start position.

`lengthInBeats`

The length of the beat range, in beats.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)