Changed Note class so its checkRep() method asserts that pitch is not null.