So here is a midi (input) driver for jack. The audio/midi driver share the same
jack client, I documented the assumptions I have to make for the communication
of the two in the code. While the audio driver typically only has one option
(the default audio device), for midi there can be more than one choice. For
example here is the relevant part of `--bse-driver-list` on my system if I
configure jackd to do the midi handling - we get one possible device in this
case:
```
Available MIDI drivers:
jack=system:midi_capture_1: (Input, 01000000)
JACK Midi "system:midi_capture_1" [Physical:
in-hw-2-0-0-UA-25EX-MIDI-1]
Hardware Midi Input
Routing via the JACK Audio Connection Kit
Note: JACK adds latency compared to direct hardware access
```
And the same system using alsa midi bridge setting in cadence (uses a2jmidid):
```
Available MIDI drivers:
jack=a2j:Midi Through [14] (capture): Midi Through Port-0: (Input, 01000000)
JACK Midi "a2j:Midi Through [14] (capture): Midi Through
Port-0"
Hardware Midi Input
Routing via the JACK Audio Connection Kit
Note: JACK adds latency compared to direct hardware access
jack=a2j:UA-25EX [24] (capture): UA-25EX MIDI 1: (Input, 01000001)
JACK Midi "a2j:UA-25EX [24] (capture): UA-25EX MIDI 1"
Hardware Midi Input
Routing via the JACK Audio Connection Kit
Note: JACK adds latency compared to direct hardware access
```
So here we get more than one device entry, and if there were more midi devices
we would get even more. In this case we have relatively long device names, but
we need both: client name and port name to distinguish between devices.
I also added a comment about auto connect which should really be configurable
one day; still even without that the midi driver should be usable.
You can view, comment on, or merge this pull request online at:
https://github.com/tim-janik/beast/pull/129
-- Commit Summary --
* BSE: Jack: add midi driver
-- File Changes --
M bse/driver-jack.cc (233)
-- Patch Links --
https://github.com/tim-janik/beast/pull/129.patch
https://github.com/tim-janik/beast/pull/129.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/tim-janik/beast/pull/129
_______________________________________________
beast mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/beast