public static function constructFromPitches($pitches, $root = null) {
		$scale = self::resolveScaleFromPitches($pitches);
		return new Scale($scale, $root, $direction);
	}
public static function constructFromPitches($pitches, $root = null) {
		$scale = self::resolveScaleFromPitches($pitches);
		return new Scale($scale, $root, $direction);
	}
public static function constructFromPitches ( $ pitches , $ root = null ) { $ scale = self :: resolveScaleFromPitches ( $ pitches ) ; return new Scale ( $ scale , $ root , $ direction ) ; }
accepts an array of pitches, and will tell you what scale it is. If root is not provided,
tries to figure out what the tonic is based on note distribution.
@param  [type] $pitches [description]
@return [type]          [description]
accepts an array of pitches and will tell you what scale it is . If root is not provided tries to figure out what the tonic is based on note distribution .