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/bigger>/color> void/color> MidiOut3(int/color> byte0, int/color> byte1, int/color> byte2) {
MIDIPacketList packetList;
MIDIPacket packet =
packetList.packet[0/color>]; // I
think this starts out pointing to the first packet
packetList.numPackets
= 1/color>;
packet.timeStamp = 0/color>;
packet.length = 3/color>;
packet.data[0] = byte0;
packet.data[1/color>] = 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
/bigger>/fontfamily>
|