Paper-to-DIN-MIDI using a Dymo Cardscan 800c scanner and a RaspberryPi.
code is here: https://codeberg.org/Luno/kritzelphon
(still pretty messy).
MIDI-output is via the serial port, which must be properly
configured, see here
Demo-video controlling a synth: