-- Define a function to handle note on events function note_on(channel, note, velocity) print("Note on:", channel, note, velocity) end
-- MIDI File: example.mid
-- Define a function to handle pitch bend events function pitch_bend(channel, value) print("Pitch bend:", channel, value) end midi2lua