Contents

MusicSequenceFileCreateData(_:_:_:_:_:)

Creates a data object containing the events from a music sequence.

Declaration

func MusicSequenceFileCreateData(_ inSequence: MusicSequence, _ inFileType: MusicSequenceFileTypeID, _ inFlags: MusicSequenceFileFlags, _ inResolution: Int16, _ outData: UnsafeMutablePointer<Unmanaged<CFData>?>) -> OSStatus

Parameters

  • inSequence:

    The music sequence that you want to create a MIDI data object from.

  • inFileType:

    The type of file format for the data in the data object.

  • inFlags:

    Flags that configure the data object creation process.

  • inResolution:

    The resolution, which depends on the file type and the music sequence type.

  • outData:

    On output, the data object containing MIDI data in the specified format.

Return Value

A result code.

Discussion

The CFData object should be released by the caller.

See Also

Managing Music Sequences