public function autoTune($key, $scale=null) {
        foreach ($this->chords as &$chord) {
            $chord->autoTune($key, $scale);
        }

    }
public function autoTune($key, $scale=null) {
        foreach ($this->chords as &$chord) {
            $chord->autoTune($key, $scale);
        }

    }
public function autoTune ( $ key , $ scale = null ) { foreach ( $ this -> chords as & $ chord ) { $ chord -> autoTune ( $ key , $ scale ) ; } }
using the 's own Key, will quantize all the notes to be part of a given scale.
If scale is omitted, will use the scale implied by the Key's "mode" property.

@param  $key    a Pitch, like "C" or "G#"
@param  $scale  a Scale object
@return null
using the s own Key will quantize all the notes to be part of a given scale . If scale is omitted will use the scale implied by the Key s mode property .