• 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
Re: MIDISend & MIDIPacketList
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >MIDISend & MIDIPacketList (From: "Vigour Vigour" <email@hidden>)

  • Prev by Date: Re: MIDISend & MIDIPacketList
  • Next by Date: Re: MIDISend & MIDIPacketList
  • Previous by thread: Re: MIDISend & MIDIPacketList
  • Next by thread: Re: MIDISend & MIDIPacketList
  • Index(es):
    • Date
    • Thread