Midi2lua !full!

-- Load the MIDI file data local midi_data = type = "note_on", channel = 0, note = 60, velocity = 100, time = 0, type = "note_off", channel = 0, note = 60, velocity = 100, time = 100, type = "pitch_bend", channel = 0, value = 8192, time = 200,

format = 1, tracks =

-- Process the MIDI file data for i, event in ipairs(midi_data) do if event.type == "note_on" then note_on(event.channel, event.note, event.velocity) elseif event.type == "note_off" then note_off(event.channel, event.note, event.velocity) elseif event.type == "pitch_bend" then pitch_bend(event.channel, event.value) end end midi2lua

4 Comments

Leave a Reply