BASS MIDI

BASS_CONFIG_MIDI_IN_PORTS config option


The number of MIDI input ports to make available.

BASS_SetConfig(
    BASS_CONFIG_MIDI_IN_PORTS,
    DWORD ports
);

Parameters

portsNumber of input ports... 0 (min) - 10 (max).

Remarks

MIDI input ports allow MIDI data to be received from other software, not only MIDI devices. Once a port has been initialized via BASS_MIDI_InInit, the ALSA client and port IDs can be retrieved from BASS_MIDI_InGetDeviceInfo, which other software can use to connect to the port and send data to it. Prior to initialization, an input port will have a client ID of 0.

The default is for 1 input port to be available.

Platform-specific

This option is only available on Linux.

See also

BASS_MIDI_InGetDeviceInfo, BASS_MIDI_InInit

BASS_GetConfig, BASS_SetConfig