[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] MIDIOut on Linux (stefan?)



nescivi <nescivi@xxxxxxxxx> writes:

> Hi Mario,
>
> Friday, January 27, 2006, 11:05:53 AM, you wrote:
> m> I've been trying to get MIDIOut working reliably on Linux
> m> several times, and never really succeeded without a manual
> m> call to "acoonect".  AM I really that stupid, or
> m> is something broken in the ALSA seq code in SCLang?
>
> m> SPecifically, I can not seem to connect a MIDIOut to
> m> a specific MIDIClient.destination.  I get no error,
> m> but if I send MIDI events, they never reach that specified destination.
> m> They only do if I manually call "aconnect" to connect
> m> the two ports.
> m> Which is kind of problematic, since aconnect required
> m> PortIDs as arguments, which can change, so it is
> m> sometimes not reliable to write code that can make
> m> MIDIOut connections unattended...
>
> m> Stefan, can you clarify this?  DO you know of this problem?
> m> Or am I just missing something?
>
> This seems to be how it is. At least, that is the way I used it in my
> patches that use MIDI (from a bit more than a year ago).
> It would be nice if this could be made different somehow.

It should be possible to fix, since MIDIOut-new already passes
the destination uid, so the C code would just need to do the proper
subscription.  For me, the code kind of looks like it already does
this, but it somehow fails to achieve a valid subscription.

-- 
CYa,
  Mario