I am working on a program in which the user will play a short piece of music to the program via a MIDI keyboard/controller and I am struggling to create something (function, string, whatever) that will allow the user to input data vis the MIDI keyboard. Can anybody help as I only have a couple of weeks to finish this source code?

Regards.