lovemidi - a Midi I/O library for LÖVE / Lua
Posted: Wed Aug 06, 2014 3:02 pm
lovemidi is a LÖVE | Lua 5.1 Midi Input/Output Library to send and receive Midi commands.
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.
Download
https://github.com/SiENcE/lovemidi
... 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.
LÖVE Music-Apps that could benefit from lovemidi:
- Mutrix
- Sect
TODO
It would be cool if someone could provide me an updated makefile for Linux and Macosx.
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.
Download
https://github.com/SiENcE/lovemidi
... 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()
- Mutrix
- Sect
TODO
It would be cool if someone could provide me an updated makefile for Linux and Macosx.