Midi2lua __top__ Review

The author built m2i out of frustration: “I had a midi controller, and I thought it was a shame that I could not control my pc using it. I did a little research online and it didn’t seem that there was an existing solution that fit my needs, indeed I didn’t find a solution at all that was FLOSS”. This origin story resonates with many who have wished their MIDI keyboard could do more than just play notes.

If you want to control different game elements (e.g., drum track affects particles, piano track affects lights), separate them into different tracks in your DAW before converting. midi2lua

Lua uses double-precision floats, but MIDI clocks are integer ticks. When you convert ticks to seconds, you may get numbers like 0.3333333333 . When checking if current_time == event_time in your game loop, it will . Always use >= or subtract a small epsilon (e.g., 0.001 ). The author built m2i out of frustration: “I

: A pure Lua library for reading and writing MIDI files. It provides an abstraction of MIDI data (NoteOn/NoteOff) into human-readable Lua objects. If you want to control different game elements (e

Whether you are a modder for a popular rhythm game, a developer building an interactive music system in , LÖVE (Love2D) , or Defold , or an artist trying to trigger lighting cues via a MIDI controller, midi2lua is the unsung hero of the workflow.

Use cases

The most prominent version of this tool is associated with the piano script, which serves as a universal autoplay engine.

Scroll to Top