MIDIThruConnection Usage
MIDIThruConnection Usage
- Subject: MIDIThruConnection Usage
- From: Peter Zegelin <email@hidden>
- Date: Wed, 12 Nov 2008 22:42:16 +1100
Hi,
I am trying to figure out how to create a MIDI thru connection in my
application without much luck. I found some example code from this list:
http://lists.apple.com/archives/coreaudio-api/2003/Sep/msg00211.html
but like the original poster, I cannot get it to work.
This is what I have done.
I have created a MIDI source in my app ('Rondo') and the destination
is a UM-1 USB to MIDI convertor. My app specifies the UM-1 as its
destination. The application is running.
I created a simple tool with the example code and run it in the
debugger. The arguments: -d UM-1,-s Rondo and -r 20:20 are passed in
to main(). Stepping through, the source, destination and
MIDIThruConnectionRef all appear to be OK. When I play a MIDI file in
my app I would have expected almost all notes to be suppressed due to
the -r 20:20 command ( which sets params.lowNote and params.highNote
to 20) but everything plays as if there is no thru connection at all.
I guess I am doing something fundamentally wrong but can't even begin
to see where. I would be grateful for some advice or an example of how
to get this working. Basically I want to be able to intercept the
stream of events from a playing MIDI file and do some filtering.
thanks!
Peter
www.fracturedsoftware.com
_______________________________________________
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