Code example for Text

Methods: getWholeText

0
  } 
  public Pitch getPitch() { return pitch; }
  public Unpitched getUnpitched() { return unpitched; }
  public int getStaffNumber() { 
    if (staffNumber != null) {
      return Integer.parseInt(staffNumber.getWholeText()) - 1;
    } 
    return 0; 
  } 
  public String getVoiceName() {
    if (voiceName != null) {
      return voiceName.getWholeText();
    } 
    return null; 
  } 
  public void setVoiceName(String name) {
    if (voiceName != null) {
      voiceName.replaceWholeText(name);
    } 
  }