Hi mcrider,
--- In bc2000@yahoogroups.com, "mxc420" <mcrider@...> wrote:
>
> I'm working on an open-source application that involves using sliders
> to control data parameters (for 3D visualization). I want to use a
> control board, namely the BCF2000 to provide a hardware interface for
> the sliders that appearin the software. Before I go out and buy one
> of these, I was wondering if/how I would be able to interface with the
> BCF in my software, which is written in C++. Ideally, I want a
> cross-platform solution, but will settle for being able to do this in
> Mac OS X. Any help would be appreciated!
Very easy on the PC. You could program the BCF faders set to send MIDI
controller messages (there are 127 possible controllers with a range of
0 to 127)
If you need finer resolution you could send a Midi sysex message and the
BCR/BCF can give you a 14 bit number (2 x 7 bit bytes. You will need to
combine them)
I write in C++ (principally C++Builder these days) There are a few OCX
Midi libraries, Paul Messick's book Maximum Midi comes with a Midi
library His examples are in VB and VC but there are heaps of wrappers
for Delphi or C++Builder.
I use a modified page of Delphi code that I found on the web.
/* MIDI device classes by Adrian Meyer
//**********************************************************************\
******/
//* V1.1 Delphi 6 Windows 2000
//**********************************************************************\
******/
//* V1.0 First release with simple MIDI Input/Output
//* V1.1 SysEx Input Event added, refactured error handling
//* V1.2 SysEx Output procedure added, changes sysex input for multiple
ports
//**********************************************************************\
******/
//* Homepage: http://www.midimountain.com
//**********************************************************************\
******/
//* If you get a hold of this source you may use it upon your own risk.
Please
//* let me know if you have any questions: adrian.meyer@....
//**********************************************************************\
******/
This lets me compile a stand alone program without having to supply any
dll's or ocx's.
I have ported it to work with C++ builder and you are welcome to a copy
of his example that I ported to C++builder.
Very easy to use. It is multi threading so you can use as many Midi
interfaces as you have connected to the PC
It should port to Linux as Borland has a cross compile for
Delphi/C++Builder
As far as the Mac is concerned, Java may be the way to go. There are a
few Midi Java libraries around.
Mac OS does have a fairly easy C++ way to the MIDI interface, I believe,
although I haven't coded with it.
Best of luck. Let me know if I can help .