add method to check that a sonority is legal