Re: Controlling External Synth (GrooveBox) With Perl/MIDICore
Re: Controlling External Synth (GrooveBox) With Perl/MIDICore
- Subject: Re: Controlling External Synth (GrooveBox) With Perl/MIDICore
- From: "DANIEL MAGNUSZEWSKI" <email@hidden>
- Date: Thu, 30 Mar 2006 14:10:48 -0500
So would it be possible to create a C program, using MIDISend, that can
accept MIDI data from stdin and put that data into a "MIDIPacketList",
and then send that packet list with the "Send" function that is within
MIDIDriverInterface? I'm assuming that I would also need to use the
"FindDevices" function within MIDIDriverInterface to first discover the
MIDI device, then pass that as my endpoint to "Send"?
Sorry if I sound ignorant - I'm trying to wrap my head around how to
use the API.
Thanks!
-Dan
>>> "William Stewart" <email@hidden> 03/30/06 1:49 PM >>>
I don't know how you interface to this from Perl, but the CoreMIDI
framework vends C API for both discovering MIDI devices and sending
MIDI data to those devices using these API. Basically the API to do
this is MIDISend - that requires setting up a packet list, etc. There
are some examples of this on the web (you could probably search for
MIDISend), as well as in the CoreAudio SDK - /Developer/Examples/
CoreAudio
Bill
On 30/03/2006, at 7:48 AM, DANIEL MAGNUSZEWSKI wrote:
> I am trying to send MIDI events from a Perl script (created with
> http://search.cpan.org/~sburke/MIDI-Perl-0.81/lib/MIDI/Event.pm) to
> control a GrooveBox 505. How is it possible to have MIDICore act as
> the
> "event listener/interface" and have it listening for MIDI events,
and
> upon receiving the MIDI events, it will send them to the hardware
> synth
> (GrooveBox) and control it's output? I'm looking for something
similar
> to open sound system's /dev/music or /dev/sequencer, where you can
> just
> send these events to and it will control the external synth. I'm
> running
> on OS X (10.3.9) so I don't think these device files would work for
> me.
> I am using a M-Audio USB Uno 1X1 MIDI Interface.
>
> ...am I way off base here? Can I do it with MIDICore - if so can you
> point me in the right direction? I'm looking at the
MIDICore/CoreAudio
> API, but I'm not sure how to do what I want with it? Is there
> something
> else I should try using instead? Any suggestions would be
appreciated!
>
> Thanks.
>
> -Dan
>
> _______________________________________________
> 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
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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