<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">hi matthew,<br>
      <br>
      for development you can use the pip of chimerax to install
      external tools, but pip is not directly accessible:<br>
        ChimeraX -m pip install ...<br>
      or<br>
        ${CHIMERAX}/bin/python3.5
      ${CHIMERAX}/lib/python3.5/site-packages/pip install ...<br>
      CHIMERAX points to my installationpath on the harddisk and the
      package finally goes into the chimerax python tree.<br>
      the second method does not refresh the chimerax cache.<br>
      <br>
      but maybe its better to put the dependency into the deployment of
      your tool<br>
      in setup.py (e.g. i need pyparsing by pip):<br>
          install_requires=['pyparsing', 'ChimeraX-Core>=0.1'],<br>
      <br>
      cheers,<br>
      wolfgang<br>
      <br>
      <br>
      On 01/14/2017 03:38 AM, Tom Goddard wrote:<br>
    </div>
    <blockquote
      cite="mid:3429EAF2-841B-4B66-B3F0-01EBC1C535CA@sonic.net"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode:
        space; -webkit-line-break: after-white-space;" class="">
        <div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode:
          space; -webkit-line-break: after-white-space;" class=""><br>
          <div class=""><br class="">
            <div>
              <blockquote type="cite" class="">
                <div class="">On Jan 13, 2017, at 2:26 PM, Dougherty,
                  Matthew T <<a moz-do-not-send="true"
                    href="mailto:matthewd@bcm.edu" class="">matthewd@bcm.edu</a>>
                  wrote:</div>
                <br class="Apple-interchange-newline">
                <div class="">
                  <div id="divtagdefaultwrapper" dir="ltr"
                    style="font-style: normal; font-variant-caps:
                    normal; font-weight: normal; letter-spacing: normal;
                    orphans: auto; text-align: start; text-indent: 0px;
                    text-transform: none; white-space: normal; widows:
                    auto; word-spacing: 0px; -webkit-text-stroke-width:
                    0px; font-size: 12pt; font-family: Calibri, Arial,
                    Helvetica, sans-serif;" class="">
                    <div style="margin-top: 0px; margin-bottom: 0px;"
                      class="">I have looked around at python midi
                      packages.  </div>
                    <div style="margin-top: 0px; margin-bottom: 0px;"
                      class="">I think I can get around modifying the
                      tk/qt event loops by polling the midi port.</div>
                    <div style="margin-top: 0px; margin-bottom: 0px;"
                      class=""><br class="">
                    </div>
                    <div style="margin-top: 0px; margin-bottom: 0px;"
                      class="">I did a pip install of 'Mido' on my Mac
                      laptop for testing using the OSx python
                      environment. </div>
                    <div style="margin-top: 0px; margin-bottom: 0px;"
                      class=""><br class="">
                    </div>
                    <div style="margin-top: 0px; margin-bottom: 0px;"
                      class="">To install the Mido library into chimera,
                      what do you recommend?</div>
                    <div style="margin-top: 0px; margin-bottom: 0px;"
                      class=""><br class="">
                    </div>
                    <div id="Signature" class="">
                      <div id="divtagdefaultwrapper" style="font-size:
                        12pt; background-color: rgb(255, 255, 255);
                        font-family: Calibri, Arial, Helvetica,
                        sans-serif;" class="">
                        <div class="BodyFragment"><font class=""
                            size="2">
                            <div class="PlainText">Matthew Dougherty<br
                                class="">
                              National Center for Macromolecular Imaging<br
                                class="">
                              Baylor College of Medicine<br class="">
                              <span style="font-size: 13pt; font-family:
                                Calibri;" class="">=================================================</span><br
                                class="">
                            </div>
                            <div class="PlainText"><span
                                style="font-size: 13pt; font-family:
                                Calibri;" class="">=================================================</span><span
                                style="font-size: 13pt; font-family:
                                Calibri;" class=""><br class="">
                              </span></div>
                          </font></div>
                      </div>
                    </div>
                  </div>
                  <hr tabindex="-1" style="font-family: Helvetica;
                    font-size: 12px; font-style: normal;
                    font-variant-caps: normal; font-weight: normal;
                    letter-spacing: normal; orphans: auto; text-align:
                    start; text-indent: 0px; text-transform: none;
                    white-space: normal; widows: auto; word-spacing:
                    0px; -webkit-text-stroke-width: 0px; display:
                    inline-block; width: 742.828125px;" class=""><span
                    style="font-family: Helvetica; font-size: 12px;
                    font-style: normal; font-variant-caps: normal;
                    font-weight: normal; letter-spacing: normal;
                    orphans: auto; text-align: start; text-indent: 0px;
                    text-transform: none; white-space: normal; widows:
                    auto; word-spacing: 0px; -webkit-text-stroke-width:
                    0px; float: none; display: inline !important;"
                    class=""></span>
                  <div id="divRplyFwdMsg" dir="ltr" style="font-family:
                    Helvetica; font-size: 12px; font-style: normal;
                    font-variant-caps: normal; font-weight: normal;
                    letter-spacing: normal; orphans: auto; text-align:
                    start; text-indent: 0px; text-transform: none;
                    white-space: normal; widows: auto; word-spacing:
                    0px; -webkit-text-stroke-width: 0px;" class=""><font
                      style="font-size: 11pt;" class="" face="Calibri,
                      sans-serif"><b class="">From:</b><span
                        class="Apple-converted-space"> </span>Tom
                      Goddard <<a moz-do-not-send="true"
                        href="mailto:goddard@sonic.net" class="">goddard@sonic.net</a>><br
                        class="">
                      <b class="">Sent:</b><span
                        class="Apple-converted-space"> </span>Monday,
                      November 21, 2016 12:53:04 PM<br class="">
                      <b class="">To:</b><span
                        class="Apple-converted-space"> </span>Dougherty,
                      Matthew T<br class="">
                      <b class="">Cc:</b><span
                        class="Apple-converted-space"> </span><a
                        moz-do-not-send="true"
                        href="mailto:chimera-dev@cgl.ucsf.edu" class="">chimera-dev@cgl.ucsf.edu</a><br
                        class="">
                      <b class="">Subject:</b><span
                        class="Apple-converted-space"> </span>Re:
                      [chimera-dev] ChimeraX</font>
                    <div class=""> </div>
                  </div>
                  <div style="font-family: Helvetica; font-size: 12px;
                    font-style: normal; font-variant-caps: normal;
                    font-weight: normal; letter-spacing: normal;
                    orphans: auto; text-align: start; text-indent: 0px;
                    text-transform: none; white-space: normal; widows:
                    auto; word-spacing: 0px; -webkit-text-stroke-width:
                    0px;" class=""><font class="" size="2"><b class="">***CAUTION:***
                        This email is not from a BCM Source. Only click
                        links or open attachments you know are safe.</b></font>
                    <hr class="">Hi Matt,
                    <div class=""><br class="">
                    </div>
                    <div class="">  The way to use MIDI in ChimeraX
                      would be to include a MIDI / Qt5 library.  Qt5 is
                      the window toolkit used by ChimeraX and it
                      controls the receiving of events from devices.  I
                      don’t know of an adequate Qt / MIDI library
                      exists.  Really we would want PyQt5 / MIDI since
                      all Qt in ChimeraX is done in Python.  The top Qt
                      / MIDI hit is the QMidi library</div>
                    <div class=""><br class="">
                    </div>
                    <div class=""><span class="Apple-tab-span" style="white-space: pre;"></span><a
                        moz-do-not-send="true"
href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_waddlesplash_QMidi&d=DgMFaQ&c=ZQs-KZ8oxEw0p81sqgiaRA&r=lEMX2_AJ6Iksc5dFd0-VOg&m=YSU301onuzBBah5qy89GRTNL5PhzKOjMx-HOYC8_sMQ&s=9_fN2otNCHI9eFtt4LSxl9b9nKrTFPjcRM6Gzi-8bsg&e="
                        class="">https://github.com/waddlesplash/QMidi</a></div>
                    <div class=""><br class="">
                    </div>
                    <div class="">which apparently only handles output
                      of MIDI events, and it sounds like you are
                      primarily interested in input of MIDI events to
                      ChimeraX.</div>
                    <div class=""><br class="">
                    </div>
                    <div class="">  We welcome any recommendations on
                      what PyQt library could handle incoming MIDI
                      events.  My quick web search turned up nothing.</div>
                    <div class=""><br class="">
                    </div>
                    <div class=""><span class="Apple-tab-span" style="white-space: pre;"></span>Tom</div>
                    <div class=""><br class="">
                    </div>
                    <div class=""><br class="">
                    </div>
                    <div class=""><br class="">
                      <div class="">
                        <blockquote type="cite" class="">
                          <div class="">On Nov 18, 2016, at 9:47 AM,
                            Dougherty, Matthew T wrote:</div>
                          <br class="Apple-interchange-newline">
                          <div class="">
                            <div id="divtagdefaultwrapper" dir="ltr"
                              class="" style="font-style: normal;
                              font-variant-caps: normal; font-weight:
                              normal; letter-spacing: normal; orphans:
                              auto; text-align: start; text-indent: 0px;
                              text-transform: none; white-space: normal;
                              widows: auto; word-spacing: 0px;
                              -webkit-text-stroke-width: 0px; font-size:
                              12pt; font-family: Calibri, Arial,
                              Helvetica, sans-serif;">
                              <div class="" style="margin-top: 0px;
                                margin-bottom: 0px;">Many of the USB
                                devices I have been looking at for
                                control surfaces are midi-centric,
                                primarily coming out of the music
                                industry.</div>
                              <div class="" style="margin-top: 0px;
                                margin-bottom: 0px;"><br class="">
                              </div>
                              <div class="" style="margin-top: 0px;
                                margin-bottom: 0px;">For simple devices,
                                not going the midi-route is usually
                                straight forward, although can get
                                complex supporting cross-platform. </div>
                              <div class="" style="margin-top: 0px;
                                margin-bottom: 0px;"><br class="">
                              </div>
                              <div class="" style="margin-top: 0px;
                                margin-bottom: 0px;">For complex devices
                                such as DS1, <span class=""
                                  style="font-size: 12pt;">midi appears
                                  to be the best method for dial boxes.</span><span
                                  class="" style="font-size: 12pt;"> 
                                  There is also economical advantages
                                  and an ongoing evolution of such
                                  devices.</span></div>
                              <div class="" style="margin-top: 0px;
                                margin-bottom: 0px;"><a
                                  moz-do-not-send="true"
href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.amazon.com_Livid-2DInstruments-2DPortable-2DDigital-2DMixer_dp_B00M4OEWMW_ref-3Dsr-5F1-5F1-3Fie-3DUTF8-26qid-3D1479490715-26sr-3D8-2D1-26keywords-3Dlivid-2Bds1&d=DgMFaQ&c=ZQs-KZ8oxEw0p81sqgiaRA&r=lEMX2_AJ6Iksc5dFd0-VOg&m=YSU301onuzBBah5qy89GRTNL5PhzKOjMx-HOYC8_sMQ&s=kwBeFxV6UE7XEm6Mrx9c5rzqHCfSaEjuTGoMCjd7VCI&e="
                                  class="OWAAutoLink" id="LPlnk596796"
                                  previewremoved="true">https://www.amazon.com/Livid-Instruments-Portable-Digital-Mixer/dp/B00M4OEWMW/ref=sr_1_1?ie=UTF8&qid=1479490715&sr=8-1&keywords=livid+ds1</a><br
                                  class="">
                              </div>
                              <div class="" style="margin-top: 0px;
                                margin-bottom: 0px;"><br class="">
                              </div>
                              <div class="" style="margin-top: 0px;
                                margin-bottom: 0px;"> It also allows one
                                to take advantage of manufacturer
                                software in configuring baseline
                                operational conditions (setting dial
                                colors, ranges, toggling action of
                                buttons).</div>
                              <div class="" style="margin-top: 0px;
                                margin-bottom: 0px;"><br class="">
                              </div>
                              <div class="" style="margin-top: 0px;
                                margin-bottom: 0px;"><br class="">
                              </div>
                              <div class="" style="margin-top: 0px;
                                margin-bottom: 0px;">We have talked
                                about midi in the event loop before.  At
                                the time it was not clear how/if this
                                could work under chimeraX.</div>
                              <div class="" style="margin-top: 0px;
                                margin-bottom: 0px;"><br class="">
                              </div>
                              <div class="" style="margin-top: 0px;
                                margin-bottom: 0px;">Any further ideas?</div>
                              <div class="" style="margin-top: 0px;
                                margin-bottom: 0px;"><br class="">
                              </div>
                              <div class="" style="margin-top: 0px;
                                margin-bottom: 0px;"><br class="">
                              </div>
                              <div class="" style="margin-top: 0px;
                                margin-bottom: 0px;"><br class="">
                              </div>
                              <div class="" style="margin-top: 0px;
                                margin-bottom: 0px;"><br class="">
                              </div>
                              <div id="Signature" class="">
                                <div id="divtagdefaultwrapper" class=""
                                  style="font-size: 12pt;
                                  background-color: rgb(255, 255, 255);
                                  font-family: Calibri, Arial,
                                  Helvetica, sans-serif;">
                                  <div class="BodyFragment"><font
                                      class="" size="2">
                                      <div class="PlainText">Matthew
                                        Dougherty<br class="">
                                        National Center for
                                        Macromolecular Imaging<br
                                          class="">
                                        Baylor College of Medicine<br
                                          class="">
                                        <span class="" style="font-size:
                                          13pt; font-family: Calibri;">=================================================</span><br
                                          class="">
                                      </div>
                                      <div class="PlainText"><span
                                          class="" style="font-size:
                                          13pt; font-family: Calibri;">=================================================</span><span
                                          class="" style="font-size:
                                          13pt; font-family: Calibri;"><br
                                            class="">
                                        </span></div>
                                    </font></div>
                                </div>
                              </div>
                            </div>
                            <span class="" style="font-family:
                              Helvetica; font-size: 12px; font-style:
                              normal; font-variant-caps: normal;
                              font-weight: normal; letter-spacing:
                              normal; orphans: auto; text-align: start;
                              text-indent: 0px; text-transform: none;
                              white-space: normal; widows: auto;
                              word-spacing: 0px;
                              -webkit-text-stroke-width: 0px; float:
                              none; display: inline !important;">_______________________________________________</span><br
                              class="" style="font-family: Helvetica;
                              font-size: 12px; font-style: normal;
                              font-variant-caps: normal; font-weight:
                              normal; letter-spacing: normal; orphans:
                              auto; text-align: start; text-indent: 0px;
                              text-transform: none; white-space: normal;
                              widows: auto; word-spacing: 0px;
                              -webkit-text-stroke-width: 0px;">
                            <span class="" style="font-family:
                              Helvetica; font-size: 12px; font-style:
                              normal; font-variant-caps: normal;
                              font-weight: normal; letter-spacing:
                              normal; orphans: auto; text-align: start;
                              text-indent: 0px; text-transform: none;
                              white-space: normal; widows: auto;
                              word-spacing: 0px;
                              -webkit-text-stroke-width: 0px; float:
                              none; display: inline !important;">Chimera-dev
                              mailing list</span><br class=""
                              style="font-family: Helvetica; font-size:
                              12px; font-style: normal;
                              font-variant-caps: normal; font-weight:
                              normal; letter-spacing: normal; orphans:
                              auto; text-align: start; text-indent: 0px;
                              text-transform: none; white-space: normal;
                              widows: auto; word-spacing: 0px;
                              -webkit-text-stroke-width: 0px;">
                            <a moz-do-not-send="true"
                              href="mailto:Chimera-dev@cgl.ucsf.edu"
                              class="" style="font-family: Helvetica;
                              font-size: 12px; font-style: normal;
                              font-variant-caps: normal; font-weight:
                              normal; letter-spacing: normal; orphans:
                              auto; text-align: start; text-indent: 0px;
                              text-transform: none; white-space: normal;
                              widows: auto; word-spacing: 0px;
                              -webkit-text-stroke-width: 0px;">Chimera-dev@cgl.ucsf.edu</a><br
                              class="" style="font-family: Helvetica;
                              font-size: 12px; font-style: normal;
                              font-variant-caps: normal; font-weight:
                              normal; letter-spacing: normal; orphans:
                              auto; text-align: start; text-indent: 0px;
                              text-transform: none; white-space: normal;
                              widows: auto; word-spacing: 0px;
                              -webkit-text-stroke-width: 0px;">
                            <a moz-do-not-send="true"
href="https://urldefense.proofpoint.com/v2/url?u=http-3A__plato.cgl.ucsf.edu_mailman_listinfo_chimera-2Ddev&d=DgMFaQ&c=ZQs-KZ8oxEw0p81sqgiaRA&r=lEMX2_AJ6Iksc5dFd0-VOg&m=YSU301onuzBBah5qy89GRTNL5PhzKOjMx-HOYC8_sMQ&s=D3cEWzb75IuNwX7g2k7vByJLT2jh77niD82hK0wgB88&e="
                              class="" style="font-family: Helvetica;
                              font-size: 12px; font-style: normal;
                              font-variant-caps: normal; font-weight:
                              normal; letter-spacing: normal; orphans:
                              auto; text-align: start; text-indent: 0px;
                              text-transform: none; white-space: normal;
                              widows: auto; word-spacing: 0px;
                              -webkit-text-stroke-width: 0px;">http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev</a></div>
                        </blockquote>
                      </div>
                    </div>
                  </div>
                </div>
              </blockquote>
            </div>
            <br class="">
          </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>
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">-- 
Universitätsklinikum Hamburg-Eppendorf (UKE)
@ Centre for Structral Systems Biology (CSSB)
@ Institute of Molecular Biotechnology (IMBA)
Dr. Bohr-Gasse 3-7 (Room 6.14)
1030 Vienna, Austria
Tel.: +43 (1) 790 44-4649
Email: <a class="moz-txt-link-abbreviated" href="mailto:w.lugmayr@uke.de">w.lugmayr@uke.de</a>
<a class="moz-txt-link-freetext" href="http://www.cssb-hamburg.de/">http://www.cssb-hamburg.de/</a>
</pre>
  <br>
<hr style="color:#999999;" size="1">
<p style="font-size:x-small; color:#999999;">Universitätsklinikum Hamburg-Eppendorf; Körperschaft des öffentlichen Rechts; Gerichtsstand: Hamburg | <a href="http://www.uke.de">www.uke.de</a><br>
Vorstandsmitglieder: Prof. Dr. Burkhard Göke (Vorsitzender), Prof. Dr. Dr. Uwe Koch-Gromus, Joachim Prölß, Rainer Schoppik</p>
<hr style="color:#999999;" size="1">
<p style="font-size:x-small; color:#999999;">SAVE PAPER - THINK BEFORE PRINTING</p></body>
</html>