Function

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

OSStatus MusicTrackCut(MusicTrack inTrack, MusicTimeStamp inStartTime, MusicTimeStamp inEndTime);

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.