BASS MIDI

BASS_ATTRIB_MIDI_VOICES_ACTIVE attribute


The number of samples currently playing in a MIDI stream.

BASS_ChannelGetAttribute(
    HSTREAM handle,
    BASS_ATTRIB_MIDI_VOICES_ACTIVE,
    float *voices
);

Parameters

handleThe MIDI stream handle.
voicesThe number of voices.

Remarks

This attribute is read-only, so cannot be modified via BASS_ChannelSetAttribute.

BASS_MIDI_StreamGetEvent can be used with the MIDI_EVENT_VOICES event to check how many voices are active in individual MIDI channels.

See also

BASS_ATTRIB_MIDI_CPU, BASS_ATTRIB_MIDI_VOICES, BASS_CONFIG_MIDI_VOICES

BASS_ChannelGetAttribute, BASS_ChannelSetAttribute