Re: [chuck-users] MIDI devices (more)
You can also check the device name to make sure you’re opening what you want, or iterate through midi device numbers until you find the device you want. Something like: for(0 => int i; true ; i++){ if (!midin.open(i)) me.exit(); if (midin.name() == "Intern in") break; } I think there’s also a capability to open by Device name (as printed out by chuck —probe). I’ve never used it, but I think Spencer put it in fairly recently. PRC
On Mar 3, 2016, at 9:00 AM, chuck-users-request@lists.cs.princeton.edu wrote:
Send chuck-users mailing list submissions to chuck-users@lists.cs.princeton.edu
To subscribe or unsubscribe via the World Wide Web, visit https://lists.cs.princeton.edu/mailman/listinfo/chuck-users or, via email, send a message with subject or body 'help' to chuck-users-request@lists.cs.princeton.edu
You can reach the person managing the list at chuck-users-owner@lists.cs.princeton.edu
When replying, please edit your Subject line so it is more specific than "Re: Contents of chuck-users digest..."
Today's Topics:
1. Re: not receiving midi messages (Daniel Chapiro) (Perry Cook) 2. Re: not receiving midi messages (Daniel Chapiro) (Daniel Chapiro)
----------------------------------------------------------------------
Message: 1 Date: Wed, 2 Mar 2016 14:50:23 -0800 From: Perry Cook
To: chuck-users@lists.cs.princeton.edu Subject: Re: [chuck-users] not receiving midi messages (Daniel Chapiro) Message-ID: Content-Type: text/plain; charset=utf-8 Whenever this happens to me, It almost invariable has to do with some other MIDI device getting loaded and bumping the number of the actual device I want around. Make sure you?ve only got one MIDI device available, or if multiple, make sure that you?re explicitly opening the one you want. miniAudicle will show the devices, and also try running:
chuck --probe
in a terminal/shell/dosbox, and see what it prints out for MIDI devices.
That?s my best guess. Also try another MIDI device, a basic keyboard or other, and make sure messages from it are getting received.
PRC
On Mar 1, 2016, at 9:00 AM, chuck-users-request@lists.cs.princeton.edu wrote:
Send chuck-users mailing list submissions to chuck-users@lists.cs.princeton.edu
To subscribe or unsubscribe via the World Wide Web, visit https://lists.cs.princeton.edu/mailman/listinfo/chuck-users or, via email, send a message with subject or body 'help' to chuck-users-request@lists.cs.princeton.edu
You can reach the person managing the list at chuck-users-owner@lists.cs.princeton.edu
When replying, please edit your Subject line so it is more specific than "Re: Contents of chuck-users digest..."
Today's Topics:
1. not receiving midi messages (Daniel Chapiro)
----------------------------------------------------------------------
Message: 1 Date: Mon, 29 Feb 2016 18:03:48 -0800 From: Daniel Chapiro
To: ChucK Users Mailing List Subject: [chuck-users] not receiving midi messages Message-ID: Content-Type: text/plain; charset="us-ascii" 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:
All versions of my Chuck-based software stopped working with my WX-5 (including those that I had frozen and worked fine) 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. 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. So I tried MiniAudicle->File->examples->gomidi. It opens succesfully Midi dev 0, and then it blocks forever at min.recv(msg) ...
Can anybody give me a suggestion of what could make Chuck not see the Midi events, or what I can try next?
Thanks! Daniel
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.
spencer
On Thu, Mar 3, 2016 at 9:26 AM, Perry Cook
You can also check the device name to make sure you’re opening what you want, or iterate through midi device numbers until you find the device you want. Something like:
for(0 => int i; true ; i++){ if (!midin.open(i)) me.exit(); if (midin.name() == "Intern in") break; }
I think there’s also a capability to open by Device name (as printed out by chuck —probe). I’ve never used it, but I think Spencer put it in fairly recently.
PRC
On Mar 3, 2016, at 9:00 AM, chuck-users-request@lists.cs.princeton.edu wrote:
Send chuck-users mailing list submissions to chuck-users@lists.cs.princeton.edu
To subscribe or unsubscribe via the World Wide Web, visit https://lists.cs.princeton.edu/mailman/listinfo/chuck-users or, via email, send a message with subject or body 'help' to chuck-users-request@lists.cs.princeton.edu
You can reach the person managing the list at chuck-users-owner@lists.cs.princeton.edu
When replying, please edit your Subject line so it is more specific than "Re: Contents of chuck-users digest..."
Today's Topics:
1. Re: not receiving midi messages (Daniel Chapiro) (Perry Cook) 2. Re: not receiving midi messages (Daniel Chapiro) (Daniel Chapiro)
----------------------------------------------------------------------
Message: 1 Date: Wed, 2 Mar 2016 14:50:23 -0800 From: Perry Cook
To: chuck-users@lists.cs.princeton.edu Subject: Re: [chuck-users] not receiving midi messages (Daniel Chapiro) Message-ID: Content-Type: text/plain; charset=utf-8 Whenever this happens to me, It almost invariable has to do with some other MIDI device getting loaded and bumping the number of the actual device I want around. Make sure you?ve only got one MIDI device available, or if multiple, make sure that you?re explicitly opening the one you want. miniAudicle will show the devices, and also try running:
chuck --probe
in a terminal/shell/dosbox, and see what it prints out for MIDI devices.
That?s my best guess. Also try another MIDI device, a basic keyboard or other, and make sure messages from it are getting received.
PRC
On Mar 1, 2016, at 9:00 AM, chuck-users-request@lists.cs.princeton.edu wrote:
Send chuck-users mailing list submissions to chuck-users@lists.cs.princeton.edu
To subscribe or unsubscribe via the World Wide Web, visit https://lists.cs.princeton.edu/mailman/listinfo/chuck-users or, via email, send a message with subject or body 'help' to chuck-users-request@lists.cs.princeton.edu
You can reach the person managing the list at chuck-users-owner@lists.cs.princeton.edu
When replying, please edit your Subject line so it is more specific than "Re: Contents of chuck-users digest..."
Today's Topics:
1. not receiving midi messages (Daniel Chapiro)
----------------------------------------------------------------------
Message: 1 Date: Mon, 29 Feb 2016 18:03:48 -0800 From: Daniel Chapiro
To: ChucK Users Mailing List Subject: [chuck-users] not receiving midi messages Message-ID: Content-Type: text/plain; charset="us-ascii" 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:
All versions of my Chuck-based software stopped working with my WX-5 (including those that I had frozen and worked fine) 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. 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. So I tried MiniAudicle->File->examples->gomidi. It opens succesfully Midi dev 0, and then it blocks forever at min.recv(msg) ...
Can anybody give me a suggestion of what could make Chuck not see the Midi events, or what I can try next?
Thanks! Daniel
Thanks Perry and Spencer! 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! :) On Mar 3, 2016, at 2:26 PM, Spencer Salazar wrote:
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.
spencer
On Thu, Mar 3, 2016 at 9:26 AM, Perry Cook
wrote: You can also check the device name to make sure you’re opening what you want, or iterate through midi device numbers until you find the device you want. Something like: for(0 => int i; true ; i++){ if (!midin.open(i)) me.exit(); if (midin.name() == "Intern in") break; }
I think there’s also a capability to open by Device name (as printed out by chuck —probe). I’ve never used it, but I think Spencer put it in fairly recently.
PRC
On Mar 3, 2016, at 9:00 AM, chuck-users-request@lists.cs.princeton.edu wrote:
Send chuck-users mailing list submissions to chuck-users@lists.cs.princeton.edu
To subscribe or unsubscribe via the World Wide Web, visit https://lists.cs.princeton.edu/mailman/listinfo/chuck-users or, via email, send a message with subject or body 'help' to chuck-users-request@lists.cs.princeton.edu
You can reach the person managing the list at chuck-users-owner@lists.cs.princeton.edu
When replying, please edit your Subject line so it is more specific than "Re: Contents of chuck-users digest..."
Today's Topics:
1. Re: not receiving midi messages (Daniel Chapiro) (Perry Cook) 2. Re: not receiving midi messages (Daniel Chapiro) (Daniel Chapiro)
----------------------------------------------------------------------
Message: 1 Date: Wed, 2 Mar 2016 14:50:23 -0800 From: Perry Cook
To: chuck-users@lists.cs.princeton.edu Subject: Re: [chuck-users] not receiving midi messages (Daniel Chapiro) Message-ID: Content-Type: text/plain; charset=utf-8 Whenever this happens to me, It almost invariable has to do with some other MIDI device getting loaded and bumping the number of the actual device I want around. Make sure you?ve only got one MIDI device available, or if multiple, make sure that you?re explicitly opening the one you want. miniAudicle will show the devices, and also try running:
chuck --probe
in a terminal/shell/dosbox, and see what it prints out for MIDI devices.
That?s my best guess. Also try another MIDI device, a basic keyboard or other, and make sure messages from it are getting received.
PRC
On Mar 1, 2016, at 9:00 AM, chuck-users-request@lists.cs.princeton.edu wrote:
Send chuck-users mailing list submissions to chuck-users@lists.cs.princeton.edu
To subscribe or unsubscribe via the World Wide Web, visit https://lists.cs.princeton.edu/mailman/listinfo/chuck-users or, via email, send a message with subject or body 'help' to chuck-users-request@lists.cs.princeton.edu
You can reach the person managing the list at chuck-users-owner@lists.cs.princeton.edu
When replying, please edit your Subject line so it is more specific than "Re: Contents of chuck-users digest..."
Today's Topics:
1. not receiving midi messages (Daniel Chapiro)
----------------------------------------------------------------------
Message: 1 Date: Mon, 29 Feb 2016 18:03:48 -0800 From: Daniel Chapiro
To: ChucK Users Mailing List Subject: [chuck-users] not receiving midi messages Message-ID: Content-Type: text/plain; charset="us-ascii" 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:
All versions of my Chuck-based software stopped working with my WX-5 (including those that I had frozen and worked fine) 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. 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. So I tried MiniAudicle->File->examples->gomidi. It opens succesfully Midi dev 0, and then it blocks forever at min.recv(msg) ...
Can anybody give me a suggestion of what could make Chuck not see the Midi events, or what I can try next?
Thanks! Daniel
participants (3)
-
Daniel Chapiro
-
Perry Cook
-
Spencer Salazar