[PD-dev] midiout

Enrique Vetere evetere at gmail.com
Wed Oct 27 12:10:45 CEST 2010


Hi.
I've been trying to use midiout but it does not work when sending sysex
because it sends 1 byte at a time.
Chatting with matju on #irc where he showed me the source code, I think the
problem is that midiout uses ultimately sys_alsa_putmidibyte to send

snd_seq_ev_set_sysex(&ev,1,&data)

one byte at a time

So we thought about writing an external that uses alsa-midi functions and he
guided me the first steps.
Now, the problem is that this external would need access to structure
midi_handle, and variables alsa_midioutfd and alsa_nmidiout which are
defined in s_midi_alsa.c (because creating and opening ALSA ports is handled
there). The functions provided by s_midi are not good enough as I need to

snd_seq_ev_set_sysex(&ev, data_array_size,data_array)

So my question is: is it possible to write such external? or I need to patch
the sources?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20101027/ff39754d/attachment.htm>


More information about the Pd-dev mailing list