alSeqTicksToSec (function)

alSeqTicksToSec

Converts from MIDI clock ticks to seconds

Syntax

#include <libaudio.h>     /* libaudio.h */
float alSeqTicksToSec(ALSeq *seq, s32 ticks, u32 tempo);

Arguments

seq
Pointer to the ALSeq structure to be operated on

ticks
Number of MIDI clock ticks

tempo
Tempo in microseconds per tick

Description

MIDI sequences represent time in clock ticks relative to some tempo. alSeqTicksToSec converts clock ticks to seconds but does not take into account the tempo changes listed in the sequence.

See Also

alSeq, alSeqSecToTicks

Revision History

1999/04/30 Changed Format