alCSeqTicksToSec (function)

Converts from MIDI clock ticks to seconds

Syntax

#include <libaudio.h>     /* libaudio.h */

f32 alCSeqTicksToSec(ALCSeq *seq, s32 ticks, u32 tempo);

Arguments

seq
Pointer to the ALSeq structure on which you want to operate

ticks
Number of MIDI clock ticks

tempo
Tempo in microseconds per tick

Description

MIDI sequences represent time in clock ticks relative to some tempo. The alCSeqTicksToSec call converts these clock ticks to seconds. It does not take into account the tempo changes listed in the sequence.

See Also

alCSeq, alCSeqSetToTicks

Revision History

1999/04/30 Changed Format