[phpBB Debug] PHP Notice: in file /viewtopic.php on line 988: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 988: getdate(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4505: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4507: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4508: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4509: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3706)
Sagan Technology Metro • View topic - CoreMIDI programming question

CoreMIDI programming question

General Metro Questions and Answers should be asked and answered here

Moderator: w

CoreMIDI programming question

Postby cornutt » Sun Dec 12, 2004 10:14 pm

This is somewhat off-topic, and I apologize in advance, but:

I'm starting to get into some CoreMIDI programming; I want to write a good patch editor for the Oberheim Matrix-1000. Right now I'm trying to scan through the CoreMIDI database, identify the Matrix synths, and send a device inquiry sysex to each one found and display the result. The trouble I'm having is, I can use the GetNextExternalDevice calls and see all of the synths that are defined in my Audio Midi Setup configuration, and I can get the source and destination endpoints for each one, but the destination endpoints don't seem to work -- if I give one to MIDISysexSendRequest, the data doesn't go anywhere. That is, the system claims it sent it, but the synth doesn't respond and I don't see anything happening on the MIDI interface.

My question is: can you get usable endpoints from an external device reference? Or do you have to work backwards from there, figure out what interface and port it is on, and then use the endpoints associated with that port? I've Googled around some and I haven't found any code that shows the use of the external devices (all of the examples seem to be written for internal soft synths).
cornutt
 
Posts: 74
Joined: Wed Apr 02, 2003 10:41 pm
Location: Huntsville, AL USA

Re: CoreMIDI programming question

Postby Jerm » Sun Dec 12, 2004 11:36 pm

cornutt wrote:My question is: can you get usable endpoints from an external device reference? Or do you have to work backwards from there, figure out what interface and port it is on, and then use the endpoints associated with that port? .


Yes you must send MIDI data to the ports of the interface not the final endpoint.

:idea: The proper place to pose this question would be:
coreaudio-api@lists.apple.com
Jerm
 
Posts: 2707
Joined: Tue Feb 11, 2003 12:50 pm
Location: Massachusetts

Re: CoreMIDI programming question

Postby cornutt » Mon Dec 13, 2004 9:11 pm

Thanks! 8)
cornutt
 
Posts: 74
Joined: Wed Apr 02, 2003 10:41 pm
Location: Huntsville, AL USA


Return to General Metro QA

Who is online

Users browsing this forum: No registered users and 5 guests