BASS_ATTRIB_MIDI_EXCKEYS attribute

Enable or disable new notes killing any existing instance of the same note.

BASS_ChannelSetAttribute(
    DWORD handle,
    BASS_ATTRIB_MIDI_EXCKEYS,
    float exclusive
);

Parameters

handleThe MIDI stream handle.
exclusiveEnable exclusive keys... 0 = normal (disabled), 1 = drum channel keys are exclusive, 2 = all channel keys are exclusive. This attribute is an integer (floating-point values will be truncated).

Remarks

When enabled, this attribute effectively gives each key its own exclusive class/group. Any keys that are already assigned to an exclusive class/group by the active soundfont are unaffected.

Changes take effect from the next note played.

See also

BASS_ChannelGetAttribute, BASS_ChannelSetAttribute