• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
SysEx problem ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SysEx problem ?


  • Subject: SysEx problem ?
  • From: Peter Krajcik <email@hidden>
  • Date: Tue, 5 Oct 2004 21:21:14 +0200

Hi all,

I have a problem I'm not able fix :
I'm sending SysEx data using enclosed SendSYSEXData() routine.
Everything works while I'm sending to IAC port , when I'm sending to any of MIDIMAN 8x8/s
ports I am getting different length of sysex data (reported by MIDIMon)
let's say $979, $979, and then $978 bytes etc.
I don't have other MIDI Interface so I couldn't test with different device (I have a couple of other MIDIMAN interfaces,
but I suppose they are driven by the same driver ... if I want to exclude driver bug).


Any input highly appreciated :-)

Many thanks.

Peter


void SendSYSEXData(Ptr data) { int offset=0; Size sysexLen=0; Size size=0; Ptr p=NULL; OSStatus result=noErr;

	if (data==NULL)
		return ;

	sysexLen=GetPtrSize(data);
	offset=0;

	while (*(data+offset)!=':' && offset < sysexLen)
		offset++;

	p=NewPtrClear(sysexLen-offset+3);
	BlockMoveData(data+offset,p+3,sysexLen-offset);
	p[0]=0xF0;p[1]=0x2C;p[2]=0x7F;

 	gSysExReq->data = p;
	gSysExReq->destination = gOut;
	gSysExReq->bytesToSend = GetPtrSize(p);
	gSysExReq->complete = false;
	gSysExReq->completionProc = BLMIDISysexCompletionProc;
	gSysExReq->completionRefCon=p;

	result=MIDISendSysex(gSysExReq);

}

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: SysEx problem ?
      • From: Kurt Revis <email@hidden>
    • Re: SysEx problem ?
      • From: Pete Gontier <email@hidden>
  • Prev by Date: Re: HAL timing issues
  • Next by Date: [slightly OT] DTS
  • Previous by thread: Re: HAL timing issues
  • Next by thread: Re: SysEx problem ?
  • Index(es):
    • Date
    • Thread