public function containsPitch($givenPitch, $strict = true) {
		$pitches = $this->getPitches(-1, false);
		$givenPitch->octave = null;
		foreach ($pitches as $pitch) {
			$pitch->octave = null;
			if ($strict) {
				if ($pitch->equals($givenPitch)) {
					return true;
				}
			} else {
				if ($pitch->isEnharmonic($givenPitch)) {
					return true;
				}
			}
		}
		return false;
	}
public function containsPitch($givenPitch, $strict = true) {
		$pitches = $this->getPitches(-1, false);
		$givenPitch->octave = null;
		foreach ($pitches as $pitch) {
			$pitch->octave = null;
			if ($strict) {
				if ($pitch->equals($givenPitch)) {
					return true;
				}
			} else {
				if ($pitch->isEnharmonic($givenPitch)) {
					return true;
				}
			}
		}
		return false;
	}
public function containsPitch ( $ givenPitch , $ strict = true ) { $ pitches = $ this -> getPitches ( - 1 , false ) ; $ givenPitch -> octave = null ; foreach ( $ pitches as $ pitch ) { $ pitch -> octave = null ; if ( $ strict ) { if ( $ pitch -> equals ( $ givenPitch ) ) { return true ; } } else { if ( $ pitch -> isEnharmonic ( $ givenPitch ) ) { return true ; } } } return false ; }
returns true if the scale contains the given pitch
@param  [type] $pitch [description]
@param  boolean $strict  if this is true, then the step and alter must be correct. Otherwise it can be an enharmonic equivalent
@return [type]        [description]
returns true if the scale contains the given pitch