function getNotesUp($scalenum, $root, $octaves, $hand) {
        $initialnote = clone($root);
        $str = "\n % going up \n";
        $clef = ''; // this will force a clef to be defined for the first note
        for ($o=0; $o<$octaves; $o++) {
            $scale = new Scale($scalenum, $initialnote, 'ascending');
            $pitches = $scale->getPitches();
            $degree = 0;
            foreach ($pitches as $pitch) {
                $newclef = ($initialnote->interval($this->middleC) > 0) ? 'bass' : 'treble';
                if ($newclef != $clef) {
                    $clef = $newclef;
                    $str .= '\\clef "' . $clef . '" ';
                }
                $str .= $pitch->toLilypond() . $this->duration;

                $isbottom = $pitch->isEnharmonic($root);
                $finger = $this->getFinger($scalenum, $initialnote, $hand, $degree, false, $isbottom);
                $str .= '-' . $finger;

                $str .= ' ';
                $degree++;
            }
            $initialnote->transpose(12);
        }
        return $str;
    }
function getNotesUp($scalenum, $root, $octaves, $hand) {
        $initialnote = clone($root);
        $str = "\n % going up \n";
        $clef = ''; // this will force a clef to be defined for the first note
        for ($o=0; $o<$octaves; $o++) {
            $scale = new Scale($scalenum, $initialnote, 'ascending');
            $pitches = $scale->getPitches();
            $degree = 0;
            foreach ($pitches as $pitch) {
                $newclef = ($initialnote->interval($this->middleC) > 0) ? 'bass' : 'treble';
                if ($newclef != $clef) {
                    $clef = $newclef;
                    $str .= '\\clef "' . $clef . '" ';
                }
                $str .= $pitch->toLilypond() . $this->duration;

                $isbottom = $pitch->isEnharmonic($root);
                $finger = $this->getFinger($scalenum, $initialnote, $hand, $degree, false, $isbottom);
                $str .= '-' . $finger;

                $str .= ' ';
                $degree++;
            }
            $initialnote->transpose(12);
        }
        return $str;
    }
function getNotesUp ( $ scalenum , $ root , $ octaves , $ hand ) { $ initialnote = clone ( $ root ) ; $ str = "\n % going up \n" ; $ clef = '' ; // this will force a clef to be defined for the first note for ( $ o = 0 ; $ o < $ octaves ; $ o ++ ) { $ scale = new Scale ( $ scalenum , $ initialnote , 'ascending' ) ; $ pitches = $ scale -> getPitches ( ) ; $ degree = 0 ; foreach ( $ pitches as $ pitch ) { $ newclef = ( $ initialnote -> interval ( $ this -> middleC ) > 0 ) ? 'bass' : 'treble' ; if ( $ newclef != $ clef ) { $ clef = $ newclef ; $ str .= '\\clef "' . $ clef . '" ' ; } $ str .= $ pitch -> toLilypond ( ) . $ this -> duration ; $ isbottom = $ pitch -> isEnharmonic ( $ root ) ; $ finger = $ this -> getFinger ( $ scalenum , $ initialnote , $ hand , $ degree , false , $ isbottom ) ; $ str .= '-' . $ finger ; $ str .= ' ' ; $ degree ++ ; } $ initialnote -> transpose ( 12 ) ; } return $ str ; }
starting from the bottom and going up, not including the root again at the top
@param  [type] $scalenum [description]
@param  [type] $root     [description]
@param  [type] $octaves  [description]
@return [type]           [description]
starting from the bottom and going up not including the root again at the top