<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    There's already a sysexin so sysexout makes sense.<br>
    <br>
    I can help testing it on Os X.<br>
    <br>
    p<br>
    <br>
    On 27/10/2010 09:55, Enrique Vetere wrote:
    <blockquote
      cite="mid:AANLkTi=7MuATH7p-1vBnsiePGfFmuegdU6=4wnHrhSp-@mail.gmail.com"
      type="cite">I agree it's a bug.<br>
      So far I've done a simple c program that outputs the sysex
      correctly, so I would be able to patch.<br>
      The thing is that if we keep midiout object we need to change it's
      interface (because it would have to accept a list instead of a
      float). So maybe better to create a new object sysexout?<br>
      <br>
      PS: On the other hand I need some help building/configuring, I
      open another thread...<br>
      <br>
      <div class="gmail_quote">On 27 October 2010 09:36, Martin Peach <span
          dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:martin.peach@sympatico.ca">martin.peach@sympatico.ca</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div>
            <div class="h5">On 2010-10-27 06:10, Enrique Vetere wrote:<br>
              <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
                0.8ex; border-left: 1px solid rgb(204, 204, 204);
                padding-left: 1ex;">
                Hi.<br>
                I've been trying to use midiout but it does not work
                when sending sysex<br>
                because it sends 1 byte at a time.<br>
                Chatting with matju on #irc where he showed me the
                source code, I think<br>
                the problem is that midiout uses ultimately
                sys_alsa_putmidibyte to send<br>
                <br>
                snd_seq_ev_set_sysex(&amp;ev,1,&amp;data)<br>
                <br>
                one byte at a time<br>
                <br>
                So we thought about writing an external that uses
                alsa-midi functions<br>
                and he guided me the first steps.<br>
                Now, the problem is that this external would need access
                to structure<br>
                midi_handle, and variables alsa_midioutfd and
                alsa_nmidiout which are<br>
                defined in s_midi_alsa.c (because creating and opening
                ALSA ports is<br>
                handled there). The functions provided by s_midi are not
                good enough as<br>
                I need to<br>
                <br>
                snd_seq_ev_set_sysex(&amp;ev,
                data_array_size,data_array)<br>
                <br>
                So my question is: is it possible to write such
                external? or I need to<br>
                patch the sources?<br>
              </blockquote>
              <br>
            </div>
          </div>
          IMHO this is a bug, so you should patch the source, then
          submit the patch to the tracker. Also it seems to bug
          differently on different OSs, only linux uses alsa. Pd's sysex
          implementation didn't work properly on WIN32 either last time
          I checked.<br>
          <font color="#888888">
            <br>
            Martin<br>
          </font></blockquote>
      </div>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Pd-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pd-dev@iem.at">Pd-dev@iem.at</a>
<a class="moz-txt-link-freetext" href="http://lists.puredata.info/listinfo/pd-dev">http://lists.puredata.info/listinfo/pd-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>