Contents

MusicTrackClear(_:_:_:)

Removes a specified range of music track events.

Declaration

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

Parameters

  • inTrack:

    The music track that you want to remove events from.

  • inStartTime:

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

  • inEndTime:

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

Return Value

A result code.

Discussion

The inStartTime value must be less than the inEndTime value.

See Also

Managing Music Tracks