added processable item super class, added envelopes, implemented envelope maintainance functions inside the noteevent class