<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioToolbox",
  "identifier" : "/documentation/AudioToolbox/kSequenceTrackProperty_TrackLength",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Audio Toolbox"
    ],
    "preciseIdentifier" : "c:@Ea@kSequenceTrackProperty_LoopInfo@kSequenceTrackProperty_TrackLength"
  },
  "title" : "kSequenceTrackProperty_TrackLength"
}
-->

# kSequenceTrackProperty_TrackLength

The time of the last music event in a music track, plus time required for note fade-outs and so on.

```
var kSequenceTrackProperty_TrackLength: UInt32 { get }
```

## Discussion

If this property is not set, music track length equals the end of the last active event in the track and is adjusted dynamically as events are added or removed. The value of this property is the specified track length, or the calculated length—whichever is greater. A read/write [`MusicTimeStamp`](/documentation/AudioToolbox/MusicTimeStamp) value.

---

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)