Ive been using midi for a while and just recently have begun learning how to write code in Java. Right now I'm attempting to write a simple program where my application prints out the three bytes from a note on message whenever I press middle C on my midi controller. Ive read a couple articles and know a little bit about midi specifics such as the hex a decimal system, types of messages etc but cannot find much about the protocol for receiving midi information when writing programs compatible with midi. Is there anyone who can help me out ? Thanks!