MusicTrackMoveEvents(_:_:_:_:)
Shifts music track events forward or backward in time, in terms of beats.
Declaration
func MusicTrackMoveEvents(_ inTrack: MusicTrack, _ inStartTime: MusicTimeStamp, _ inEndTime: MusicTimeStamp, _ inMoveTime: MusicTimeStamp) -> OSStatusParameters
- 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.
See Also
Managing Music Tracks
MusicTrackClear(_:_:_:)MusicTrackCopyInsert(_:_:_:_:_:)MusicTrackCut(_:_:_:)MusicTrackGetDestMIDIEndpoint(_:_:)MusicTrackGetDestNode(_:_:)MusicTrackGetProperty(_:_:_:_:)MusicTrackGetSequence(_:_:)MusicTrackMerge(_:_:_:_:_:)MusicTrackNewAUPresetEvent(_:_:_:)MusicTrackNewExtendedNoteEvent(_:_:_:)MusicTrackNewExtendedTempoEvent(_:_:_:)MusicTrackNewMIDIChannelEvent(_:_:_:)MusicTrackNewMIDINoteEvent(_:_:_:)MusicTrackNewMIDIRawDataEvent(_:_:_:)MusicTrackNewMetaEvent(_:_:_:)