alSeqSecToTicks (function)

alSeqSecToTicks

Converts from seconds to MIDI clock ticks

Syntax

#include <libaudio.h>     /* libaudio.h */
u32 alSeqSecToTicks(ALSeq *seq, float sec, u32 tempo);

Arguments

seq
Pointer to the ALSeq structure to be operated on

sec
Number of seconds to be converted to ticks

tempo
Sequence tempo in microseconds per tick

Description

MIDI sequences represent time in clock ticks relative to some tempo. alCSeqSecToTicks converts from seconds to clock ticks. However, it does not take into account the tempo changes listed in the sequence.

See Also

alSeq, alSeqTicksToSec

Revision History

1999/04/30 Changed Format