Code example for Text

Methods: getWholeText

0
                + (transpose.getOctaveChange() * 12); 
    } 
    return midiPitch;
  } 
  public int getStep() { 
    return convertStep(step.getWholeText());
  } 
  public int getAlter() { 
    return alter != null? Integer.parseInt(alter.getWholeText()): 0;
  } 
  public int getOctave() { 
    return Integer.parseInt(octave.getWholeText());
  } 
 
  public static int convertStep(String step) {
    return "CDEFGAB".indexOf(step.trim().toUpperCase());
  } 
}