Contents

MusicTrackCut(_:_:_:)

Removes a specified range of music track events, and shifts later events toward the start of the track to fill in the gap.

Declaration

func MusicTrackCut(_ inTrack: MusicTrack, _ inStartTime: MusicTimeStamp, _ inEndTime: MusicTimeStamp) -> OSStatus

Parameters

  • inTrack:

    The music track that you want to cut events from.

  • inStartTime:

    The start time, in beats, for the range of music track events that you want to cut.

  • inEndTime:

    The end time, in beats, for the range of music track events that you want to cut.

Return Value

A result code.

Discussion

The inStartTime value must be less than the inEndTime value.

See Also

Managing Music Tracks