I am working on an app that will have a midi input and an output and do some processing on midi going through it. I have the midi input working. My readProc gets called when MIDI occurs, excellent.
However my head is being twisted when I try and send the midi packet onwards to the reciever. I am trying to set up a system like this and I'm using MIDIKeys and Rax for testing:
MIDIKeys--->My App---->Rax
I just want a simple passthrough at the moment.
I have set up a clientRef and an endpoint sourceRef
and an input Port.
As I said before the first part if the chain is working, My app gets the MIDI from MIDIKeys.
I tried a simple MIDIRecieved(sourceRef,pktlist)
from within the read callback. but nothing is happening, well theres no signal coming through.
Whats wrong???
the important source is below, most is a copy and paste job from various sources and is probably terrible.
any help would be greatly appreciated
thanks
Joel Pigdon
static void MyMidiReadProc(const MIDIPacketList *pktlist, void *refCon, void *connRefCon)
{
CFStringRef clientName = (CFStringRef)refCon;
printf("got some MIDI");
MIDIReceived(sourceRef,pktlist);
}