public function equals($pitch) {
        if ($pitch === null) {
			return false;
		}
        return $pitch->step == $this->step && $pitch->alter == $this->alter && $pitch->octave == $this->octave;
    }