| Author |
Message |
Khepri
Joined: Jul 20, 2009 Posts: 22 Location: Canada
|
Posted: Mon May 17, 2010 7:16 pm Post subject:
Not receiving midi msg data |
 |
|
Hi all. Sorry if this has been covered recently.
I recently switched to a Vista 64-bit laptop. I'm wondering if that has anything to do with why midi isn't working for me. Or maybe I'm just missing something.
I have "Project 5" (32-bit software) sequencer sending midi to
"Out to Midi Yoke: 1." The P5 track's "MIDI Activity" light flashes, so I assume data is sent to the port.
I'm running the latest mini-audicle package, 1.2.1.3 Dracula. All the included midi examples work, as far as being able to "detect" all the 8 available Midi Yoke ports, and when actually opening a port.
This code:
<<<MIDI> ", min.name() >>>;
results in . . .
Console message: "MIDI device: 0 -> In From MIDI Yoke: 1"
But that's it. This code . . .
while( min.recv(msg) )
{
// print out midi message
<<<msg>>>;
}
. . . or similar never results in anything. The same goes for no sound. So - looks like the correct port is open, but no message is ever received.
Any ideas as to what's up here, or how I could test further? _________________ Don't fear mistakes. There are none.
- Miles Davis |
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Tue May 18, 2010 12:52 am Post subject:
|
 |
|
Your example code doesn't chuck the midi device to now. Is that because you simplified it for posting, or did you forget this? _________________ Kassen |
|
|
Back to top
|
|
 |
Khepri
Joined: Jul 20, 2009 Posts: 22 Location: Canada
|
Posted: Tue May 18, 2010 2:50 am Post subject:
|
 |
|
EDIT: After searching the net a bit, I suspect it has nothing to do with ChucK. The problem may be getting Midi Yoke properly installed in Vista (with its over-done security features.) Thanks, anyway. I'll report back if I get it working.
| Kassen wrote: | | Your example code doesn't chuck the midi device to now. Is that because you simplified it for posting, or did you forget this? |
I simplified. Below is the complete "gomidi.ck" from Chuck's examples folder. The only result it gives is . . .
"[chuck](VM): sporking incoming shred: 1 (*gomidi.ck)...
MIDI device: 0 -> In From MIDI Yoke: 1 "
==========================================
//gomidi.ck
// number of the device to open (see: chuck --probe)
0 => int device;
// get command line
if( me.args() ) me.arg(0) => Std.atoi => device;
// the midi event
MidiIn min;
// the message for retrieving data
MidiMsg msg;
// open the device
if( !min.open( device ) ) me.exit();
// print out device that was opened
<<<MIDI> ", min.name() >>>;
// infinite time-loop
while( true )
{
// wait on the event 'min'
min => now;
// get the message(s)
while( min.recv(msg) )
{
// print out midi message
<<<msg>>>;
}
}
============================================ _________________ Don't fear mistakes. There are none.
- Miles Davis |
|
|
Back to top
|
|
 |
|