• 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
MIDISend output from with my program...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MIDISend output from with my program...


  • Subject: MIDISend output from with my program...
  • From: "Paul Swearingen" <email@hidden>
  • Date: Wed, 30 Mar 2005 17:46:18 -0800

 
Hi,
 
I'm very new to this Mac MIDI stuff...
 
After initializing my MIDI using the echo midi example,
and the MyReadProc procedure correctly produces midi input and output,
 
I call the following code elsewhere in my program:
 
 
 
inline void MidiOut3(int byte0, int byte1, int byte2)
{
    MIDIPacketList packetList;
 
    MIDIPacket packet = packetList.packet[0];   // I think this starts out pointing to the first packet
 
    packetList.numPackets = 1;

    packet.timeStamp = 0;

    packet.length = 3;
 
    packet.data[0] = byte0; 
    packet.data[1] = byte1;
    packet.data[2] = byte2;     MIDISend(gOutPort, gDest, &packetList);
}
 
However it doesn't produce any MIDI output.  (it doesn't crash, though)
 
The data I'm passing to MidiOut3 is correct midi data.
 
Here I'm simply using a single packet list since I've found
no routine to send a single packet.
 
gOutPort and gDest should be correct, since they work fine in MyReadProc
 
Perhaps there's something I don't understand about the packet list, or the thread
that needs to be running to call MIDISend() ???
 
I tried using the different  "MIDIPacket *packet;  ...  ->"  type pointer notation used in
the example, but that didn't help.  It correctly compiled either way.
 
Any ideas?
 
Thank you for any help,
 
Paul Swearingen
 
 _______________________________________________
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: MIDISend output from with my program...
      • From: Doug Wyatt <email@hidden>
  • Prev by Date: Re: Hardware buffer size
  • Next by Date: Re: Allowing a user-space driver to be the default system
  • Previous by thread: DLSMusicDevice and default Apple dls sound set
  • Next by thread: Re: MIDISend output from with my program...
  • Index(es):
    • Date
    • Thread