Simplest solution to record midi from digital piano?


Senior Member
I have a digital piano set up in a quiet corner of my home for working out ideas and am looking for something discrete to record the midi output.

Is a lightning to usb cable and recording with garage band on IOS my best option, or is there a self contained midi recorder unit out there somewhere that records all midi data coming in and spits out midi files?