How to use winmm for reading data from MIDI controller lazarus / 34-Windows ---------------------------------------------------------------------- OldEd · 2015-12-23 12:15 I have not been able to get midi.pas to work. Mostly because I don't know enough to work with windows api's. I am trying to read the data sent from a midi controller plugged into a usb port. Can somebody point me in a starting direction? ---------------------------------------------------------------------- balazsszekely · 2015-12-23 13:31 Hi OldEd, I converted a delphi application to lazarus, using midi.pas from this site: http://breakoutbox.de/midi/midi.pas. Check the input device(TCheckListBox) first,  the data is received in DoMidiInData procedure. Hope this helps! regards, GetMem ---------------------------------------------------------------------- OldEd · 2015-12-23 15:21 Thanks, I'll work with it this weekend.