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 are working on a specific implementation, let me know: midi2lua
import mido # or custom MIDI parser
The script generates a distributed playback system: multiple “server” computers control a pipe organ built using the Create mod, with three sets of pipes covering different octave ranges. A master controller downloads the generated Lua scripts onto each sub-controller, waits for them to initialize, then plays the entire piece of music. The system automatically clamps notes to the playable range and intelligently distributes them across the available pipes, handling tricky cases like tied notes by choosing the appropriate octave based on melodic context. The author built m2i out of frustration: “I
The utility reads the binary data of a standard MIDI file (.mid), extracting tracks, note-on/note-off events, velocity (volume), tempo changes, and time signatures. If you are working on a specific implementation,
I can provide tailored code snippets to get your pipeline running smoothly!
Midi2input’s documentation lists an intriguing use case: turning a keyboard or piano into a puzzle for escape rooms. MIDI inputs can trigger game logic, unlock doors, or provide interactive musical challenges, all coordinated through Lua scripts.