Contents

MusicSequenceGetSecondsForBeats(_:_:_:)

Calculates the number of seconds that correspond to a number of beats.

Declaration

func MusicSequenceGetSecondsForBeats(_ inSequence: MusicSequence, _ inBeats: MusicTimeStamp, _ outSeconds: UnsafeMutablePointer<Float64>) -> OSStatus

Parameters

  • inSequence:

    The sequence that you want to get a count of seconds for.

  • inBeats:

    The number of beats that you want the corresponding number of seconds for.

  • outSeconds:

    On output, the number of seconds that corresponds to the number of beats in the inBeats parameter.

Return Value

A result code.

Discussion

This function makes use of the music sequence’s tempo track.

See Also

Managing Music Sequences