Contents

MusicTrackNewAUPresetEvent(_:_:_:)

Adds an event of type AUPresetEvent to a music track.

Declaration

func MusicTrackNewAUPresetEvent(_ inTrack: MusicTrack, _ inTimeStamp: MusicTimeStamp, _ inPresetEvent: UnsafePointer<AUPresetEvent>) -> OSStatus

Parameters

  • inTrack:

    The music track to add the event to.

  • inTimeStamp:

    The timestamp, in beats, at which to add the event. Must be greater than or equal to 0.

  • inPresetEvent:

    The event to add to the music track.

Return Value

A result code.

See Also

Managing Music Tracks