<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks Perry and Spencer!&nbsp;I pulled the new version of Chuck, and updated my code to use the new open. BTW, it's very nice that it also works with substrings! :)&nbsp;<div><br><div><br><div><div>On Mar 3, 2016, at 2:26 PM, Spencer Salazar wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Yep, you can pass a string to open. It will try to find a device with that name or with that substring in its name, so for example min.open("Oxygen"); will open a MIDI device named "M-Audio Oxygen 49" if it is present.&nbsp;<div><br></div><div>spencer</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 3, 2016 at 9:26 AM, Perry Cook <span dir="ltr">&lt;<a href="mailto:prc@cs.princeton.edu" target="_blank">prc@cs.princeton.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can also check the device name to make sure you’re opening<br>
what you want, or iterate through midi device numbers until you find<br>
the device you want.&nbsp; Something like:<br>
<br>
for(0 =&gt; int i; true ; i++){<br>
&nbsp; &nbsp;if (!midin.open(i)) me.exit();<br>
&nbsp; &nbsp;if (<a href="http://midin.name/" rel="noreferrer" target="_blank">midin.name</a>() == "Intern in") break;<br>
}<br>
<br>
I think there’s also a capability to open by Device name (as printed<br>
out by chuck —probe).&nbsp; I’ve never used it, but I think Spencer put<br>
it in fairly recently.<br>
<br>
PRC<br>
<br>
&gt; On Mar 3, 2016, at 9:00 AM, <a href="mailto:chuck-users-request@lists.cs.princeton.edu">chuck-users-request@lists.cs.princeton.edu</a> wrote:<br>
&gt;<br>
&gt; Send chuck-users mailing list submissions to<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
&gt;<br>
&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
&gt; or, via email, send a message with subject or body 'help' to<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:chuck-users-request@lists.cs.princeton.edu">chuck-users-request@lists.cs.princeton.edu</a><br>
&gt;<br>
&gt; You can reach the person managing the list at<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:chuck-users-owner@lists.cs.princeton.edu">chuck-users-owner@lists.cs.princeton.edu</a><br>
&gt;<br>
&gt; When replying, please edit your Subject line so it is more specific<br>
&gt; than "Re: Contents of chuck-users digest..."<br>
&gt;<br>
&gt;<br>
&gt; Today's Topics:<br>
&gt;<br>
&gt;&nbsp; &nbsp;1. Re: not receiving midi messages (Daniel Chapiro) (Perry Cook)<br>
&gt;&nbsp; &nbsp;2. Re: not receiving midi messages (Daniel Chapiro) (Daniel Chapiro)<br>
&gt;<br>
&gt;<br>
&gt; ----------------------------------------------------------------------<br>
&gt;<br>
&gt; Message: 1<br>
&gt; Date: Wed, 2 Mar 2016 14:50:23 -0800<br>
&gt; From: Perry Cook &lt;<a href="mailto:prc@CS.Princeton.EDU">prc@CS.Princeton.EDU</a>&gt;<br>
&gt; To: <a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
&gt; Subject: Re: [chuck-users] not receiving midi messages (Daniel<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;Chapiro)<br>
&gt; Message-ID: &lt;<a href="mailto:CE790EAF-FEAB-45C7-A2A7-38648331B0AA@cs.princeton.edu">CE790EAF-FEAB-45C7-A2A7-38648331B0AA@cs.princeton.edu</a>&gt;<br>
&gt; Content-Type: text/plain; charset=utf-8<br>
&gt;<br>
&gt; Whenever this happens to me, It almost invariable has to do with<br>
&gt; some other MIDI device getting loaded and bumping the number<br>
&gt; of the actual device I want around.&nbsp; Make sure you?ve only got one<br>
&gt; MIDI device available, or if multiple, make sure that you?re explicitly<br>
&gt; opening the one you want.&nbsp; miniAudicle will show the devices, and<br>
&gt; also try running:<br>
&gt;<br>
&gt; chuck --probe<br>
&gt;<br>
&gt; in a terminal/shell/dosbox, and see what it prints out for MIDI devices.<br>
&gt;<br>
&gt; That?s my best guess.&nbsp; Also try another MIDI device, a basic keyboard<br>
&gt; or other, and make sure messages from it are getting received.<br>
&gt;<br>
&gt; PRC<br>
&gt;<br>
&gt;<br>
&gt;&gt; On Mar 1, 2016, at 9:00 AM, <a href="mailto:chuck-users-request@lists.cs.princeton.edu">chuck-users-request@lists.cs.princeton.edu</a> wrote:<br>
&gt;&gt;<br>
&gt;&gt; Send chuck-users mailing list submissions to<br>
&gt;&gt;&nbsp; &nbsp; &nbsp; <a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
&gt;&gt;<br>
&gt;&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>
&gt;&gt;&nbsp; &nbsp; &nbsp; <a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
&gt;&gt; or, via email, send a message with subject or body 'help' to<br>
&gt;&gt;&nbsp; &nbsp; &nbsp; <a href="mailto:chuck-users-request@lists.cs.princeton.edu">chuck-users-request@lists.cs.princeton.edu</a><br>
&gt;&gt;<br>
&gt;&gt; You can reach the person managing the list at<br>
&gt;&gt;&nbsp; &nbsp; &nbsp; <a href="mailto:chuck-users-owner@lists.cs.princeton.edu">chuck-users-owner@lists.cs.princeton.edu</a><br>
&gt;&gt;<br>
&gt;&gt; When replying, please edit your Subject line so it is more specific<br>
&gt;&gt; than "Re: Contents of chuck-users digest..."<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Today's Topics:<br>
&gt;&gt;<br>
&gt;&gt;&nbsp; 1. not receiving midi messages (Daniel Chapiro)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ----------------------------------------------------------------------<br>
&gt;&gt;<br>
&gt;&gt; Message: 1<br>
&gt;&gt; Date: Mon, 29 Feb 2016 18:03:48 -0800<br>
&gt;&gt; From: Daniel Chapiro &lt;<a href="mailto:dchapiro@gmail.com">dchapiro@gmail.com</a>&gt;<br>
&gt;&gt; To: ChucK Users Mailing List &lt;<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a>&gt;<br>
&gt;&gt; Subject: [chuck-users] not receiving midi messages<br>
&gt;&gt; Message-ID: &lt;<a href="mailto:C3FE748A-D746-484F-B420-916DBDA98890@gmail.com">C3FE748A-D746-484F-B420-916DBDA98890@gmail.com</a>&gt;<br>
&gt;&gt; Content-Type: text/plain; charset="us-ascii"<br>
&gt;&gt;<br>
&gt;&gt; Hi - I have beeen using the same version of Chuck (1.3.5.2-beta-2) on OSX Lion (10.7.5) for over a year, without any changes or problems. However something strange happened, and I'm stuck:<br>
&gt;&gt;<br>
&gt;&gt; All versions of my Chuck-based software stopped working with my WX-5 (including those that I had frozen and worked fine)<br>
&gt;&gt; I tried the WX-5 with GB+Wivi, and it works fine, so I know the hardware is ok, and OSX is passing the midi events to the applications.<br>
&gt;&gt; As one more check, I ran "MIDI Monitor.app", and it reports correctly all the Note on/off and CC events I'm sending with the WX-5.<br>
&gt;&gt; So I tried MiniAudicle-&gt;File-&gt;examples-&gt;gomidi. It opens succesfully Midi dev 0, and then it blocks forever at min.recv(msg) ...<br>
&gt;&gt;<br>
&gt;&gt; Can anybody give me a suggestion of what could make Chuck not see the Midi events, or what I can try next?<br>
&gt;&gt;<br>
&gt;&gt; Thanks!<br>
&gt;&gt; Daniel<br>
&gt;&gt; -------------- next part --------------<br>
&gt;&gt; An HTML attachment was scrubbed...<br>
&gt;&gt; URL: &lt;<a href="http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20160229/cb7e5ce5/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20160229/cb7e5ce5/attachment-0001.html</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; chuck-users mailing list<br>
&gt;&gt; <a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
&gt;&gt; <a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; End of chuck-users Digest, Vol 128, Issue 1<br>
&gt;&gt; *******************************************<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; Message: 2<br>
&gt; Date: Wed, 2 Mar 2016 20:18:00 -0800<br>
&gt; From: Daniel Chapiro &lt;<a href="mailto:dchapiro@gmail.com">dchapiro@gmail.com</a>&gt;<br>
&gt; To: ChucK Users Mailing List &lt;<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a>&gt;<br>
&gt; Subject: Re: [chuck-users] not receiving midi messages (Daniel<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp;Chapiro)<br>
&gt; Message-ID: &lt;<a href="mailto:E08AD2F8-3BB4-423B-B87C-4198A0594017@gmail.com">E08AD2F8-3BB4-423B-B87C-4198A0594017@gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=windows-1252<br>
&gt;<br>
&gt; Hi Perry,<br>
&gt; You are right, and solved my problem :)<br>
&gt; I was using only one physical Midi input device, and had overlooked network Midi, which got in front (I'll change my code to check it doesn't just open "some" Midi dev, but the right one...)<br>
&gt; Thanks!<br>
&gt; --Daniel<br>
&gt;<br>
&gt; On Mar 2, 2016, at 2:50 PM, Perry Cook wrote:<br>
&gt;<br>
&gt;&gt; Whenever this happens to me, It almost invariable has to do with<br>
&gt;&gt; some other MIDI device getting loaded and bumping the number<br>
&gt;&gt; of the actual device I want around.&nbsp; Make sure you?ve only got one<br>
&gt;&gt; MIDI device available, or if multiple, make sure that you?re explicitly<br>
&gt;&gt; opening the one you want.&nbsp; miniAudicle will show the devices, and<br>
&gt;&gt; also try running:<br>
&gt;&gt;<br>
&gt;&gt; chuck --probe<br>
&gt;&gt;<br>
&gt;&gt; in a terminal/shell/dosbox, and see what it prints out for MIDI devices.<br>
&gt;&gt;<br>
&gt;&gt; That?s my best guess.&nbsp; Also try another MIDI device, a basic keyboard<br>
&gt;&gt; or other, and make sure messages from it are getting received.<br>
&gt;&gt;<br>
&gt;&gt; PRC<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt; On Mar 1, 2016, at 9:00 AM, <a href="mailto:chuck-users-request@lists.cs.princeton.edu">chuck-users-request@lists.cs.princeton.edu</a> wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Send chuck-users mailing list submissions to<br>
&gt;&gt;&gt;&nbsp; &nbsp; &nbsp;<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>
&gt;&gt;&gt;&nbsp; &nbsp; &nbsp;<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
&gt;&gt;&gt; or, via email, send a message with subject or body 'help' to<br>
&gt;&gt;&gt;&nbsp; &nbsp; &nbsp;<a href="mailto:chuck-users-request@lists.cs.princeton.edu">chuck-users-request@lists.cs.princeton.edu</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; You can reach the person managing the list at<br>
&gt;&gt;&gt;&nbsp; &nbsp; &nbsp;<a href="mailto:chuck-users-owner@lists.cs.princeton.edu">chuck-users-owner@lists.cs.princeton.edu</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; When replying, please edit your Subject line so it is more specific<br>
&gt;&gt;&gt; than "Re: Contents of chuck-users digest..."<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Today's Topics:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; 1. not receiving midi messages (Daniel Chapiro)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ----------------------------------------------------------------------<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Message: 1<br>
&gt;&gt;&gt; Date: Mon, 29 Feb 2016 18:03:48 -0800<br>
&gt;&gt;&gt; From: Daniel Chapiro &lt;<a href="mailto:dchapiro@gmail.com">dchapiro@gmail.com</a>&gt;<br>
&gt;&gt;&gt; To: ChucK Users Mailing List &lt;<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a>&gt;<br>
&gt;&gt;&gt; Subject: [chuck-users] not receiving midi messages<br>
&gt;&gt;&gt; Message-ID: &lt;<a href="mailto:C3FE748A-D746-484F-B420-916DBDA98890@gmail.com">C3FE748A-D746-484F-B420-916DBDA98890@gmail.com</a>&gt;<br>
&gt;&gt;&gt; Content-Type: text/plain; charset="us-ascii"<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hi - I have beeen using the same version of Chuck (1.3.5.2-beta-2) on OSX Lion (10.7.5) for over a year, without any changes or problems. However something strange happened, and I'm stuck:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; All versions of my Chuck-based software stopped working with my WX-5 (including those that I had frozen and worked fine)<br>
&gt;&gt;&gt; I tried the WX-5 with GB+Wivi, and it works fine, so I know the hardware is ok, and OSX is passing the midi events to the applications.<br>
&gt;&gt;&gt; As one more check, I ran "MIDI Monitor.app", and it reports correctly all the Note on/off and CC events I'm sending with the WX-5.<br>
&gt;&gt;&gt; So I tried MiniAudicle-&gt;File-&gt;examples-&gt;gomidi. It opens succesfully Midi dev 0, and then it blocks forever at min.recv(msg) ...<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Can anybody give me a suggestion of what could make Chuck not see the Midi events, or what I can try next?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks!<br>
&gt;&gt;&gt; Daniel<br>
&gt;&gt;&gt; -------------- next part --------------<br>
&gt;&gt;&gt; An HTML attachment was scrubbed...<br>
&gt;&gt;&gt; URL: &lt;<a href="http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20160229/cb7e5ce5/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20160229/cb7e5ce5/attachment-0001.html</a>&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ------------------------------<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; chuck-users mailing list<br>
&gt;&gt;&gt; <a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
&gt;&gt;&gt; <a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; End of chuck-users Digest, Vol 128, Issue 1<br>
&gt;&gt;&gt; *******************************************<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; chuck-users mailing list<br>
&gt;&gt; <a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
&gt;&gt; <a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; chuck-users mailing list<br>
&gt; <a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
&gt; <a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
&gt;<br>
&gt;<br>
&gt; End of chuck-users Digest, Vol 128, Issue 2<br>
&gt; *******************************************<br>
<br>
_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" rel="noreferrer" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-family:arial;font-size:small"><div>Spencer Salazar<br></div><div>Doctoral Candidate</div><div>Center for Computer Research in Music and Acoustics</div><div>Stanford University</div><div><br></div><div><a href="mailto:spencer@ccrma.stanford.edu" target="_blank">spencer@ccrma.stanford.edu</a></div><div></div><div>+1 831.277.4654<br></div><div><a href="https://ccrma.stanford.edu/~spencer/" style="color:rgb(17,85,204)" target="_blank">https://ccrma.stanford.edu/~spencer/</a><br></div><div><br></div></div></div></div></div></div></div></div></div></div>
</div>
_______________________________________________<br>chuck-users mailing list<br><a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>https://lists.cs.princeton.edu/mailman/listinfo/chuck-users<br></blockquote></div><br></div></div></body></html>