Function

MusicSequenceGetSecondsForBeats

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

Declaration

OSStatus MusicSequenceGetSecondsForBeats(MusicSequence inSequence, MusicTimeStamp inBeats, Float64 *outSeconds);

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