additional checkForEvent(self,time,pitch) function