public String getText ( boolean unicode ) { if ( ! isChord ( ) ) return m_chordName ; else { StringBuilder ret = new StringBuilder ( ) ; if ( isOptional ( ) ) ret . append ( "(" ) ; ret . append ( note2string ( getNote ( ) , unicode ) ) ; ret . append ( getQuality ( ) ) ; if ( hasBass ( ) ) { ret . append ( "/" ) ; ret . append ( note2string ( getBass ( ) , unicode ) ) ; } if ( isOptional ( ) ) ret . append ( ")" ) ; return ret . toString ( ) ; } }
Returns the text of the chord .