Article View: comp.sys.next.programmer
Article #1004Midi object gives me a strange MACH error....uh, help ???
From: Bill Huey
Date: Wed, 02 Sep 1992 05:10
Date: Wed, 02 Sep 1992 05:10
46 lines
1336 bytes
1336 bytes
Ok, I have been trying to get the midi object to open, but it keeps giving me
a
"Music Kit: Problem opening Midi device. Mach Error: ownership rights required
"
error.
There's not much in complexity in my code...I'm just trying to talk to the MIDI
driver.
Here it is......
#import <objc/Object.h>
#import <musickit/Note.h>
#import <musickit/Midi.h>
#import <musickit/NoteReceiver.h>
--More--(92%)
char *theString = "F0,00,00,0E,02,03,65,F7";
char *portstring = "midi1";
void main()
{
id theNote;
id midi;
theNote = [[Note alloc] init];
midi = [Midi newOnDevice:portstring];
[midi open];
[midi run];
printf("%s<- is the test string being sent over\n",theString);
[theNote setPar:MK_sysExclusive toString:theString];
[[midi channelNoteReceiver:0] receiveNote:theNote];
exit(0);
}
.............................
Any help would be really appreciated.
Bye.
Technical Details
Message-ID:
<1992Sep01.221017.29989@crash>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!ucselx!crash!billyhShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!ucselx!crash!billyh From: billyh@crash.cts.com (Bill Huey) Subject: Midi object gives me a strange MACH error....uh, help ??? Date: 01 Sep 92 22:10:16 PDT Message-ID: <1992Sep01.221017.29989@crash> Keywords: midi mach Lines: 47