示例#1
0
 for ($loop = 0; $loop < 2; $loop++) {
     $notes = $o->GetTaggedOptAsArray($loop > 0 ? "Pos2" : "Pos", array());
     foreach ($notes as $i => $notepitchTxt) {
         $notepitchObj = new NWC2NotePitchPos($notepitchTxt);
         if (!$i && $notenameText) {
             $notenameText .= ",";
         }
         if ($PlayContext->IsTieReceiver($notepitchObj)) {
             $isInTie = true;
         } else {
             $isAllInTie = false;
         }
         $notename = $PlayContext->GetNotePitchName($notepitchObj);
         $noteacc = $PlayContext->GetNotePitchAccidental($notepitchObj);
         $noteacc = $accmap[$noteacc];
         $noteoctave = $PlayContext->GetScientificPitchOctave($notepitchObj);
         $notemidipitch = $PlayContext->GetNoteMidiPitch($notepitchObj);
         $notenameText .= $notename . $noteacc . $noteoctave . "[" . $notemidipitch . "]";
     }
 }
 if ($useLyric) {
     $hasLyrics = !($isGrace || $isInTie || $PlayContext->Slur || $o->GetObjType() == "Rest");
     if ($lyricOpt == "Always") {
         $hasLyrics = true;
     } else {
         if ($lyricOpt == "Never") {
             $hasLyrics = false;
         }
     }
     if ($hasLyrics) {
         if ($barnotecnt) {