This guy isn't the only one to do it, but he's written it up nicely, and uses Lilypond and Frescobaldi for output. http://zulko.github.io/blog/2014/02/12/transcribing-piano-rolls/