The program running on your windows device use portmidi to read messages from midi port The program send these messages to Arduino through USB Serial Another program running on Arduino receives these ...