Make more concise
Factor out script into a module
Make Black compatible
midi2human
is a small Python script to read notes from a MIDI file, map them to piano keys and draw a piano layout with appropriate keys marked as SVG file.
pipx install git+git.sr.ht/~matthias_schaub/midi2human
midi2human --help
Following command will output a FurElise.svg in the same directory as the MIDI file:
midi2human FurElise.mid