LuaMidi icon indicating copy to clipboard operation
LuaMidi copied to clipboard

LuaMidi ♫ is the pure Lua library to reading and writing MIDI files, with friendly API.

Results 7 LuaMidi issues
Sort by recently updated
recently updated
newest added

Hello, do you have any more sample files(just like a whole song)? I want to explore a better writing scheme. If not, I can build one for this project.☺️

Crashed because of missing META_PREFIX_PORT event. I added it to the CONSTANTS: ``` META_CUE_POINT = 0x07, META_PREFIX_PORT = 0x21, META_TEMPO_ID = 0x51, META_TIME_SIGNATURE_ID = 0x58, ``` and ` [33]="Prefix Port",...

I'm using Lua 5.4.4. After installing LuaMidi using luarocks, the following script throws an error: ```lua local LuaMidi = require('LuaMidi') print(LuaMidi.get_MIDI_tracks) local tracks = LuaMidi.get_MIDI_tracks('./tracks/hot_cross_buns.mid') print(tracks) ``` The value of...

Example program: ``` local LuaMidi = require ('LuaMidi'); local tracks = LuaMidi.get_MIDI_tracks("tetris.midi"); events = tracks[2]["events"] for i=2, #events do console.log(events[i]:get_duration()); --no return value end ``` [Tetris.midi in a zip file.](https://github.com/PedroAlvesV/LuaMidi/files/2288981/tetris.zip)...

It would be great to include a way to easily calculate at what time events are placed instead of deltatime. Is there a way to do it?

I've tried a bunch of different midi files with 'get_MIDI_tracks' and they've all thrown this error. In short, this library does not work with all .mid files. Or it's looking...

Metadata type 33 or "Midi Port" acording to this website -> https://mido.readthedocs.io/en/1.1.24/meta_message_types.html