Re: MIDISend & MIDIPacketList
Re: MIDISend & MIDIPacketList
- Subject: Re: MIDISend & MIDIPacketList
- From: Thomas Hudson <email@hidden>
- Date: Tue, 21 Jan 2003 14:20:59 -0600
There are convenience routines declared near the bottom of
MIDIServices.h for
this:
Byte NoteOn[] = { 0x90, 0x00, 0x7f};
MIDIPacketList* pktlist;
MIDIPacket* nextPacket = MIDIPacketListInit(pktlist);
MIDITimeStamp timeStamp = 0; // now
NoteOn[1] = 0x7f; //pitch number
nextPacket = MIDIPacketListAdd(pktlist, sizeof(pktlist),
nextPacket,timeStamp,3,NoteOn);
On Tuesday, January 21, 2003, at 12:25 PM, Vigour Vigour wrote:
I have made the following code:
----------
// Create client and port
MIDIClientRef client = NULL;
MIDIClientCreate(CFSTR("Converter"), NULL, NULL, &client);
//MIDIPortRef inPort = NULL;
MIDIOutputPortCreate(client, CFSTR("Output port"), &gOutPort);
// find the first destination
gDest = MIDIGetDestination(0);
MIDISend(gOutPort, gDest, pktlist);
----------
My problem is the pktlist. The only thing I want to do is to send a
MIDI Note On message. Can someone plase help me with this code? The
thing I want to learn is to build a MIDIPacketList from scratch.
Best regards Peter
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.