CoreMIDI Feedback
CoreMIDI Feedback
- Subject: CoreMIDI Feedback
- From: "Vigour Vigour" <email@hidden>
- Date: Thu, 23 Jan 2003 10:13:31 +0000
Just wants some feedback on my programming. I am new to both C and CoreMIDI.
My program works, no problem, but are there anything in my app that is made
an a non standard way? The app is a part of a reset function that sends out
the same reset MIDI messages as Cubase SX does. A very big 'THANK YOU' goes
to Kurt Revis for his incredible MIDI monitor and the handy Spy function
:-). It's not only nice to see what other apps are sending, I used it a lot
to see if my app was sending the right messages. Looking forward to some
feedback now...
{
int channel,a;
a=0;
Byte midiData[20];
int destinations;
destinations = MIDIGetNumberOfDestinations();
midiData[0] = 0xb0;
midiData[1] = 0x01;
midiData[2] = 0x00;
midiData[3] = 0xb0;
midiData[4] = 0x02;
midiData[5] = 0x00;
midiData[6] = 0xb0;
midiData[7] = 0x40;
midiData[8] = 0x00;
midiData[9] = 0xb0;
midiData[10] = 0x79;
midiData[11] = 0x00;
midiData[12] = 0xb0;
midiData[13] = 0x7b;
midiData[14] = 0x00;
midiData[15] = 0xd0;
midiData[16] = 0x00;
midiData[17] = 0xe0;
midiData[18] = 0x00;
midiData[19] = 0x40;
while (a < destinations)
{
channel=0;
while (channel < 16)
{
midiData[0] = 0xb0+channel;
midiData[3] = 0xb0+channel;
midiData[6] = 0xb0+channel;
midiData[9] = 0xb0+channel;
midiData[12] = 0xb0+channel;
midiData[15] = 0xd0+channel;
midiData[17] = 0xe0+channel;
MIDIPacketList pktlist;
MIDIPacket *packetPtr = MIDIPacketListInit(&pktlist);
packetPtr = MIDIPacketListAdd(&pktlist, sizeof pktlist, packetPtr,
0, 20, midiData);
gDest = MIDIGetDestination(a);
MIDISend(gOutPort, gDest, &pktlist);
channel++;
}
a++;
}
}
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
_______________________________________________
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.