alSeqpSetChlProgram (function)

alSeqpSetChlProgram, n_alSeqpSetChlProgram

Assigns a MIDI program to a MIDI channel

Syntax

#include <libaudio.h>     /* libaudio.h */
void alSeqpSetChlProgram(    ALSeqPlayer *seqp, u8 chan, u8 prog);
#include <n_libaudio.h>     /* n_libaudio.h */
void n_alSeqpSetChlProgram(N_ALSeqPlayer *seqp, u8 chan, u8 prog);

Arguments

seqp
Pointer to a compressed MIDI sequence player

chan
Zero-based MIDI channel number on which to set the program

prog
Number of the program to assign to the MIDI channel

Description

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

For details on n_audio library, see the "Chapter 28 n_audio library" of the programming manual.

See Also

alSeqpSetBank, alSeqpGetChlProgram, alSeqpSendMidi, alSeqPlayer

Revision History

1999/04/30 Changed Format