Re: [Alsa-user] enumerate MIDI devices

2017-02-22 Thread Brian Sorahan
I think that's exactly what I needed! Thanks On Wed, Feb 22, 2017 at 1:04 PM, Clemens Ladisch wrote: > Brian Sorahan wrote: > > if card := C.snd_seq_client_info_get_card(cinfo); card >= 0 { > > device.ID = fmt.Sprintf("hw:%d", card) > > } > > > But if I prefer to use th

Re: [Alsa-user] enumerate MIDI devices

2017-02-22 Thread Clemens Ladisch
Brian Sorahan wrote: > if card := C.snd_seq_client_info_get_card(cinfo); card >= 0 { > device.ID = fmt.Sprintf("hw:%d", card) > } > But if I prefer to use the RawMIDI API to actually connect to the device That particular device might not be available as a RawMIDI port.

[Alsa-user] enumerate MIDI devices

2017-02-22 Thread Brian Sorahan
Hi all, I am hoping to get some guidance on how to properly use the information I get when I list MIDI devices. I'm tinkering with this code https://github.com/scgolang/midi/blob/d50a32b1725ae42044c84f02a53c69004926bd93/midi_linux.go#L94-L152 which seems to list MIDI devices ok. But if I prefer to