Updated Portmidi example