On Mon, Jul 7, 2014 at 5:00 PM, Flávio Schiavoni <fls@rendera.com.br> wrote:
I'm asking it to try to help with your other doubt involving Jack MIDI or ALSA MIDI.
Here goes my 3 cents.
If you need to run it with sudo, maybe the best approach is to divide the system in a client / server paradigm.

+1, with a note that the RtMidi library is probably the best way to implement the MIDI backend, as it supports JACK, ALSA etc trough the same high-level API: http://www.music.mcgill.ca/~gary/rtmidi/

HTH, -Harry