Added pitch bend handling
Refactored midi sending into wrapper class