<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>For what it's worth, if the device works with Alsa but you need to manually connect it on the commandline, you can use my approach which does this via scripting. I basically start pd, then loop while checking aconnect until "Pure Data" appears on the Alsa midi connections graph. If this didn't work before, its probably because you have to wait until pd's midi is setup and connected. Then I run another script (pd-midi-connect) which connects a give device to pd by name. In fact, I have a udev rule that runs the pd-midi-connect script automatically on usb-midi device hotplugs.  </div><div><br></div><div>In my pd start script:</div><div><br></div><div><div># wait for pd midi to initialize</div><div>while [ $(aconnect -i -o | grep "Pure Data") == "" ]; do</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>sleep 1</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>echo "rc-pd-start: pd alsamidi not ready"</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>KA=$(aconnect -i -o | grep "Pure Data")</div><div>done</div><div>echo "rc-pd-start: pd alsmidi is ready"</div></div><div><br></div><div><div>$SCRIPTDIR/pd-midi-connect "LPK25"</div><div>$SCRIPTDIR/pd-midi-connect "UM-G2"</div></div><div><br></div><div>And the pd-midi-connect script is simply:</div><div><br></div><div><div>#! /bin/bash</div><div>#</div><div># connect the given dev to Pure Data,</div><div># check device names with aconnect -lio</div><div>#</div><div><br></div><div>if [ $(ps aux | grep -v grep | grep -wc [p]d-watchdog) ]; then</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>aconnect "$1" 'Pure Data'</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>aconnect 'Pure Data':1 "$1":0</div><div>fi</div></div><div><br></div><div>I actually cleaned up the scripting setup and can get everything online in a Github repo as a downloadable system at some point. :D We seem to be running into alot of the same kind problems on the list regarding embedded Linux recently.</div><br><div><div>On Jun 9, 2014, at 6:00 AM, via Pd-list <<a href="mailto:pd-list@lists.iem.at">pd-list@lists.iem.at</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 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; margin: 0px;"><span style="font-family: Helvetica; color: rgb(127, 127, 127);"><b>From:<span class="Apple-converted-space"> </span></b></span><span style="font-family: Helvetica;">Joe Newlin via Pd-list <<a href="mailto:pd-list@lists.iem.at">pd-list@lists.iem.at</a>><br></span></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 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; margin: 0px;"><span style="font-family: Helvetica; color: rgb(127, 127, 127);"><b>Subject:<span class="Apple-converted-space"> </span></b></span><span style="font-family: Helvetica;"><b>[PD] Force OSS MIDI on Raspberry Pi</b><br></span></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 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; margin: 0px;"><span style="font-family: Helvetica; color: rgb(127, 127, 127);"><b>Date:<span class="Apple-converted-space"> </span></b></span><span style="font-family: Helvetica;">June 8, 2014 at 10:35:01 PM EDT<br></span></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 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; margin: 0px;"><span style="font-family: Helvetica; color: rgb(127, 127, 127);"><b>To:<span class="Apple-converted-space"> </span></b></span><span style="font-family: Helvetica;">pd list <<a href="mailto:pd-list@iem.at">pd-list@iem.at</a>><br></span></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 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; margin: 0px;"><span style="font-family: Helvetica; color: rgb(127, 127, 127);"><b>Reply-To:<span class="Apple-converted-space"> </span></b></span><span style="font-family: Helvetica;">Joe Newlin <<a href="mailto:jtnewlin@gmail.com">jtnewlin@gmail.com</a>><br></span></div><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 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;"><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 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;"><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 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;">Hi, <div><br></div><div>This thread is so close to being useful to me: </div><div><br></div><div><a href="http://lists.puredata.info/pipermail/pd-list/2013-02/101248.html">http://lists.puredata.info/pipermail/pd-list/2013-02/101248.html</a><br></div><div><br></div><div>Miller or anyone who knows the answer, can you please tell me what the "this"is that you put in the .pdsettings file? As in, the precise syntax?</div><div><br></div><div>Thanks,</div><div><br></div><div>Joe</div></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--------</div><div>Dan Wilcox</div><div>@danomatika</div><div><a href="http://danomatika.com">danomatika.com</a></div><div><a href="http://robotcowboy.com">robotcowboy.com</a></div><div><br></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></body></html>