🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
2 messages
2 total messages Started by Bill Huey Wed, 02 Sep 1992 05:10
Midi object gives me a strange MACH error....uh, help ???
#1004
Author: Bill Huey
Date: Wed, 02 Sep 1992 05:10
46 lines
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.
 
Re: Midi object gives me a strange MACH error....uh, help ???
#1009
Author: Ralph Zazula
Date: Wed, 02 Sep 1992 07:44
24 lines
1135 bytes
In article <1992Sep01.221017.29989@crash>  writes:
> 
>  
> 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.
>  
Hi -

That's not too strange of an error.  It usually happens when some other device  
has already gained access to the port.  Check to see that you don't have  
another program using the port (another MusicKit program using it, a modem, a  
dial-in terminal, etc.).

Ralph
---
Ralph Zazula
Pinnacle Research, Inc.
zazula@pri.com (NeXT Mail)
(602)529-1135
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads