alBnkfNew.3p 1.11 KB
.TH alBnkfNew 3P local "Silicon Graphics, Inc."

.SH NAME 
.upperok 
alBnkfNew \- initializes a Bank File for use on the Ultra 64

.SH SYNOPSIS
.nf
\f3
.Op c
#include <libaudio.h>
.sp .8v
void	alBnkfNew(ALBankFile *ctl, u8 *tbl);
.Op
\f1
.fi
.SH PARAMETERS
.TP 10
.I bnk
pointer to the control (.ctl) data.
.TP
.I tbl
pointer to the wavetable (.tbl) data.
.SH DESCRIPTION
The instrument compiler 
.I ic (3p)
creates two files, the control (.ctl) file and the wavetable (.tbl)
file. The controlfile contains instrument performance information and
the wavetable file contains the actual wavetable data.
.PP
The control file format specifies that references to bank data be
stored as offsets from the beginning of the control file. To improve
runtime performance, the offsets are converted to virtual addresses by
alBnkfNew.
.PP
Typically, the control (.ctl) file is loaded into DRAM while the table
file (.tbl) is left in the Cart ROM because of its size. If your table
file is small, you can optionally load that into DRAM to minimize DMA
requests while the sequence is playing.
.SH SEE ALSO
.IR ic (3P),
.IR alSeqpSetBank (3P)