Re: MIDI note tranformations
Re: MIDI note tranformations
- Subject: Re: MIDI note tranformations
- From: Lubor Prikryl - DSound <email@hidden>
- Date: Wed, 28 Sep 2005 21:54:05 +0200
Thanks Bill,
Its a more manual process:
You create a callback function for receiving the MIDI packets from
the MIDI Sources (or a MIDI destination can also have a callback
associated with it - see the docs for CoreMIDI on connections,
virtual destinations, etc)
Then you parse through the received MIDI packet and call the MIDI
API on the AUs - MusicDeviceMIDIEvent.
That's exactly what I do when passing data to VST instruments, using
the VST structures instead of MusicDeviceMIDIEvent.
After all this terrible work, I had written my first AU host. I said:
Oh, it is BEAUTIFUL how Apple audio guys solved this task with
fantastic elegance in AUMIDIController...
Mhhm, and you wanna send me back to the jungle :-)
Lubor
On 28.9.2005, at 21:26, William Stewart wrote:
On 28/09/2005, at 12:12 PM, Lubor Prikryl - DSound wrote:
Hi Bill,
I haven't seen anything regarding AU in MIDIThruConnections,
furthermore MIDI Thru meant something different for me, so I
stupidly overlooked all the really sophisticated management of
notes there.
Well, now I see, there are MIDI Endpoints there, but what do you
suggest to use to connect them to AU instead of
AUMIDIControllerConnectSource +
AUMIDIControllerMapEventToParameter, as I do now?
We don't have an example of this in the SDK at this point - we need
to provide one. However, in the 1.3 SDK in the java section there
is an example MIDIGraph - that does do it this way - that could be
used as a guide in the meantime.
Bill
_______________________________________________
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