[futurebasic] Re: [FB] MIDI in FB?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2010 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Fri, 24 Sep 2010 16:02:03 -0400
On Sep 24, 2010, at 12:57 PM, Scott wrote:

> Way back in the 80s, I used ZBASIC to create some MIDI  
> applications, using the additional commands available through  
> Altech's MidiBASIC add-on programming package.
>
> Does FB include commands for implementing MIDI functions, or is  
> there some add-on pack available to support this?

There is no 'native' support  in FB for this these days. You have to  
do it manually, via FBToC ideally, and then interface to CoreMIDI  
framework.

include library "CoreMIDI/CoreMIDI.h"

Then you will need to define some records from the headers.. I have  
most done, but cannot get the very confusing GetMIDIPacketNext macro  
Apple uses to work. RP said not necessary, just use Fn MIDIPacketNext  
I believe,  but I did not get desired results and seems to be needed  
and handy in all the example code you can find for coreMidi. It  
worked fine (it seems) in my FB4 midi attempts way back.

If you decide you want to explore this, let me know, I'll forward you  
my headers, warts and all (no warranties on function)

I had this working generally great in FB4, but it was a lot more  
complicated. I just haven't gotten the cobwebs off yet nor am I sure  
what is no longer needed that was needed in FB4.

Robert