Re: [SOLVED] Send MIDI Sequence to GarageBand
Re: [SOLVED] Send MIDI Sequence to GarageBand
- Subject: Re: [SOLVED] Send MIDI Sequence to GarageBand
- From: Michael B Allen <email@hidden>
- Date: Sat, 17 Sep 2011 00:11:18 -0400
On Fri, Sep 16, 2011 at 11:04 PM, Chris Adamson <email@hidden> wrote:
> Search your drive. You've probably got lots of copies. /System/Library/Frameworks/CoreAudio.framework will probably do. But that's probably beside the point.
>
> The underscore indicates a linker problem; I think your code is compiling, but it's not linking. Are you building with the command line or with Xcode? You say "project", so I'm going to assume Xcode. In that case, click on the project icon at the top of the tree, click the target, and click the "build phases" tab. Expand the "link binary to libraries" list and use the "+" button to add CoreMIDI.framework.
Thanks Chris,
Indeed, that is what I needed to do. I selected Targets > p0 > Link
Binary With Libraries > Action: Add > Existing Frameworks and then
added CoreMIDI.framework and this example also required
CoreServices.framework for two functions. Now the program links and
runs without error.
I then used Pete Yandell's MIDI patchbay (thanks Paul) to create
virtual TestInput patched to a virtual TestOutput and changed the
MIDIOutputPortCreate port name in the program to "TestOutput".
GarageBand immediately detected this (TestInput I presume) and when I
run the example program it plays a note. So it seems I have
accomplished my goal as elemental as it may be.
Thanks to all for their help. It's always nice to find a lively list.
I will probably be back.
Mike
> On Sep 16, 2011, at 10:39 PM, Michael B Allen wrote:
>
>> On Fri, Sep 16, 2011 at 9:22 PM, Chris Adamson <email@hidden> wrote:
>>> Once you've got the tools, what you need is CoreMIDI.
>>
>> Thanks for the useful info Chris.
>>
>> I have installed Xcode 3 (I cannot use Xcode 4 because I have OSX
>> 10.6.8). I found what looks like a simple example that uses CoreMIDI
>> [1], I created a C terminal project and it seems to build testout.c
>> but it doesn't run because it cannot find the CoreMIDI functions like
>> _MIDIOutputPortCreate, _MIDIClientCreate, etc presumably because, as
>> you say, I need CoreMIDI.framework. So where can I get it and how do I
>> install it? Again the Apple website has failed me.
>>
>> Mike
>>
>> [1] https://ccrma.stanford.edu/~craig/articles/linuxmidi/osxmidi/testout.c
>> _______________________________________________
>> 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
>
>
--
Michael B Allen
Java Active Directory Integration
http://www.ioplex.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