alCSeqSecToTicks.3p
757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.TH alCSeqSecToTicks 3P local "Silicon Graphics, Inc."
.SH NAME
.upperok
alCSeqSecToTicks \- converts from seconds to MIDI clock ticks
.SH SYNOPSIS
.nf
\f3
.Op c
#include <libaudio.h>
.sp .8v
u32 alCSeqSecToTicks(ALCSeq *seq, float sec, u32 tempo);
.Op
\f1
.fi
.SH PARAMETERS
.TP 10
.I seq
pointer to the ALCSeq structure you wish to operate on.
.TP
.I sec
number of seconds you wish to convert to ticks.
.TP
.I tempo
the sequence tempo in microsends per tick.
.SH DESCRIPTION
MIDI sequences represent time in clock ticks relative to some tempo
(speed). The alCSeqSecToTicks call converts from seconds to clock
ticks. It does not take into account the tempo changes listed in the sequence.
.SH SEE ALSO
.IR alCSeq (3P),
.IR alCSeqTicksToSec (3P)