electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » ChucK programming language
Not receiving midi msg data
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [3 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Khepri



Joined: Jul 20, 2009
Posts: 22
Location: Canada

PostPosted: Mon May 17, 2010 7:16 pm    Post subject: Not receiving midi msg data Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Tue May 18, 2010 12:52 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Send e-mail Visit poster's website
Khepri



Joined: Jul 20, 2009
Posts: 22
Location: Canada

PostPosted: Tue May 18, 2010 2:50 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [3 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use