<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Use the (Tcl) event loop.  If you run the interface in a separate
    process, then you have chimera's event loop invoke a callback when
    there is data to be read on the socket connecting the two
    processes.  That is what's done to implement the --send command line
    option.  See DBPuppet/tcl_sockets.py for details.<br>
    <br>
    An alternative would be to use threads where the queue is checked
    every frame.  See ReadStdin/__init__.py for details there.<br>
    <br>
        HTH,<br>
    <br>
       Greg<br>
    <br>
    <div class="moz-cite-prefix">On 2/4/2016 2:37 PM, Dougherty, Matthew
      T wrote:<br>
    </div>
    <blockquote
cite="mid:CY1PR0601MB1692B4CE8DD2DB2F4653CA2FDED10@CY1PR0601MB1692.namprd06.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
        <p>I am working on a human interface for volume rendering.</p>
        <p><br>
        </p>
        <p>The livid ds1 mixer uses midi through USB.</p>
        <p><a moz-do-not-send="true"
            href="http://lividinstruments.com/products/ds1/"
            id="LPlnk903461"
            title="http://lividinstruments.com/products/ds1/
            Cmd+Click or tap to follow the link">http://lividinstruments.com/products/ds1/</a><br>
          <br>
        </p>
        <p><br>
        </p>
        <p>I should be able to use python midi libraries for access. </p>
        <p><br>
        </p>
        <p>This leads to the problem of the midi implementation, and a
          question as to a similar implementation for chimera2.</p>
        <p><br>
        </p>
        <p>One implementation would insert into the event loop, another
          approach could be tied to a frame/trigger callback. </p>
        <p><br>
        </p>
        <p>Any suggestions?</p>
        <p><br>
        </p>
        <div id="Signature">
          <div id="divtagdefaultwrapper" style="font-size:12pt;
            color:#000000; background-color:#FFFFFF;
            font-family:Calibri,Arial,Helvetica,sans-serif">
            <div class="BodyFragment"><font size="2">
                <div class="PlainText">Matthew Dougherty<br>
                  National Center for Macromolecular Imaging<br>
                  Baylor College of Medicine<br>
                  <span style="font-size:13.0pt; font-family:Calibri">=================================================</span><br>
                </div>
                <div class="PlainText"><span style="font-size:13pt;
                    font-family:Calibri">=================================================</span><span
                    style="font-size:13.0pt; font-family:Calibri"><br>
                  </span></div>
              </font></div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Chimera-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Chimera-dev@cgl.ucsf.edu">Chimera-dev@cgl.ucsf.edu</a>
<a class="moz-txt-link-freetext" href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>