alSeqpSetChlVol (function)

alSeqpSetChlVol/n_alSeqpSetChlVol

Sets the volume for the given MIDI channel

Syntax

#include <libaudio.h>     /* libaudio.h */
void alSeqpSetChlVol(    ALSeqPlayer *seqp, u8 chan, u8 vol);
#include <n_libaudio.h>     /* n_libaudio.h */
void n_alSeqpSetChlVol(N_ALSeqPlayer *seqp, u8 chan, u8 vol);

Arguments

seqp
Pointer to the sequence player

chan
Target (zero-based) MIDI channel

vol
New volume for the MIDI channel

Description

alSeqpSetChlVol sets the volume for the given MIDI channel. A value of 127 is full volume, and 0 is off. Subsequent volume controllers (Cntrl 7) in 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.

Note

In addition to channel volume, the sequence player maintains an overall sequence volume that you can gain access to and set by using the alSeqpGetVol and alSeqpSetVol functions.

See Also

alSeqpGetChlVol, alSeqpSetVol, alSeqpSendMidi, alSeqPlayer, and alSeqpGetVol

Revision History

1999/04/30 Changed Format