---
title: kSequenceTrackProperty_TrackLength
framework: audiotoolbox
role: symbol
role_heading: Global Variable
path: audiotoolbox/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.

## Declaration

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

## Discussion

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 value.

## See Also

### Constants

- [kSequenceTrackProperty_LoopInfo](audiotoolbox/ksequencetrackproperty_loopinfo.md)
- [kSequenceTrackProperty_OffsetTime](audiotoolbox/ksequencetrackproperty_offsettime.md)
- [kSequenceTrackProperty_MuteStatus](audiotoolbox/ksequencetrackproperty_mutestatus.md)
- [kSequenceTrackProperty_SoloStatus](audiotoolbox/ksequencetrackproperty_solostatus.md)
- [kSequenceTrackProperty_AutomatedParameters](audiotoolbox/ksequencetrackproperty_automatedparameters.md)
- [kSequenceTrackProperty_TimeResolution](audiotoolbox/ksequencetrackproperty_timeresolution.md)
