---
title: "MusicTrackMoveEvents(_:_:_:_:)"
framework: audiotoolbox
role: symbol
role_heading: Function
path: "audiotoolbox/musictrackmoveevents(_:_:_:_:)"
---

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

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

## Declaration

```swift
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

Return Value A result code.

## Discussion

Discussion The inStartTime value must be less than the inEndTime value.

## See Also

### Managing Music Tracks

- [MusicTrackClear(_:_:_:)](audiotoolbox/musictrackclear(_:_:_:).md)
- [MusicTrackCopyInsert(_:_:_:_:_:)](audiotoolbox/musictrackcopyinsert(_:_:_:_:_:).md)
- [MusicTrackCut(_:_:_:)](audiotoolbox/musictrackcut(_:_:_:).md)
- [MusicTrackGetDestMIDIEndpoint(_:_:)](audiotoolbox/musictrackgetdestmidiendpoint(_:_:).md)
- [MusicTrackGetDestNode(_:_:)](audiotoolbox/musictrackgetdestnode(_:_:).md)
- [MusicTrackGetProperty(_:_:_:_:)](audiotoolbox/musictrackgetproperty(_:_:_:_:).md)
- [MusicTrackGetSequence(_:_:)](audiotoolbox/musictrackgetsequence(_:_:).md)
- [MusicTrackMerge(_:_:_:_:_:)](audiotoolbox/musictrackmerge(_:_:_:_:_:).md)
- [MusicTrackNewAUPresetEvent(_:_:_:)](audiotoolbox/musictracknewaupresetevent(_:_:_:).md)
- [MusicTrackNewExtendedNoteEvent(_:_:_:)](audiotoolbox/musictracknewextendednoteevent(_:_:_:).md)
- [MusicTrackNewExtendedTempoEvent(_:_:_:)](audiotoolbox/musictracknewextendedtempoevent(_:_:_:).md)
- [MusicTrackNewMIDIChannelEvent(_:_:_:)](audiotoolbox/musictracknewmidichannelevent(_:_:_:).md)
- [MusicTrackNewMIDINoteEvent(_:_:_:)](audiotoolbox/musictracknewmidinoteevent(_:_:_:).md)
- [MusicTrackNewMIDIRawDataEvent(_:_:_:)](audiotoolbox/musictracknewmidirawdataevent(_:_:_:).md)
- [MusicTrackNewMetaEvent(_:_:_:)](audiotoolbox/musictracknewmetaevent(_:_:_:).md)
