<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 7/14/2012 10:04 PM, tim vets wrote:<br>
    </div>
    <blockquote
cite="mid:CA+Bc=yPYO+=ZmZck+6TazQ1ctqnApKpnu77J7_SPwOfp4GFDjg@mail.gmail.com"
      type="cite"><br>
      <br>
      <div class="gmail_quote">2012/7/14 Rob Bothof <span dir="ltr">&lt;<a
            moz-do-not-send="true" href="mailto:rbothof@xs4all.nl"
            target="_blank">rbothof@xs4all.nl</a>&gt;</span><br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          Dear List,<br>
          <br>
          I'm working on a diy midi-controller and running into some
          latency problems,<br>
          the controller is a 'scratch disk' with with a pic
          microcontroller with usb.<br>
          <br>
          i've build an absolute encoder for it and i'm sending the data
          or angle as pitchbend data (for high resolution)<br>
          the speed with which i'm sending the data is way beyond
          midi-standards, i know...<br>
          <br>
          now when i set up pd to use alsa audio (internal soundcard)
          and alsa midi, the device works perfect, very smooth..<br>
          when i choose jackd as a soundcard, i'm getting getting
          latency on the midi input..midi input is falling behind,<br>
          then picking up instantly, falling behind again and so
          on...like a sawtooth shape..<br>
          <br>
          the settings i choose for jackd have no effect on this..either
          when i'm using the internal soundcard via jackd -&gt; alsa,<br>
          or a firewire device via freebob...the latency problem is the
          same...also with higher audiobuffer settings there is no
          change<br>
          in the latency<br>
          <br>
          I disabled alsa sequencer support in jack so midi is running
          straight to pd..<br>
          <br>
          i know i'm working out of midi standards, but any help to
          where the problem might be,<br>
          or simular experiences, would be greatly appreciated...<br>
          <br>
        </blockquote>
        <div><br>
          I can't be of much help, but I can chime in with a
          similar/related experience:<br>
          So far, each time I tried sending midi note messages from pd
          to something like Qsynth or Qsampler, using alsamidi via jack<br>
          the timing is unacceptably messy. <br>
          <img alt="Inline afbeelding 1"
            src="cid:part2.04050407.02070005@xs4all.nl"><br>
          resluts in:<br>
          <img alt="Inline afbeelding 2"
            src="cid:part3.00080203.02070502@xs4all.nl"><br>
          you can clearly see the irregularity, and yes, it _is_ audible
          too... ;)<br>
          <br>
          <br>
        </div>
        <blockquote class="gmail_quote" style="margin: 0px 0px 0px
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <br>
        </blockquote>
      </div>
    </blockquote>
    Hi Tim, thank you for the shared blues on midi timing ;)<br>
    what i find strange is that i do not use jack for midi, i disabled
    alsa sequencer in jackd<br>
    so midi should go directly to pd.<br>
    <br>
    only thing i change is the audio card from alsa to jack...i don't
    see how this would influence the midi, but it does..<br>
    <br>
    greets,<br>
    Rob<br>
    <br>
    <br>
    <br>
  </body>
</html>