luamacros icon indicating copy to clipboard operation
luamacros copied to clipboard

MIDI Support - Volunteering to help

Open PWBENNETT opened this issue 8 years ago • 3 comments

I have a number of Behringer USB devices that I'd really like to be able to use in X-Plane and in general gaming. Lots of sliders and knobs & buttons, you know the type of thing.

Anyway, I don't know Lua or Delphi (yet), though I took Pascal classes many years ago. Regardless of the steepness of the learning curve, I'd like to volunteer to start adding / porting MIDI support.

If you have any guidelines on where to start digging, please let me know. I'd love to collaborate.

PWBENNETT avatar Jul 03 '16 05:07 PWBENNETT

Thanks for the offer. You could start with some "Hello world" application in Lazarus reading your midi device. It can just print a key number once you press it. I used some midi libraries in HidMacros - but it was Delphi (not Lazarus, but still pascal) and maybe there's something better now (and for Lazarus). This is the HidMacros code: https://github.com/me2d13/hidmacros/blob/master/Delphi32b/uMidiDevices.pas Anyway once you're able to read the midi device, we can plug your code into LuaMacros.

me2d13 avatar Jul 04 '16 06:07 me2d13

Oh, my. That's fairly different to the Turbo Pascal I learned 20 years ago. Here goes, though...

Memo to self: http://breakoutbox.de/midi/midi.html

PWBENNETT avatar Jul 07 '16 06:07 PWBENNETT

Luamacros has serial support, Why don't we fast-track this for a bit https://projectgus.github.io/hairless-midiserial/

I wonder what this application can provide for this case

Scrxtchy avatar Sep 13 '16 16:09 Scrxtchy