Midi2lua Patched
The (Roblox, REAPER, or a general automation project?)
: Ensure your MIDI file is exported as Type 0 (single track) or Type 1 (multitrack) depending on your needs. Conversion : Run the file through the Patched Converter. midi2lua patched
: If your converter allows for custom event handling, try adding a "swing" variable to the note_on function in your Lua output to give the robotic MIDI playback a more human, "wonky" feel. Recommended Pieces for Testing The (Roblox, REAPER, or a general automation project
Save this as midi2lua_patched.py :
function play_sequence(source) for _, note in ipairs(notes) do local timer = love.timer.getTime() local delay = note.start - timer if delay < 0 then delay = 0 end love.timer.after(delay, function() local frequency = 440 * 2 ^ ((note.pitch - 69) / 12) local sound = love.audio.newSource(love.sound.newSoundData(1, 44100)) -- actual synth logic here end) end end midi2lua patched