home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: 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
-
-
- 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.
-
-
-