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/sequence stream, this cannot be lower than the number of channels that the stream was created with.

Remarks

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

See also

BASS_MIDI_StreamCreate, BASS_MIDI_StreamCreateEvents, BASS_MIDI_StreamCreateFile

BASS_ChannelGetAttribute, BASS_ChannelSetAttribute