some minor refactoring in the Note class; added a helper class for dealing with tied notes across channels
added unittest for tied notes