<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioToolbox",
  "identifier" : "/documentation/AudioToolbox/MusicTrackMoveEvents(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Audio Toolbox"
    ],
    "preciseIdentifier" : "c:@F@MusicTrackMoveEvents"
  },
  "title" : "MusicTrackMoveEvents(_:_:_:_:)"
}
-->

# MusicTrackMoveEvents(_:_:_:_:)

Shifts music track events forward or backward in time, in terms of beats.

```
func MusicTrackMoveEvents(_ inTrack: MusicTrack, _ inStartTime: MusicTimeStamp, _ inEndTime: MusicTimeStamp, _ inMoveTime: MusicTimeStamp) -> OSStatus
```

## Parameters

`inTrack`

The track whose events you want to move forward or backward in time.

`inStartTime`

The current start time, in beats, for the music track events you want to move.

`inEndTime`

The current end time, in beats, for the music track events you want to move.

`inMoveTime`

The number of beats to move the specified range of music track events. A positive value moves the events toward the end of the music track; a negative value moves the events toward the start.

## Return Value

A result code.

## Discussion

The `inStartTime` value must be less than the `inEndTime` 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)