Return the high first note which needs an extended staff line.
<BR>For a 5 lines staff, it's a seventh over the middle note.
For standard treble G clef, returns <TT>a</TT>.
431106
public Note getNoteFirstExtendedLineHigh() {
		if (m_highNote == null) {
			//A 7th (label=6) for 5 lines,
			//A 5th (label=4) for 3 lines,
			//A 3rd (label=2) for 1 line
			byte label = (byte) (getStaffLines() + 1);
			Interval interv = new Interval(label,
				label==5?Interval.PERFECT:Interval.MAJOR,
				Interval.UPWARD);
			m_highNote = interv.calculateSecondNote(getMiddleNote());
			m_highNote.setAccidental(new Accidental());//Accidental.NONE
		}
		return m_highNote;
	}
958629
Rule Pitch() {
		return Sequence(
				OptionalS(Accidental()),
				BaseNote(),
				OptionalS(Octave())
		).label(Pitch);
	}
251598
protected void valuateNoteChars() {
		short noteDuration = note.getStrictDuration();
		if (note.isRest()){
			noteChars = new char[] { getMusicalFont().getRestChar(noteDuration) };
			//System.out.println("duration of the rest is " + noteDuration);
		}
		else {
			if (isStemUp())
				noteChars = new char[] { getMusicalFont().getNoteStemUpChar(noteDuration) };
			else
				noteChars = new char[] { getMusicalFont().getNoteStemDownChar(noteDuration) };
		}
	}
1081570
def eleventh(note):
    
    return [note, intervals.perfect_fifth(note), intervals.minor_seventh(note),
            intervals.perfect_fourth(note)]
780643
private String getNotes(Row row)
   {
      String notes = row.getString("NOTET");
      if (notes != null)
      {
         if (notes.isEmpty())
         {
            notes = null;
         }
         else
         {
            if (notes.indexOf(LINE_BREAK) != -1)
            {
               notes = notes.replace(LINE_BREAK, "\n");
            }
         }
      }
      return notes;
   }
749968
public String getTopLines(int num) {
		stopCollecting();
		CountMap<String> ls = new CountMap<String>(lines);
		StringBuilder buff = new StringBuilder();
		buff.append("Top lines over ").append(time).append(" ms (").append(pauseTime).append(" ms paused), with ")
				.append(total).append(" counts:").append(LINE_SEPARATOR);
		for (int i = 0, n = 0; ls.size() > 0 && n < num; i++) {
			int highest = 0;
			List<Map.Entry<String, Integer>> bests = new ArrayList<Map.Entry<String, Integer>>();
			for (Map.Entry<String, Integer> el : ls.entrySet()) {
				if (el.getValue() > highest) {
					bests.clear();
					bests.add(el);
					highest = el.getValue();
				} else if (el.getValue() == highest) {
					bests.add(el);
				}
			}
			for (Map.Entry<String, Integer> e : bests) {
				ls.remove(e.getKey());
				int percent = 100 * highest / Math.max(total, 1);
				buff.append("Rank: ").append(i + 1).append(", Self: ").append(percent).append("%, Trace: ")
						.append(LINE_SEPARATOR).append(e.getKey()).append(LINE_SEPARATOR);
				n++;
			}
		}
		return buff.toString();
	}
648577
def capfirst(x):
    '''
    '''
    x = to_string(x).strip()
    if x:
        return x[0].upper() + x[1:].lower()
    else:
        return x
1308767
def append_note(self, note, root, scale=0):
        
        root_val = note_to_val(root)
        note_val = note_to_val(note) - root_val + scale * 12
        if note_val not in self.components:
            self.components.append(note_val)
            self.components.sort()
684458
function lineTop (){
    var l = line(chars.top
               , chars['top-left'] || chars.top
               , chars['top-right'] ||  chars.top
               , chars['top-mid']);
    if (l)
      ret += l + "\n";
  }
934417
public String getBaselineStartText()
   {
      Object result = getCachedValue(TaskField.BASELINE_START);
      if (result == null)
      {
         result = getCachedValue(TaskField.BASELINE_ESTIMATED_START);
      }

      if (!(result instanceof String))
      {
         result = null;
      }
      return (String) result;
   }
783350
Rule ClefName() {
		return Sequence(
			FirstOfS(IgnoreCase("treble"), IgnoreCase("alto"), IgnoreCase("tenor"),
				IgnoreCase("baritone"), IgnoreCase("bass"), IgnoreCase("mezzo"),
				IgnoreCase("soprano"), IgnoreCase("perc"), IgnoreCase("none")),
			OptionalS(Octave())	
			).label(ClefName).suppressSubnodes();
	}
908019
public static Note getLongestNote(Note[] notes) {
	  float length = 0;
	  float currentNoteLength = 0;
	  Note maxNote = null;
	  for (int i=0; i<notes.length && maxNote==null; i++) {
		  currentNoteLength = notes[i].getDuration();
		  if (currentNoteLength > length)
			  maxNote = notes[i];
	  }
	  return maxNote;
  }
213108
public final String getStartFormattedShort() {
        Granularity startGran = this.interval.getStartGranularity();
        return formatStart(startGran != null ? startGran.getShortFormat()
                : null);
    }
673215
function dominant_flat_five(note) {
	var res = dominant_seventh(note)
	res[2] = notes.diminish(res[2])
	return res;
}
435299
public String getBaselineDurationText(int baselineNumber)
   {
      Object result = getCachedValue(selectField(TaskFieldLists.BASELINE_DURATIONS, baselineNumber));
      if (result == null)
      {
         result = getCachedValue(selectField(TaskFieldLists.BASELINE_ESTIMATED_DURATIONS, baselineNumber));
      }

      if (!(result instanceof String))
      {
         result = null;
      }
      return (String) result;
   }
836891
protected char[][] valuateInvertedNoteChars() {
		short noteDuration = note.getStrictDuration();
		char[] c1 = null, c2 = null;
		if (note.isRest()){
			c1 = new char[] { getMusicalFont().getRestChar(noteDuration) };
		}
		else {
			if (noteDuration <= Note.HALF) {
				if (isStemUp())
					c1 = new char[] { getMusicalFont().getStemWithoutNoteUpChar(noteDuration) };
				else
					c1 = new char[] { getMusicalFont().getStemWithoutNoteDownChar(noteDuration) };
			}
			c2 = new char[] { getMusicalFont().getNoteWithoutStem(noteDuration) };
			//if the note in valuateNoteChar is without stem
			//remove the stem char (c1)
			//e.g.: JChordNote, JNotePartOfGroup
			if (c2[0] == noteChars[0]) {
				c1 = null;
			}
		}
		return new char[][] { c1, c2 };
	}
293431
function() {
    var octave = this.octave();
    var name = this.name();
    name = octave < 3 ? name.toUpperCase() : name.toLowerCase();
    var padchar = octave < 3 ? ',' : '\'';
    var padcount = octave < 2 ? 2 - octave : octave - 3;

    return pad(name + this.accidental(), padchar, padcount);
  }