Hello,
I am writing program in Java will have to do with music input. I want to use my computer keyboard as instrument.Pretty much it will be as button accordion which I play. I will do the mapping between keys and notes through 2 octaves for beginning. I was thinking what would be good design in timing how much the key was pressed. I am using JFugue framework to generate music strings from what was played, and then it can be easily exported to midi. In order to generate these strings I will have to measure how much the tone was pressed and then give it some musical note length. This information about note length is also appended to the string. If you think I don't even need this please let me know, because I am Java beginner.