Class

AVMusicTrack

A collection of music events sent to a given destination, and which can be offset, muted, and manipulated independently from other track events.

Topics

Getting Music Track Properties

var destinationAudioUnit: AVAudioUnit?

The AVAudioUnit that receives the track's events.

var destinationMIDIEndpoint: MIDIEndpointRef

The specified MIDI endpoint set as the track's target.

var lengthInBeats: AVMusicTimeStamp

The total duration of the track, in beats.

var lengthInSeconds: TimeInterval

The total duration of the track, in seconds.

var loopRange: AVBeatRange

The timestamp range, in beats, for the loop.

var isLoopingEnabled: Bool

A Boolean value that indicates whether or not the track is looped.

var isMuted: Bool

A Boolean value that indicates whether the track is muted.

var numberOfLoops: Int

The number of times that the track's loop repeats.

var offsetTime: AVMusicTimeStamp

The offset of the track's start time to the specified time, in beats.

var isSoloed: Bool

A Boolean value that indicates whether the track is soloed.

var timeResolution: Int

The time resolution value for the sequence, in ticks (pulses) per quarter note.

Relationships

Inherits From

Conforms To

See Also

Handling Music Tracks

enum AVMusicTrackLoopCount

Constants that define the number of times a track will loop.