title: Reading piano notes on Python
body: <p>I'd like to listen to the port having my midi output device (a piano) with my RPi, running on Debian. I've looked into pygame.midi, I managed to listen to the port, but somehow can not extract all midi information. Please find code below [edited code snippet]</p>
  
  <p>EDIT: Fixed, thanks a lot!</p>