BASS MIDI

BASS_ATTRIB_MIDI_CHANS attribute


The number of MIDI channels in a MIDI stream.

BASS_ChannelSetAttribute(
    HSTREAM handle,
    BASS_ATTRIB_MIDI_CHANS,
    float channels
);

Parameters

handleThe MIDI stream handle.
channelsThe number of MIDI channels... 1 (min) - 128 (max). For a MIDI file stream, the minimum is 16.

Remarks

New channels are melodic by default. Any notes playing on a removed channel are immediately stopped.

See also

BASS_MIDI_StreamCreate, BASS_MIDI_StreamCreateFile

BASS_ChannelGetAttribute, BASS_ChannelSetAttribute