<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body 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=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Matt,<div class=""><br class=""></div><div class=""> There is some information about how to install Python packages with Chimera in the programming FAQ</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span><a href="https://www.cgl.ucsf.edu/chimera/docs/ProgrammersGuide/faq.html#q3b" class="">https://www.cgl.ucsf.edu/chimera/docs/ProgrammersGuide/faq.html#q3b</a></div><div class=""><br class=""></div><div class="">but I believe Eric here said the suggested approach to doing pip install no longer works. A more hacky approach is to simply copy site-packages/Mido (or whatever the module is called) from your system installed version into the Chimera Python site-packages (in chimera/lib/python2.7/site-packages or Chimera.app/Contents/Resources/lib/python2.7/site-packages on Mac).</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><blockquote type="cite" class=""><div class="">On Jan 13, 2017, at 2:26 PM, Dougherty, Matthew T <<a 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 size="2" class=""><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 face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Tom Goddard <<a 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 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 size="2" class=""><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 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 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 size="2" class=""><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 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 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></body></html>