alCSPSetChlProgram (function)

alCSPSetChlProgram, n_alCSPSetChlProgram

Assigns a MIDI program to a MIDI channel

Syntax

#include <libaudio.h>     /* libaudio.h */
void alCSPSetChlProgram(    ALCSPlayer *seqp, u8 chan, s32 prog);
#include <n_libaudio.h>     /* n_libaudio.h */
void n_alCSPSetChlProgram(N_ALCSPlayer *seqp, u8 chan, u8  prog);

Arguments

seqp
Pointer to the compressed MIDI sequence player

chan
Target (0 based) MIDI channel number where the program goes
prog
number of the program to assign to the MIDI channel

Description

alCSPSetChlProgram assigns a program number (specified by prog) from the current bank (see the alCSPSetBank function) to the MIDI channel specified by chan. Subsequent program changes within the sequence will override the effect of this call.

For details on n_audio library, see "Chapter 28: n_audio library" in the N64 Programming Manual.

See Also

alCSPSetBank, alCSPGetChlProgram, alCSPSendMidi, and alCSeqPlayer

Revision History

1999/04/30 Changed Format