Code example for Text

Methods: replaceWholeText

0
    } 
    return null; 
  } 
  public void setVoiceName(String name) {
    if (voiceName != null) {
      voiceName.replaceWholeText(name);
    } 
  } 
 
  /** Gets the relative duration of this note. 
   * @return the numerator, denominator, the amount of dots and the time 
   *         modification involved in the actual duration represented. 
   */ 
  public AugmentedPowerOfTwo getAugmentedFraction() { 
    PowerOfTwo base = null;
    if (type != null) base = parseType(type);
    if (base != null) {
      int normalNotes = 1;
      int actualNotes = 1;
      if (timeModification != null) {
        normalNotes = timeModification.getNormalNotes();