It's based on luamidi and rtmidi. I modified the Interface, added LuaJit (from löve-deps) and updated rtmidi to newest version. Libraries for win32 and win64 are already included under tests/love2d.
... and what can I do with it?
* connect Midi-Devices like Keyboards or Synthesizers to LÖVE
* send Midi Files or Music Notes over to Synthesizers
* receive Notes played on a Keyboard and generate Sounds in LÖVE
* or just use musical devices as Controller in Games :-D
Midi Router Sample
I wrote a small Midi-Router who receives Midi commands from an Midi-Input device and sends this commands over to an Midi-Output device like VirtualMidiSynth or an external Midi-device.
Code: Select all
-- initialize the library local midi = require "luamidi" -- count output-ports print("Midi Output Ports: ", midi.getoutportcount() ) -- play a note on output-port 0 on channel 1 -- port, note, [vel], [channel] midi.noteOn(0, 60, 50, 1) -- deinitialize library midi.gc()
It would be cool if someone could provide me an updated makefile for Linux and Macosx.