FrancescoCeruti / linux-show-player

Linux Show Player - Cue player designed for stage productions
https://linux-show-player.org
GNU General Public License v3.0
207 stars 49 forks source link

Support more than one MIDI In/Out #297

Open s0600204 opened 10 months ago

s0600204 commented 10 months ago

This PR adds the ability to connect to more than one MIDI input and output at a time, allowing for listening to messages coming from more than one Interface or Port, and different MIDI cues sending messages to different locations.

Currently, there is a limit of 16 inputs and 16 outputs, but this could be raised or removed (although there's probably a maximum number that ALSA or Jack can handle).

The interface to define MIDI inputs and outputs now looks like: settings

With it now possible to select which of the predefined outputs is to be used for a MIDI cue: midi_cue

And which of the predefined inputs should be listened to for Cue and Layout Controls: layout_controls

(The Preferences dialog could probably do with being a little wider, but that's out of scope for this PR.)