Re: Newbie Question: receiving MIDI
Re: Newbie Question: receiving MIDI
- Subject: Re: Newbie Question: receiving MIDI
- From: Robert Martin <email@hidden>
- Date: Fri, 12 Mar 2010 15:31:15 -0500
Basically, you have to create a MIDI inout port using: MIDIInputPortCreate(...) to receive MIDI, and you pass it a function (that you write in your code) that it will call when it has any MIDI to give you. The documentation for all this is all over the place, but looking at the header files in CoreMIDI should give you the basics.
You might also want to look at the source for MIDI Monitor - I think it's at snoize.com - though it's a bit hard to penetrate if you're new to all this, it does contain everything you want to handle MIDI.
On Mar 12, 2010, at 1:55 PM, Paul J. Ascenzo wrote:
> Hello - I need a little help from someone smarter than me.
>
> I'm slowly putting this all together* ... But after a couple of weeks of pouring thru the documentation and previous posts, I'm still stuck on one point.
>
> When a function gets called to signal that there is incoming MIDI from a synth to my app, how exactly do I get ahold of that MIDI information?
>
> I realize that it will probably be in a MIDIPacket inside a MIDIPacketList, but how exactly do I gain access to that list and packet? I'm sure a pointer is passed to me somehow, just don't know how to find it.
>
> Thanks in advance!
_______________________________________________
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